refactor(maps): the country lookup moves to utils, so maps no longer reaches into atlas

This commit is contained in:
Maurice
2026-10-12 21:13:58 +00:00
parent 37b3f0f3da
commit 0711efcb4b
4 changed files with 372 additions and 330 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
* need no branch per source. Pure: the calls themselves are trek-places.client's,
* the decision to make them is MapsService's.
*/
import { getCountryFromCoords } from '../atlas/atlas-geo';
import { getCountryFromCoords } from '../../utils/country-borders';
import { buildOsmDetails, parsePoiCategories, samePlace, toApiLang } from './maps.helpers';
import { POI_RESULT_CAP, type PoiSearchResult } from './providers/osm.client';
import {