mapbox-glvector-tilesopenmaptiles

Vector tile route finding


Has anyone used either Mapbox or OpenMapTiles vector tiles to find routes from one place to another?

It seems to me like those tiles are made for display and don't contain intersection information the way that say Open Street Map does.


Solution

  • Mapbox has directions API which uses Open Street Map:

    Mapbox’s directions services use a network of roads and paths, or ways, derived from OpenStreetMap, a collaborative project to create a free and editable map of the world.

    Contributors to OpenStreetMap have built a vast, routeable network that includes properties like speed limits, turn lane restrictions, and accessibility for bikes and pedestrians. These details provide the framework that the Open Source Routing Machine (OSRM) needs to calculate the fastest path for your mode of transportation (driving, cycling, walking).

    So the answer is yes - the tiles don't contain routing graph and meant to display. Waypoints retrieved via API allow to display route on top. Here is an example of how to use it with mapbox-gl.

    OpenMapTiles at this time (15-09-2018) don't offer routing as far as I know.