I'm trying to geocode using openstreetmap geocoding service from my asp.net application.
OSM geocoding service is called trhough an URL querystring. This is an example from their website:
http://nominatim.openstreetmap.org/search?q=135+pilkington+avenue,+birmingham&format=xml&polygon=1&addressdetails=1
That address returns an XML.
I'm looking for the best (best practice?) way to retrieve that XML data. I mean:
Dim MyXMLStringResponse as string
dim MyParametricURL as string
MyParametricURL="http://nominatim.openstreetmap.org/search?q=" & myaddress & "&format=xml&polygon=1&addressdetails=1"
MyXMLStringResponse = SomeObjectOrFunction.SomeMethod(MyParametricURL)
What I'm looking for is "SomeObjectOrFunction" or "SomeMethod" to retrieve the string XML.
Just in case; nominatim.openstreetmap.org is not a webservice.