Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all articles
Browse latest Browse all 3384

New Post: OpenStreetMap placemark

$
0
0
Hi,
Im using gmap.net control with the openstreetmap provider.
I was debugging windowspresentation demo.
The problem is that when i pass HttpWebRequest from the following url :
http://nominatim.openstreetmap.org/reverse?format=xml&lat=54.6542669&lon=25.1504576&zoom=18&addressdetails=1
(retrieving placemark info)
i get response from the server error 403 unathorized acces
GMapProviders.OpenStreetMap.GetPlacemark(currentMarker.Position, out status) )
What is strange becaous when in the same instance of the application i pass HttpWebRequest :
http://nominatim.openstreetmap.org/search?q=paris&format=xml i get correct results with no errors. (public PointLatLng? GetPoint(string keywords, out GeoCoderStatusCode status))
Credentials = {"greatmaps", "greatmaps"}.
When i type them both in the opera i get correct info in the xml file.
What needs to be done to pass correct request for openstreetmap ?
Thanks for help.

Viewing all articles
Browse latest Browse all 3384


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>