1

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.0k16147244


3 Answers:
4

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.0k16147244
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
2

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 ♦
33.0k65343778
accept rate: 16%

0

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.5k454209
accept rate: 6%

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:

×248
×79
×17
×12

question asked: 24 Dec '13, 11:27

question was seen: 24,775 times

last updated: 07 Jun '14, 09:44

powered by OSQA