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]