mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
9ab2fc30ff
The passport card and the last/next trip countries read place countries from the place_regions cache alone, while the Atlas map falls back to the bundled borders for a place without a cached region. A place in Vatican City never gets a region row (the region bundle has no VA features and Nominatim names no region there), so the map counted VA and the card did not. The same gap hid any country whose place was still waiting for its background lookup, or whose lookup had failed. Both views now resolve each place through one helper: the cached country first, the borders otherwise, once per location. The dashboard reads every place of a started trip with its cached country instead of the distinct cached codes, and the trip countries count resolved places the same way. The MCP travel stats tool and the public stats API use the same service methods and are fixed with it. Closes #2875