I know that I can get an XML file returning geographic information from this URL, by replacing [A] and [B] with latitude and longitude.
http://maps.googleapis.com/maps/api/geocode/xml?latlng=%5BA%5D,%5BB%5D&sensor=true
Now what I want to know is how to call this URL from my .xqy file and simply get the values of the address and town attributes in the XML file. Any idea ?
You can use the expath HTTP client in order to query this API:
You can try this example live at http://www.zorba-xquery.com/html/demo#SYTRRzV6oopDKuEs3hxUdj4lUts=