TileServer GL VS Open Source Routing Machine (OSRM)

Compare TileServer GL vs Open Source Routing Machine (OSRM) and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
TileServer GL Open Source Routing Machine (OSRM)
12 19
2,056 6,074
2.9% 1.6%
9.5 7.0
4 days ago 20 days ago
JavaScript C++
GNU General Public License v3.0 or later BSD 2-clause "Simplified" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

TileServer GL

Posts with mentions or reviews of TileServer GL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-23.
  • GIS hosting
    1 project | /r/selfhosted | 8 Dec 2023
  • Protomaps – A free and open source map of the world
    12 projects | news.ycombinator.com | 23 Oct 2023
    I've been using TileServer GL for a while and it looks like there is support for pmtiles coming soon.

    https://github.com/maptiler/tileserver-gl/pull/1009

  • Serverless maps at 1/700 the cost of Google Maps API
    9 projects | news.ycombinator.com | 10 Mar 2023
    Firstly, I just want to say thanks for the reply, but more so thanks for your work, its moving opensource mapping forward.

    In my work we are looking at switching from mbtiles hosted with tilserver-gl(https://github.com/maptiler/tileserver-gl) to pmtiles to remove a server process. But we we self host already and we are already using maplibre-gl 2.

    I can see why the implementation in the blog post would be better for high traffic deployments (ours isn't). It also points out to me I don't understand how a CDN would handle range request for hosting the pmtiles file directly, it probably doesn't?

    As far as the mapbox stuff,in my mind, pmtiles is a direct competitor (successor) to the mbtiles format, which was a revolution in comparison to everything that came before it. A successor I welcome because it makes it even easier for me as a developer to self host and not be dependent on a SaaS to run my maps.

    The modern opensource map stack wouldn't exist without mapbox and I'm personally grateful to them for that. Most people who use pmtiles will use mapbox's opensource style spec to style them, and descendants of their open source code to render them. But as a developer now its an obvious choice to not use their services after years of using them.

    However I'm not doing high traffic stuff and they never made much money off me anyway.

  • How The Post is replacing Mapbox with open source solutions
    21 projects | news.ycombinator.com | 17 Feb 2023
    https://github.com/maptiler/tileserver-gl makes it really easy. I have a pretty simple pipeline set up to download an OSM extract, convert it to MBTiles, host it in CloudFlare, and render raster tiles with this software.
  • Does anyone know where to find the global raster set of buildings??
    4 projects | /r/gis | 25 Jan 2023
    It's not raster directly, but you could use planetiler ( https://github.com/onthegomap/planetiler ) to build a full planet vector map . Then you could use something like TileServer-GL to server the vector map with a style. TileServer-gl ( https://github.com/maptiler/tileserver-gl) would provide a raster source that displays in the style you set on your vector map.
  • Self Hosting a Google Maps Alternative with OpenStreetMap
    17 projects | news.ycombinator.com | 22 Nov 2022
  • Shade Map Pro
    2 projects | news.ycombinator.com | 3 Mar 2022
  • XYZ Vector tile server
    3 projects | /r/openstreetmap | 6 Oct 2021
  • Offline Map Tiles
    3 projects | /r/selfhosted | 3 Jul 2021
    You could host something like tileserver-gl (https://github.com/maptiler/tileserver-gl) and use the pre-generated vector tiles from https://archive.org/details/osm-vector-mbtiles Add some map styles and you have your own offline map service. Here are some good starters for styles: https://github.com/openmaptiles/osm-bright-gl-style
  • Need help finding a server-compatible GPU
    1 project | /r/HomeServer | 25 Mar 2021
    This server is intended to be a tile server, taking vector data and rendering it to rasterized tile images via tileserver-gl (which uses OpenGL)

Open Source Routing Machine (OSRM)

Posts with mentions or reviews of Open Source Routing Machine (OSRM). We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-14.
  • Easiest way to calculate distances between multiple locations?
    1 project | /r/excel | 15 May 2023
    then called the Open Streetmap api described here using Power query: https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md
  • Can someone fix this tricky ferry route?
    1 project | /r/openstreetmap | 1 Jan 2023
  • Using R to Cluster Points by Road Networks
    4 projects | /r/Rlanguage | 14 Dec 2022
    OSRM: A super fast and easy to use routing engine that runs on OSM data. You only need to run 5 lines of code to (1) download a .pbf from Geofabrik, (2-5) download the OSRM docker image and pre-process the OSM data. There are also 3 profiles predefined that you can use: car, bike, foot (e.g. foot.lua). It basically hosts a local server. I find the easiest way is to combine it with the osrm R package. I have seen you also need to adjust for the elevation. I think I have seen some custom LUA profiles that also account for DTM derived elevation changes as an additional weight.
  • OpenStreepMap 2012 vs. 2022
    10 projects | news.ycombinator.com | 30 Sep 2022
  • Troubleshooting OSRM
    1 project | /r/docker | 27 Aug 2022
    I am trying (and failing) to setup an OSRM instance with docker compose. The issue I've encountered is with setting up osrm-backend. According to the Github and Docker Hub pages, the process is as follows:
  • What's everyone working on this week (29/2022)?
    12 projects | /r/rust | 18 Jul 2022
    I am creating Rust bindings to https://github.com/Project-OSRM/osrm-backend using autocxx. This allows for fast routing on openstreetmap data. They have a nodejs server, but I'm going to write a Rust one with these new bindings. I am finding that many of the config classes in C++ are't Plain-Old-Data structures, so are opaque structs, so I have to write getters and setters in C++.
  • Show HN: Self-Hosted Maps Stack
    11 projects | news.ycombinator.com | 27 May 2022
    > As a cyclist I’m almost always disappointed by google, apple, and Valhalla

    Have you tried the OSRM bike config? (The one you find in https://github.com/Project-OSRM/osrm-backend/blob/master/pro...)

  • loosing my mind
    1 project | /r/openstreetmap | 17 May 2022
    This is a 30 second exercise on OSRM, or any other service that provides directions.
  • There should be a “safe mode” on google maps.
    1 project | /r/TwoXChromosomes | 9 May 2022
    As for the rules for routing algorithms, OSMR's foot profile looks like good place to start. You could copy the file into something like for_women.lua and extend it with rules for e.g. street lighting and any other features of interest. Of course, it would be best to reach out to the other devs first.
  • Walking distance and triangle inequality
    1 project | /r/gis | 29 Apr 2022
    I'm trying to calculate walking distances using OSM and OSRM but this results in distance matrices that violate triangle inequality. This is a pretty bad issue for the spatial models I'm building. I was wondering whether there are alternatives to OSRM that guarantee that triangle inequality is respected. Mostly, I really don't care about the routing algorithm looking at red lights, whether streets are one or two way streets, private roads, etc. I just need the distance along pathways between points.

What are some alternatives?

When comparing TileServer GL and Open Source Routing Machine (OSRM) you can also consider the following projects:

TileServer PHP - MBTiles and MapTiler folder hosting with TileJSON, OGC WMTS, UTFGrid interaction and web interface. QGIS & ESRI ArcGIS compatible. Runs on any Apache+PHP webhosting. MapBox Studio Vector Tiles hosting.

openrouteservice - 🌍 The open source route planner api with plenty of features.

Nominatim - Open Source search based on OpenStreetMap data

valhalla - Open Source Routing Engine for OpenStreetMap

openstreetmap-tile-server - Docker file for a minimal effort OpenStreetMap tile server

OpenTripPlanner - An open source multi-modal trip planner

InterpolateHeatmapLayer - Minimalist JavaScript library for rendering temperature maps (or interpolate heatmaps) with Mapbox GJ JS

Hauk - Open-source realtime location sharing

OsmAnd - OsmAnd

osm-bright-gl-style - OSM Bright GL Style using OpenMapTiles