Re: VFP Call to Google Geocoding API

Author: Alan Bourke

Posted: 2016-08-25 at 09:30:57

> 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

_______________________________________________

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/1472135457.718881.705912521.0BD02CC9@webmail.messagingengine.com

** 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.

©2016 Alan Bourke