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

Hello everyone! For my Master Thesis work, I need to import in OSM a certain .gpx file with a given path. So far so good. Then I would like extracting for each point of that path the current speed limit for further data analysis. Is there a way to extract such kind of info from OSM? Thank you in advance!

asked 12 May '23, 09:05

Lorenzo_m's gravatar image

accept rate: 0%

OSM is just the geographic database so on a conceptual level you will need to load (parts of) it and your gpx file into something else rather than the other way around.

OpenStreetMap has well established tags for speed limits, as with other OSM data coverage varies by region. The wiki also has a list of "default" speed limits by country that may help fill in gaps.

I think the general keyword for snapping recorded paths to known roads is "map matching", there are a few routing engines for OSM data that do this, OSRM is one but I not aware of an index of them anywhere. Whether you use an existing engine for this or write your own will probably depend on how it integrates with the rest of your project. Whether you will need way IDs to get back to the input data or can make do with the router's internal representation of the data (assumptions and all) will depend on what you choose to use.

permanent link

answered 12 May '23, 14:30

InsertUser's gravatar image

accept rate: 19%

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]( "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: 12 May '23, 09:05

question was seen: 1,063 times

last updated: 12 May '23, 14:30

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