Hello there,

i'm working on an excel based VBA tool. The tool is offering a function to show a map of germany with different locations of companies.

To locate the companies I want to get the latitude and longitude of each company with an extract of a .xml response.

I got it running with the google api, but want to change it wo openstreetmap. Is there something like this in openstreetmap?

For example:

http://maps.google.com/maps/api/geocode/xml?sensor=false&address=Marienplatz+1+Muenchen&language=de

this url is giving me a xml file where I can extract the latitude and longitude from.

Thanks for your help!

Jan

asked 23 May '13, 12:01

Jan's gravatar image

Jan
21112
accept rate: 0%

edited 23 May '13, 12:07

gormo's gravatar image

gormo
2.9k32660


We have nominantim for that.

Example: http://nominatim.openstreetmap.org/search?q=135+pilkington+avenue,+birmingham&format=xml&polygon=1&addressdetails=1

See the wiki at http://wiki.openstreetmap.org/wiki/Nominatim for more information.

Note that you must not use this for "batch geocoding" i.e. it is ok to find the location for a single business but you are not allowed to run through a long list of addresses and geocode them all at once (see the usage policy linked at the bottom of the Nominatim page).

permanent link

answered 23 May '13, 12:06

gormo's gravatar image

gormo
2.9k32660
accept rate: 13%

edited 23 May '13, 13:06

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.3k846451113

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:

×560
×166
×113

question asked: 23 May '13, 12:01

question was seen: 9,760 times

last updated: 23 May '13, 13:06

powered by OSQA