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

Hi all,

I want to implement a litle map viewer with one marker: the user's address. I know that i can insert a marker with OpenLayers with Latitude and Longitude values, but i want to give 'OpenLayers' the address instead of GPS coordinates.

Its for a user profile of a new website i am working for. (User inserts its address in his profile).

Thank you very much.

asked 24 Sep '13, 16:06

walo's gravatar image

walo
11112
accept rate: 0%


If you just have the address then you have to do reverse-geocoding for each address first. This can be done by using Nominatim.

But take a look at the usage policy first before you try to start bulk queries for all of your addresses. Instead of OSM's official Nominatim instance you can either use an alternative instance with a less-restrictive usage policy or install your own one.

permanent link

answered 24 Sep '13, 17:01

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

I know Nominatim, but i just wanted a single line of code added to openlayers' code, instead of adding coordinates.

Thanks.

(24 Sep '13, 20:17) walo

There is no such OpenLayers feature out of the box. And bulk-querying all addresses each time would clearly violate Nominatim's usage policy and it would be very slow and unnecessary, too.

(24 Sep '13, 21:08) scai ♦

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:

×362
×122
×111
×8

question asked: 24 Sep '13, 16:06

question was seen: 3,998 times

last updated: 24 Sep '13, 21:08

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