OSRM Driving Routes & Directions Scraper
Pricing
from $28.50 / 1,000 results
OSRM Driving Routes & Directions Scraper
Compute driving, cycling, or walking routes between two coordinates using the OSRM open routing engine. Returns total distance, duration, route geometry, and optional turn-by-turn instructions.
Pricing
from $28.50 / 1,000 results
Rating
0.0
(0)
Developer
ParseForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share

πΊοΈ OSRM Routing Scraper
π Compute driving, cycling, and walking routes anywhere on Earth in seconds. Distance, duration, geometry polylines, and turn-by-turn directions for any origin/destination pair, plus alternative routes and per-segment annotations. No sign-up, no map-tile licence.
π Last updated: 2026-05-15 Β· π 17 fields per record Β· π Global OSM coverage Β· π 3 travel profiles Β· π£οΈ Up to 3 alternatives per route
The OSRM Routing Scraper wraps the open-source Project OSRM routing engine and returns 17 fields per route, including distance, duration, GeoJSON geometry, snap-to-road waypoints, and detailed turn-by-turn legs. OSRM is the routing engine behind countless mapping products, logistics apps, and academic mobility studies because it ships pre-built world graphs based on OpenStreetMap.
The catalogue covers every road on OpenStreetMap, with three profiles tuned for car, bicycle, and pedestrian travel. This Actor makes routing downloadable as CSV, Excel, JSON, or XML in under a minute. Every input runs server-side, so you skip the OSM extract, the contraction-hierarchies build, and the engine deploy entirely.
| π― Target Audience | π‘ Primary Use Cases |
|---|---|
| Logistics teams, delivery startups, GIS analysts, mobility researchers, travel-tech apps, urban planners, hobbyist developers | Last-mile route optimization, ETA calculation, distance matrices, travel-time isochrones, OD pair analytics, map-app prototypes |
π What the OSRM Routing Scraper does
Three travel profiles in a single run:
- π Driving. Car-friendly roads with realistic speed profiles.
- π΄ Cycling. Bike-friendly paths, lanes, and shared roads.
- πΆ Foot. Pedestrian routes including footways and crossings.
For each origin/destination pair you can request alternative routes, turn-by-turn step instructions, per-segment annotations (node IDs, durations, distances, speeds), and three levels of geometry detail (full, simplified, or none).
π‘ Why it matters: routing infrastructure is hard. Self-hosting OSRM means downloading 60+ GB of OSM extracts, running multi-hour graph builds, and operating a high-availability service. This Actor skips the operational toil and gives you ready-to-use routes per request.
π¬ Full Demo
π§ Coming soon: a 3-minute walkthrough showing how to compute a global route batch from a CSV.
βοΈ Input
| Input | Type | Default | Behavior |
|---|---|---|---|
maxItems | integer | 10 | Routes to return. Free plan caps at 10, paid plan at 1,000,000. |
routes | array | 2 example routes | List of route requests. Each item needs startLat, startLon, endLat, endLon, optional via array of intermediate lat/lon pairs. |
profile | string | "driving" | Travel mode: driving, cycling, or foot. |
alternatives | boolean | false | Request up to 3 alternative routes per pair. |
steps | boolean | true | Include turn-by-turn step instructions. |
annotations | boolean | false | Include per-segment node IDs, durations, distances, and speeds. |
overview | string | "simplified" | Geometry detail: full, simplified, or false. |
Example: San Francisco to Los Angeles by car with alternatives.
{"maxItems": 5,"routes": [{ "startLat": 37.7749, "startLon": -122.4194, "endLat": 34.0522, "endLon": -118.2437, "label": "SF β LA" }],"profile": "driving","alternatives": true,"steps": true,"overview": "full"}
Example: walking route across central London.
{"maxItems": 1,"routes": [{ "startLat": 51.5007, "startLon": -0.1246, "endLat": 51.5074, "endLon": -0.0877, "label": "Big Ben β St Paul's" }],"profile": "foot","steps": true,"overview": "simplified"}
β οΈ Good to Know: OSRM is built on OpenStreetMap, so route quality reflects OSM coverage in your region. Major cities and highways are excellent; remote dirt roads and recently built developments may lag behind reality. For safety-critical navigation, cross-check against an official map provider.
π Output
Each route record contains 17 fields. Download the dataset as CSV, Excel, JSON, or XML.
π§Ύ Schema
| Field | Type | Example |
|---|---|---|
π·οΈ label | string | null | "SF β LA" |
π profile | string | "driving" |
π startLatitude | number | 37.7749 |
π startLongitude | number | -122.4194 |
π endLatitude | number | 34.0522 |
π endLongitude | number | -118.2437 |
π’ routeIndex | number | 0 |
π distanceMeters | number | 615321.4 |
π durationSeconds | number | 21847.6 |
π distanceKilometers | number | 615.32 |
π durationMinutes | number | 364.1 |
π weight | number | 21847.6 |
π·οΈ weightName | string | "routability" |
π geometry | object | null | { "coordinates": [...], "type": "LineString" } |
π¦ legs | array | turn-by-turn legs with steps |
π waypoints | array | snapped lat/lon plus snap distance |
π snapshotTime | ISO 8601 | "2026-05-15T00:00:00.000Z" |
π¦ Sample records
β¨ Why choose this Actor
| Capability | |
|---|---|
| π | Global coverage. Every road on OpenStreetMap is routable. No region locks. |
| π | Three travel profiles. Driving, cycling, and walking, each with profile-tuned graph weights. |
| π£οΈ | Alternative routes. Up to 3 alternatives per origin/destination pair where they exist. |
| π | Detailed geometry. Full GeoJSON polylines, simplified polylines, or geometry-free responses. |
| π§ | Turn-by-turn legs. Maneuver type, modifier, street name, distance, duration, and bearing on every step. |
| π | Per-segment annotations. Node IDs, durations, distances, and speeds on demand. |
| π« | No sign-up. No map-tile licence required. Works against the public OSRM open-source routing engine. |
π OSRM powers logistics apps, public-transport extensions, and academic mobility studies because it ships pre-built world graphs from OpenStreetMap.
π How it compares to alternatives
| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| β OSRM Routing Scraper (this Actor) | $5 free credit, then pay-per-use | Global OSM | Live per request | profile, alternatives, steps, geometry | β‘ 2 min |
| Self-hosted OSRM | Free engine + servers | Global OSM | Manual graph rebuild | Same | π’ Days of ops |
| Commercial routing APIs | $0.50-$5 per 1k routes | Global proprietary | Live | Many | β³ Hours of integration |
| Map-app embeds | Free per user | Global proprietary | Live | App-bound | π« Not bulk-friendly |
Pick this Actor when you want batched, queryable routing without operating your own OSRM cluster.
π How to use
- π Sign up. Create a free account with $5 credit (takes 2 minutes).
- π Open the Actor. Go to the OSRM Routing Scraper page on the Apify Store.
- π― Set input. Add your route requests (lat/lon pairs), pick a profile, and toggle alternatives and steps.
- π Run it. Click Start and let the Actor compute your routes.
- π₯ Download. Grab your results in the Dataset tab as CSV, Excel, JSON, or XML.
β±οΈ Total time from signup to downloaded routes: 3-5 minutes. No coding required.
πΌ Business use cases
π Automating OSRM Routing Scraper
Control the scraper programmatically for scheduled runs and pipeline integrations:
- π’ Node.js. Install the
apify-clientNPM package. - π Python. Use the
apify-clientPyPI package. - π See the Apify documentation for full details.
The Apify Schedules feature lets you trigger this Actor on any cron interval. Daily route refreshes keep your delivery ETAs current.
π Beyond business use cases
Routing data powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.
π€ Ask an AI assistant about this scraper
Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:
- π¬ ChatGPT
- π§ Claude
- π Perplexity
- π Copilot
β Frequently Asked Questions
π§© How does it work?
Pass an array of route requests (lat/lon start and end), pick a profile, and toggle the data you want returned. The Actor calls the OSRM open-source routing engine and writes one record per route variant, with distance, duration, geometry, and turn-by-turn legs.
π How accurate is the data?
OSRM is built on OpenStreetMap, so accuracy depends on OSM coverage in your area. Major cities and highways are excellent. Rural and recently built roads may lag. For safety-critical navigation, cross-check against an official map provider.
π How fresh is the underlying graph?
The OSRM open-source routing engine refreshes its public graphs on a regular cadence from OpenStreetMap extracts. Recent OSM edits may take a few weeks to propagate.
π£οΈ Does it return alternative routes?
Yes. Set alternatives: true to request up to 3 alternative routes per origin/destination pair, where they exist.
π§ Are turn-by-turn instructions included?
Yes. Set steps: true (default) to receive maneuver type, modifier, street name, distance, duration, and bearing for every step.
π Can I get a full GeoJSON polyline?
Yes. Set overview: "full" to receive every coordinate. Use "simplified" for a smoothed polyline, or "false" to skip geometry entirely.
β° Can I schedule regular runs?
Yes. Use Apify Schedules to refresh route batches hourly, daily, or weekly.
βοΈ Is this data legal to use?
OpenStreetMap data is published under the Open Database License (ODbL). Attribution is required. The OSRM open-source routing engine itself is permissive open source.
πΌ Can I use this data commercially?
Yes, subject to OSM attribution and the ODbL share-alike clause for derived databases. Most product use cases qualify; consult the OSM licence for edge cases.
π³ Do I need a paid Apify plan to use this Actor?
No. The free Apify plan is enough for testing and small runs (10 routes per run). A paid plan lifts the limit and enables scheduling.
π What if I need help?
Our support team is here to help. Contact us through the Apify platform or use the Tally form linked below.
π Integrate with any app
OSRM Routing Scraper connects to any cloud service via Apify integrations:
- Make - Automate multi-step workflows
- Zapier - Connect with 5,000+ apps
- Slack - Get run notifications in your channels
- Airbyte - Pipe route data into your warehouse
- GitHub - Trigger runs from commits and releases
- Google Drive - Export datasets straight to Sheets
You can also use webhooks to trigger downstream actions when a run finishes. Push freshly computed routes into your dispatcher, or push ETAs to a customer-facing app.
π Recommended Actors
- πΊοΈ Nominatim OSM Scraper - Geocode addresses via OpenStreetMap
- βοΈ OurAirports Scraper - Global airport master data with lat/lon
- π MBTA Live Transit Scraper - Boston transit routes, stops, vehicles, and predictions
- π¦ TfL London Live Status Scraper - Live London transport status and disruptions
- π Overpass OSM Scraper - Query arbitrary OpenStreetMap features
π‘ Pro Tip: browse the complete ParseForge collection for more geospatial scrapers.
π Need Help? Open our contact form to request a new scraper, propose a custom data project, or report an issue.
β οΈ Disclaimer: this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Project OSRM, OpenStreetMap, or any of their contributors. All trademarks mentioned are the property of their respective owners. Only publicly available open data is collected.