Context: I am trying to calculate the distance between two places using either Bing Maps or Google Maps.
There is a spreadsheet here which demonstrates what I'm trying to do:
https://drive.google.com/file/d/1TsmIPDUrCOkScNqPmiVrYVXb1SRzP9Vl/view?usp=sharing
I want to return a response in a single cell from a function (that works in the same way as WEBSERVICE in Excel, but in Google Sheets instead) that calls a dev.virtualearth.net URL with a query, such as the following URL:
https://dev.virtualearth.net/REST/v1/Locations?countryRegion=New Zealand&adminDistrict=Wellington&locality=Johnsonville&postalCode=6037&addressLine=Bassett Rd&maxResults=1&o=xml&key=ArTkC_A3xj__NuzbJVV2Lq9oo8sftT1r9peJOlYpWVdvTJWDzn1HBq22A48Pn9W-0
I can see that there are functions such as IMPORTDATA, IMPORTXML, but these don't work in exactly the same way as the WEBSERVICE function in Excel.
I also need an equivalent function to FILTERXML.