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

I have show one OpenStreetMap in My Web Page and use Multiple Marker in this Map but some problem is occur one i will run this website the one error is occur the Error is You don't have permission to access /api/ on this server. so can you tell me the proper openstreetMap Api and the Code

This question is marked "community wiki".

asked 05 Sep '13, 10:18

Tanmoy%20Ghosh's gravatar image

Tanmoy Ghosh
-2334
accept rate: 0%

edited 06 Sep '13, 14:09

sleske's gravatar image

sleske
4.1k135678


permanent link

answered 05 Sep '13, 11:12

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

1

Just to clarify the "API" point, unlike certain other large web-based mapping providers, there is no API that you need to call to display a map. OpenStreetMap does have an API, but that's primarily designed for mappers to put things into the database, not to display things already there. Generally speaking, if you want a simple customised OSM-based map you'd download a small data extact from OSM:

http://planet.openstreetmap.org/

set up a tile server:

http://switch2osm.org/serving-tiles/

and then set up a website using those tiles:

http://switch2osm.org/using-tiles/

If you want to avoid the "serving tiles" part of that for now, you can point your site at an existing tile source, but make sure that you abide by the terms of use of that tile source. In the case of OSM-hosted tiles that's:

http://wiki.openstreetmap.org/wiki/Tile usage policy

(05 Sep '13, 12:59) SomeoneElse ♦

Please read first the API usage policy.

Then decide if your "multiple markers" have to always use the latest data from OSM or if you can use some cached data store locally on your server (can be a JSON or XML file). If you want to get the latest data in OSM, you should use one of the alternative data providers listed in the API usage policy page. But then you will depend on a third party. It's up to you.

permanent link

answered 05 Sep '13, 10:33

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

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:

×290
×287

question asked: 05 Sep '13, 10:18

question was seen: 5,635 times

last updated: 06 Sep '13, 14:09

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