osrm-backend
osrm-backend copied to clipboard
Assistance with Integrating Traffic Data into OSRM
Hello,
I am seeking assistance with integrating real-time traffic data into the Open Source Routing Machine (OSRM). Despite following the provided documentation and attempting integration with sample data, I have encountered issues and would appreciate detailed guidance on where to make changes in the OSRM setup to achieve this integration.
Objective: To successfully integrate real-time traffic data into OSRM, enabling the routing algorithms to account for current traffic conditions and provide optimal routes.
Steps Taken:
Referred to the OSRM Traffic Integration Wiki: https://github.com/Project-OSRM/osrm-backend/wiki/Traffic
Used sample data from Mapbox Traffic Data: https://www.mapbox.com/traffic-data
Followed the example in the Mapbox Traffic Data Guide: https://docs.mapbox.com/data/traffic/guides/example/
Commands Used:
osrm-extract -p car.lua /data/new-york.osm.pbf osrm-partition /data/new-york.osrm - osrm-contract /data/new-york.osrm --segment-speed-file /data/0320122-America-New_York-OSM.csv osrm-customize /data/new-york.osrm --segment-speed-file /data/0320122-America-New_York-OSM.csv osrm-routed /data/new-york.osrm
I am not able to use this for generating of route.
Request for Guidance: I would greatly appreciate it if someone could provide detailed guidance on the following points:
Code Changes: Specific code changes or configuration adjustments needed to integrate traffic data into OSRM.
File Locations: Key files or directories in the OSRM codebase where changes should be made.
Data Ingestion: How to correctly ingest and utilize traffic data (format, APIs, etc.).
Common Pitfalls: Common mistakes to avoid during the integration process.
Examples: Any example configurations or scripts that successfully integrate traffic data.
I appreciate any help or guidance the community can provide on this matter. Thank you in advance for your support!
Best regards, Deepak