Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lat/Lon Traffic Data with OSRM #7019

Open
Deepak028 opened this issue Aug 21, 2024 · 0 comments
Open

Lat/Lon Traffic Data with OSRM #7019

Deepak028 opened this issue Aug 21, 2024 · 0 comments

Comments

@Deepak028
Copy link

Hello,

I am currently working on integrating traffic data from a provider with OSRM (Open Source Routing Machine). I have traffic data that includes latitude and longitude pairs along with speed information. However, I'm encountering difficulties in making this data compatible with OSRM for routing purposes.

What I Have
Traffic Data Format: The data I receive from the provider includes latitude and longitude pairs for from and to locations and associated speed information. An example of the data looks like this:

from_lat,from_lon,to_lat,to_lon,speed
12.9716,77.5946,12.9717,77.5947,40
12.9716,77.5946,12.9715,77.5945,30

Current Data Storage: The data is currently stored in a CSV file.

Issue

I need guidance on how to transform this data into a format compatible with OSRM. Specifically, I am looking for help with the following:

Converting Lat/Lon Data: How do I map the latitude and longitude pairs to OSRM’s internal road network IDs or segments?

Integrating Speed Information: How should I integrate the speed information into OSRM’s data model? Are there specific files or formats required for incorporating this data?

Updating OSRM Data: What are the steps to update OSRM’s data with the new traffic information so that it reflects accurately in routing results?

Steps Taken

Reviewed OSRM documentation on traffic data integration.
Attempted various methods to convert latitude/longitude pairs into OSRM-compatible formats without success.

Additional Information

I am using OSRM with Docker, and my setup includes [details about your OSRM setup if applicable].
Sample data files or additional information can be provided if needed.

Any help or pointers towards relevant documentation or examples would be greatly appreciated.

Thank you!

@Deepak028 Deepak028 changed the title Need Help Integrating Lat/Lon Traffic Data with OSRM Lat/Lon Traffic Data with OSRM Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant