Why not ask your question on the new OpenStreetMap Community Forum?

Hi, I have extracted street data from OpenStreetMap and structured the data street by street. Is there any help on how I can write a simple routing algorithm based on the extracted data to generate turn-by-turn instructions if a user chooses one street as the starting point and then another street as the destination?

asked 01 Jun, 00:28

Segunlakata's gravatar image

accept rate: 0%

There are ready-made algortihms out there on GitHub that do what you want - check out OSRM or GraphHopper. These are sophisticated routing engines where a lot of work has gone not into making them fast but also making the instructions good - which is more difficult than you might expect! Even if you decide to write your own routing engine for educational purposes, it might make sense to have a look at how these programs generate turn instructions.

permanent link

answered 01 Jun, 08:34

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Thank you Frederik for your response always!

(02 Jun, 02:01) Segunlakata
Your answer
toggle preview

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](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:


question asked: 01 Jun, 00:28

question was seen: 565 times

last updated: 02 Jun, 02:01

powered by OSQA