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

I am new to maps. I am playing to use the OpenStreetMap API. I want to consume this API in my web applications. I want to implement below features using OpenStreetMap API.

  1. Create and Delete marker on map.
  2. Region Creation/Editing like Line, Rectangle, Polygon ect
  3. Create route between two or more points.

Can any one help me how to achieve these by using OpenStreetMap API

asked 24 Dec '13, 11:27

allemahesh's gravatar image

accept rate: 0%

edited 24 Dec '13, 12:58

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦

The osm API does not have that kind of features. Its purpose is to edit the map data, not to draw markers, polygons, etc on the map.

To do the later, see (amonst others) the leaflet or openlayers libraries. Some third-party websites such as umap or mapbbshare also do somthing very similar.

permanent link

answered 24 Dec '13, 12:57

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
accept rate: 19%

You might want to check here for additional widgets/components

(27 Dec '13, 16:18) iii

If you're looking for a place to obtain data from prior to displaying it in an on-screen map, the OSM API probably isn't the best place (it's intended to be used for editing, not creating maps from). Instead, perhaps Overpass might be a place to look. It'll get you exactly the same data, but in a way that doesn't overload OSM's servers. You can also of course just download the data.

With regard to routing, you're probably best just starting from the wiki page. There are offline routers available that you can deploy, and existing instances of them. If you want to do routing in-client you'll probably find some pointers there for that too.

permanent link

answered 24 Dec '13, 14:49

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

found a new one:

have a look at and read its help text. You can draw geometries, display markers according to coordinate tables, overlay GPX or KML data, and finally share your map even privately.

permanent link

answered 07 Jun '14, 09:44

stephan75's gravatar image

accept rate: 6%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 24 Dec '13, 11:27

question was seen: 37,717 times

last updated: 07 Jun '14, 09:44

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