OSRM Driving Routes & Directions Scraper avatar

OSRM Driving Routes & Directions Scraper

Pricing

from $28.50 / 1,000 results

Go to Apify Store
OSRM Driving Routes & Directions Scraper

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

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

ParseForge Banner

πŸ—ΊοΈ 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 developersLast-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

InputTypeDefaultBehavior
maxItemsinteger10Routes to return. Free plan caps at 10, paid plan at 1,000,000.
routesarray2 example routesList of route requests. Each item needs startLat, startLon, endLat, endLon, optional via array of intermediate lat/lon pairs.
profilestring"driving"Travel mode: driving, cycling, or foot.
alternativesbooleanfalseRequest up to 3 alternative routes per pair.
stepsbooleantrueInclude turn-by-turn step instructions.
annotationsbooleanfalseInclude per-segment node IDs, durations, distances, and speeds.
overviewstring"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

FieldTypeExample
🏷️ labelstring | null"SF β†’ LA"
πŸš— profilestring"driving"
πŸ“ startLatitudenumber37.7749
πŸ“ startLongitudenumber-122.4194
πŸ“ endLatitudenumber34.0522
πŸ“ endLongitudenumber-118.2437
πŸ”’ routeIndexnumber0
πŸ“ distanceMetersnumber615321.4
πŸ•’ durationSecondsnumber21847.6
πŸ“ distanceKilometersnumber615.32
πŸ•’ durationMinutesnumber364.1
πŸ“Š weightnumber21847.6
🏷️ weightNamestring"routability"
πŸ“ geometryobject | null{ "coordinates": [...], "type": "LineString" }
πŸ“¦ legsarrayturn-by-turn legs with steps
πŸ“ waypointsarraysnapped lat/lon plus snap distance
πŸ•’ snapshotTimeISO 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

ApproachCostCoverageRefreshFiltersSetup
⭐ OSRM Routing Scraper (this Actor)$5 free credit, then pay-per-useGlobal OSMLive per requestprofile, alternatives, steps, geometry⚑ 2 min
Self-hosted OSRMFree engine + serversGlobal OSMManual graph rebuildSame🐒 Days of ops
Commercial routing APIs$0.50-$5 per 1k routesGlobal proprietaryLiveMany⏳ Hours of integration
Map-app embedsFree per userGlobal proprietaryLiveApp-bound🚫 Not bulk-friendly

Pick this Actor when you want batched, queryable routing without operating your own OSRM cluster.


πŸš€ How to use

  1. πŸ“ Sign up. Create a free account with $5 credit (takes 2 minutes).
  2. 🌐 Open the Actor. Go to the OSRM Routing Scraper page on the Apify Store.
  3. 🎯 Set input. Add your route requests (lat/lon pairs), pick a profile, and toggle alternatives and steps.
  4. πŸš€ Run it. Click Start and let the Actor compute your routes.
  5. πŸ“₯ 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

🚚 Logistics & Last-Mile Delivery

  • Compute optimal driver routes across delivery stops
  • Estimate ETAs for customer-facing apps
  • Build distance and duration matrices for routing solvers
  • Score warehouse locations by service-area drive times

πŸ™οΈ Urban Planning & Mobility Research

  • Analyze cycling-network connectivity across a city
  • Generate walking-time isochrones around transit stops
  • Compare car versus bike commute times for policy briefs
  • Evaluate accessibility of healthcare and schools

πŸ—ΊοΈ Travel-Tech & Map Apps

  • Power MVP routing for travel-planner prototypes
  • Add turn-by-turn directions to a travel itinerary app
  • Compute multi-stop walking tours for tourism guides
  • Suggest scenic alternatives between two waypoints

πŸ“Š GIS & Data Analytics

  • Build OD matrices for spatial accessibility studies
  • Enrich geocoded datasets with travel-time fields
  • Stress-test geographic clustering with real road distances
  • Train ML models that need ground-truth route durations

πŸ”Œ Automating OSRM Routing Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

  • 🟒 Node.js. Install the apify-client NPM package.
  • 🐍 Python. Use the apify-client PyPI 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.

πŸŽ“ Research and academia

  • Mobility studies on urban accessibility and equity
  • Replicate published OD-matrix papers with cited data
  • Teach geospatial analysis with real road graphs
  • Power student transport-planning capstone projects

🎨 Personal and creative

  • Plot a personal cycling tour around a region
  • Render artistic route maps for portfolios
  • Build a hiking-time calculator for trail apps
  • Generate routes for road-trip travel blogs

🀝 Non-profit and civic

  • Map walking-time access to clinics in low-income areas
  • Plan disaster-response evacuation routes
  • Score food-bank service areas by drive time
  • Provide free routing data to journalism collectives

πŸ§ͺ Experimentation

  • Train ML models that predict travel-time variability
  • Validate accessibility hypotheses with real route data
  • Prototype agent pipelines that resolve location-to-location distance
  • Test routing UIs with live OSRM responses

πŸ€– Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:


❓ 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.

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.


πŸ’‘ 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.