Maps · head to head
GraphHopper vs Leaflet

GraphHopper
Maps
Open-source routing engine for road networks, providing fast route calculations, turn-by-turn navigation
- From
- Free
- Free plan
- Yes

Leaflet
Maps
Open-source JavaScript library for mobile-friendly interactive maps,
- From
- Free
- Free plan
- Yes
The short version
- GraphHopper is an open-source routing engine for road networks.
- Leaflet is free; GraphHopper starts at €69/mo.
- Where GraphHopper falls short: the free plan is non commercial use only.
- Where Leaflet falls short: 2D only with no support for 3D features, tilt, or rotation.
How do GraphHopper and Leaflet differ?
GraphHopper and Leaflet differ on year founded (2016 against 2011). Only the attributes on which GraphHopper and Leaflet actually diverge.
| Attribute | GraphHopper | Leaflet |
|---|---|---|
| Founded | 2016 | 2011 |
Identical on both: starting price (Free), free tier (Yes), platforms (Web), category (Maps).
Not yet recorded: pricing model for Leaflet.
Which features does each one have?
They share 2 listed features. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in GraphHopper
Nothing recorded that Leaflet does not also cover.
Only in Leaflet
Nothing recorded that GraphHopper does not also cover.
Both cover
- Core Functionality
- User Interface
What is each one used for?
GraphHopper is most often brought in for routing, distance matrix and route optimisation over an API; Leaflet for embedding interactive maps in a web page. The jobs each tool is most often brought in to do.
GraphHopper
- Routing, distance matrix and route optimisation over an APInot Leaflet
- Map matching GPS traces and generating isochronesnot Leaflet
Leaflet
- Embedding interactive maps in a web pagenot GraphHopper
- Mobile-friendly map interfaces across desktop and mobile browsersnot GraphHopper
- Mapping where bundle size matters, at roughly 42 KB of JavaScriptnot GraphHopper
- Extending a basic map with plugins rather than adopting a full platformnot GraphHopper
Where do GraphHopper and Leaflet fall short?
GraphHopper's most cited limit: the free plan is non commercial use only. Leaflet's: 2D only with no support for 3D features, tilt, or rotation. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
GraphHopper
- The free plan is non commercial use only
- Free allows 500 credits a day, 5 locations per request and a single vehicle
- Request complexity is capped per plan, at 30 locations and 2 vehicles on Basic at 69 EUR a month, rising to 200 locations and 20 vehicles on Premium at 479 EUR
- Isochrone range is limited by plan, at 15 minutes on Basic and 30 on Premium
- Credits are a daily allowance, so a busy day cannot draw on a quiet one
Leaflet
- 2D only with no support for 3D features, tilt, or rotation
- Performance degrades when rendering large datasets of complex vector geometries without optimization
- Limited dynamic styling support; style is fixed on the server when using raster tiles
- Lacks native support for WMS features; requires plugins like Leaflet.WMS and complex feature identification is cumbersome
- Requires external tile service for map imagery; does not provide map tiles natively
How much do GraphHopper and Leaflet cost?
GraphHopper has a free plan, with paid plans from €69/mo; Leaflet is free to use. Plan by plan below, from each vendor's own pricing page.
GraphHopper
Free- FreeFree
- Basic€69/mo
- Standard€199/mo
- Premium€479/mo
Leaflet
Free- Open sourceFree
Which should you pick?
Questions people ask
- Is GraphHopper or Leaflet better?
- It depends on the job. GraphHopper fits routing, distance matrix and route optimisation over an API; Leaflet fits embedding interactive maps in a web page. GraphHopper starts at Free and Leaflet at Free.
- Which is cheaper, GraphHopper or Leaflet?
- GraphHopper starts at Free and Leaflet at Free.
- Does GraphHopper or Leaflet run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use GraphHopper for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is GraphHopper best used for?
- GraphHopper is most often used for routing, distance matrix and route optimisation over an api, map matching gps traces and generating isochrones. Of those, routing, distance matrix and route optimisation over an api and map matching gps traces and generating isochrones are not what Leaflet is typically brought in for.
Answered from the vendors’ own pages
GraphHopper: Is the free plan actually usable for production?
No. The free tier is limited to non-commercial use only and includes 500 daily credits. To use GraphHopper in production, you need a paid plan starting at 69 euros per month.
SourceLeaflet: Is Leaflet free and open source?
Yes. Leaflet is open-source JavaScript library licensed for free use. Over 400 plugins add capabilities like marker clustering, heatmaps, drawing tools, geocoding, and routing.
SourceGraphHopper: What happens if I exceed my daily credit limit?
The page does not specify. Each tier has a daily credit limit (500 for free, 5,000 for Basic, 15,000 for Standard, 50,000 for Premium), but no overage policy is documented.
SourceLeaflet: How do I include Leaflet in my project via CDN?
Leaflet is available on multiple free CDNs including unpkg, cdnjs, and jsDelivr. Include the CSS stylesheet from https://unpkg.com/leaflet@1.9.4/dist/leaflet.css and JavaScript from https://unpkg.com/leaflet@1.9.4/dist/leaflet.js in your HTML head.
SourceGraphHopper: Does GraphHopper offer a trial period?
No. There is no trial period. You can start with the free plan to test, but commercial use requires a paid subscription.
SourceLeaflet: What mapping services does Leaflet support?
Leaflet integrates seamlessly with various mapping services including OpenStreetMap, Google Maps, Bing, and other custom tile providers, allowing developers to choose the best base layer.
SourceGraphHopper: How much does the Premium plan cost and what do I get?
Premium is 479 euros per month and includes 50,000 daily credits, up to 200 locations per request, up to 20 vehicles, email and phone support, and access to all APIs including routing and optimization.
SourceLeaflet: What is the file size of Leaflet?
Leaflet weighs about 42 KB of JavaScript.
SourceGraphHopper: Is there a discount if I link back to GraphHopper?
Yes. A 20% discount is available with proper attribution. The page also mentions a 99.5% uptime SLA on paid plans only.
SourceRelated pages
More on GraphHopper
Other head to heads
- GraphHopper vs OSRM
- GraphHopper vs OpenRouteService
- GraphHopper vs Mapzen
- GraphHopper vs Geoapify
- GraphHopper vs Google Maps Platform
- GraphHopper vs TomTom Developer Portal
- GraphHopper vs MapQuest
- GraphHopper vs Mapbox
- GraphHopper vs HERE Technologies
- GraphHopper vs OsmAnd
- GraphHopper vs GRASS GIS
- GraphHopper vs Manifold GIS
- GraphHopper vs MapLibre
- GraphHopper vs Maptive
- GraphHopper vs Mapy.com
- GraphHopper vs Navmii GPS
- GraphHopper vs Nominatim
- GraphHopper vs TomTom
- GraphHopper vs CesiumJS
- GraphHopper vs OpenLayers
- GraphHopper vs QGIS
- GraphHopper vs Stadia Maps
- GraphHopper vs CARTO
- GraphHopper vs WhiteboxTools
- GraphHopper vs Lonboard
- GraphHopper vs onX Maps
- GraphHopper vs MAPS.ME
- GraphHopper vs Waze
- GraphHopper vs Ride with GPS
- GraphHopper vs Sygic GPS Navigation
- Leaflet vs OSRM
- Leaflet vs OpenRouteService
- Leaflet vs Mapzen
- Leaflet vs Geoapify
- Leaflet vs Google Maps Platform
- Leaflet vs TomTom Developer Portal
- Leaflet vs MapQuest
- Leaflet vs Mapbox
- Leaflet vs HERE Technologies
- Leaflet vs OsmAnd
- Leaflet vs GRASS GIS
- Leaflet vs Manifold GIS
- Leaflet vs MapLibre
- Leaflet vs Maptive
- Leaflet vs Mapy.com
- Leaflet vs Navmii GPS
- Leaflet vs Nominatim
- Leaflet vs TomTom
- Leaflet vs CesiumJS
- Leaflet vs OpenLayers
- Leaflet vs QGIS
- Leaflet vs Stadia Maps
- Leaflet vs CARTO
- Leaflet vs WhiteboxTools
- Leaflet vs Lonboard
- Leaflet vs onX Maps
- Leaflet vs MAPS.ME
- Leaflet vs Waze
- Leaflet vs Ride with GPS
- Leaflet vs Sygic GPS Navigation
