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.
Vector tiles make huge maps fast while offering full design flexibility. The vector tile format is the vector data equivalent of raster image tiles for web mapping, with the strengths of tiling: optimized for caching, scaling, and serving map imagery rapidly. This guide describes how vector tiles work in web maps.
A vector tile package (. vtpk) is a collection of vector tiles and style resources that are stored on a server. Vector tiles contain vector representations of data across a range of scales. Unlike raster tiles, they can adapt to the resolution of the display device and even be customized for multiple uses.
A vector tile layer references a set of web-accessible vector tiles and a corresponding style that dictates how the tiles will draw. Vector tile layers are similar to web tile layers, but they store a vector representation of the data instead of a raster representation.
When vector tiles are used in a map in their native projection, styling is applied dynamically as you zoom in and out across scales. When vector tiles are used in a map with a projection other than how they are defined, the styling is not applied dynamically as you zoom across scales.
Vector tile layers are similar to web tile layers, but they store a vector representation of the data instead of a raster representation. Because the data and the visual style are separate, vector tile layers can be customized to the map, which drives dynamic, interactive cartography.
Select the vector tile layer in the Contents pane. Right-click and click Set Pop-up Source. Choose from my items —Check the box if you want to include items from your organization, select a map image layer or web feature layer from the list, or select a sublayer in the layer to use in the pop-up.
It is possible to mix raster tiles with vector tiles and make the best usage of both, e.g., satellite map (raster tiles) with an overlay of streets with labels available in many languages (vector tiles) Satellite map of Europe with Korean labels - the same tiles can be used with any other language - without a need to render tiles again.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With