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 ♦
31.9k16236548


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 ♦
31.9k16236548
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
4113
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 ♦
31.9k16236548

Your answer
toggle preview

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:

×414
×100
×83

question asked: 12 Jul '18, 08:49

question was seen: 679 times

last updated: 14 Jul '18, 07:04

powered by OSQA