Author: Dave Crozier
Posted: 2016-08-25 at 09:52:22
Thanks Alan,
I have been looking at Rick's software along with Craig Boyd's JSON class, so I was on the right track... it just seems so damned complicated for a simple result.
Dave
-----Original Message-----
From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Alan Bourke
Sent: 25 August 2016 15:31
To: profoxtech@leafe.com
Subject: Re: VFP Call to Google Geocoding API
> I guess it is going to be a little like the web services that were the
> rage some time ago .... I stayed away from them.
Well, it *is* a web service, and web services are increasingly fundamental to how the web operates. JSON is essentially just objects in Javascript notation so you need some way of getting that into a format you can work with in VFP, and almost all web services communicate in either JSON or XML.
You need to at the very least be able to send a HTTP request to the Google endpoint, receive a JSON response (and handle any errors), and decode the JSON into a format you can work with. If you want to stay in VFP-land I'd be looking at Rick Strahl's web tools for all that.
Otherwise .NET can do all that natively, you could for example create a COM-callable DLL to do it, or just an assembly called with Rick's WWDotNetBridge tool.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB290269694@EX2010-A-FPL.FPL.LOCAL
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.