App 2.39.1, server 2.8.0: map roads from OpenFreeMap, on demand
The public Overpass answered 429/502 and needs ~40 s a tile while the car gives up after 8 s, so the server cancelled its queries and the car's retries added load. Now the server fetches only the tiles a car asks for, as OpenStreetMap vector tiles from OpenFreeMap (MAP_TILES_URL), decodes the transportation layer with a small reader of its own, and keeps each tile 30 days on a volume (MAP_CACHE_DIR). A fetch finishes even after the car has stopped waiting; the car hears 503 with Retry-After and gets the tile on its next try. App: OpenFreeMap/OpenMapTiles attribution on the map, retry after 15 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
+4
-2
@@ -21,8 +21,10 @@ software. `LICENSE` names all of them; keep every line.
|
||||
## Map data
|
||||
|
||||
The roads of the "Grid with map" style are © OpenStreetMap contributors, under the
|
||||
[Open Database Licence](https://opendatacommons.org/licenses/odbl/); the style shows that line
|
||||
whenever it draws them. The server fetches them from an Overpass API (`server/maps.go`).
|
||||
[Open Database Licence](https://opendatacommons.org/licenses/odbl/), in vector tiles
|
||||
© OpenMapTiles served by [OpenFreeMap](https://openfreemap.org). The style shows
|
||||
"OpenFreeMap © OpenMapTiles · © OpenStreetMap contributors" whenever it draws them. The server
|
||||
fetches the tiles (`server/maps.go`).
|
||||
|
||||
## The EVHardware library
|
||||
|
||||
|
||||
Reference in New Issue
Block a user