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

Hi, I have another question about OSM. On a server I have a system that tells me in which car park I can park if I give it an origin and a destination in coordinates.

Now I would like a web application to have a visual representation of the use case. I'm using nodejs with express. For the moment I would like to know how I can put a map on my site and add the points of origin and destination to it and then send it to my server and tell me which parking lot to park.

Thank you very much.

asked 12 Jul '18, 08:49

Wolfindel's gravatar image

Wolfindel
26224
accept rate: 0%

edited 12 Jul '18, 20:00

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


https://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map may help you. I do not know which library has the option to let the user set markers whose coordinates will be transferred to the server afterwards. I guess your goal is similar to the routing interface on http://www.openstreetmap.org/ or https://graphhopper.com/maps/ , so have a look at their code for inspiration.

permanent link

answered 13 Jul '18, 21:25

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

For a similar type project i used LeafletJS (https://leafletjs.com). You can check their doc and examples. I hope it might help you to find a solution.

permanent link

answered 14 Jul '18, 07:04

nasirkhan's gravatar image

nasirkhan
41113
accept rate: 0%

I answer myself because I have made progress on it. I am using OpenLayers for this. There are a lot of examples for him, but you have to fight a little bit. Some explanations are not of high quality. Open layers has examples and API documentation. It is used together with HTML and CSS so some basic notions of these would be nice.

permanent link

answered 13 Jul '18, 12:55

Wolfindel's gravatar image

Wolfindel
26224
accept rate: 0%

edited 13 Jul '18, 21:22

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

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:

×535
×111
×104

question asked: 12 Jul '18, 08:49

question was seen: 5,983 times

last updated: 14 Jul '18, 07:04

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