NOTICE: help.openstreetmap.org 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 asp.net 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

allemahesh
16112
accept rate: 0%

edited 24 Dec '13, 12:58

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249


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... ♦
17.3k18152249
accept rate: 19%

You might want to check here for additional widgets/components http://wiki.openstreetmap.org/wiki/Frameworks

(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 ♦
36.9k71370866
accept rate: 16%

found a new one:

have a look at http://geojson.io 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

stephan75
12.6k556210
accept rate: 6%

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
×98
×24
×12

question asked: 24 Dec '13, 11:27

question was seen: 38,204 times

last updated: 07 Jun '14, 09:44

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