OpenMapTiles. vehicle routing
Asked Answered
A

2

7

I am trying to use openMapTiles vector tiles for vehicle routing. It seems like a very fast data source to load. I intend to simulate many vehicles, so repeatedly querying google maps api is not an option.

Is there an easy way to find road intersections? Are bridges a special case?

Also I will eventually need to merge multiple tiles together. How is that done in practice? Do the points along the edges line up with adjacent tiles. What if there is 4-way intersection near a tile boundary?

Alphonse answered 31/8, 2018 at 22:10 Comment(0)
K
2

Vector tiles are not optimized for routing. While it might be possible to do very basic routing (better call it pathfinding) on vector-tiles, this is very limited and I am not aware of any project that does this, so you might have to write your own library (which I don't recommend).

Vector tiles usually don't contain routing information, so there is no maxspeed, or access rules. In addition to that, how would you handle a case, where the fastest route leads over a road that is a) not yet available on your current zoom level or b) outside your currently loaded tiles.

AFAIK Brouter and Valhalla use a tile approach for routing, but they use special tiles that cover a large area (like a country) and that are specially generated for the purpose of routing.

I recommend to use a routing api, there is for example GraphHopper or as mentioned by isp-zax there is Mapbox.

Kevyn answered 29/9, 2018 at 6:51 Comment(0)
G
0

Stumble upon this question, while confirming that OpenMapTiles don't have routing as of 15-09-2018.

If it's essential, you are better off using something else, such as mapbox which has directions API based on OpenStreetMap

Gastrolith answered 17/9, 2018 at 1:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.