NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm creating asp.net website and using Nominatim for reverse geocoding to find address in simple text format.

My Code:

WebClient webClient = new WebClient();
var jsonData = webClient.DownloadData("http://nominatim.openstreetmap.org/reverse?format=json&lat=23.02951&lon=72.48689");
DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(RootObject));
var rootObject = ser.ReadObject(new MemoryStream(jsonData));

But got exception that

The remote name could not be resolved: 'nominatim.openstreetmap.org'

Actually I got null response from the page.

Any suggestion there?

asked 27 Dec '13, 07:51

netX's gravatar image

netX
1111
accept rate: 0%

edited 27 Dec '13, 15:41

iii's gravatar image

iii
4.9k84082

You are welcome here anytime and OSM community likes to help :)
But please try to avoid crosspostings, as they consume a lot of ressources of the people that like to help you: http://stackoverflow.com/questions/20795389/reverse-geocoding-using-nominatim-in-asp-net

(27 Dec '13, 15:43) iii

Try the URL in a browser on the same machine. It works fine here. If errors persist, must be a network issue on the machine where the code runs.

permanent link

answered 27 Dec '13, 10:42

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×9

question asked: 27 Dec '13, 07:51

question was seen: 4,830 times

last updated: 27 Dec '13, 15:43

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum