dabreegster / route_snapper

Draw routes in MapLibre snapped to a street network using client-side routing
https://dabreegster.github.io/route_snapper
Apache License 2.0
147 stars 9 forks source link

Question: Would .pmtiles be interesting to support? #60

Open danielbeeke opened 2 months ago

danielbeeke commented 2 months ago

I could maybe help with this.

I would like to have offline maps and directions. The offline maps I intend on solving by using .pmtiles and a service worker that simulates the range request. I am wondering if the .pmtiles can also be used to generate the graph on the fly. It has all the vector tiles. In ym use case the end users device has the whole .pmtiles.

dabreegster commented 2 months ago

See #22 and #4. I think generating the graph from vector tiles is a cool idea, because it could potentially shrink the bandwidth/storage requirements. What scale does this offline map cover?

Complications:

Valhalla has routable tiles and is optimized for embedded environments, I think: https://valhalla.github.io/valhalla/tiles/

I think some of the folks involved in https://github.com/maplibre/maplibre-tile-spec are also interested in a tile format that could support both rendering and routing. I've seen some discussion in https://slack.openstreetmap.us/ in a channel for maplibre tiles