getCountryFromCoords picked the country with the smallest bounding box containing the point, so a place just across a border (e.g. Strasbourg, which sits inside both the FR and DE boxes) landed in the wrong, smaller-box country. When more than one country box matches, it now disambiguates with the real admin0 polygon via point-in-polygon, smallest-box-first; a micro-territory with no admin0 polygon (HK, MO, SM, VA, ...) keeps the smallest-box win, and an unmatched point falls back to the old behaviour. The common single-candidate case is unchanged. |
||
|---|---|---|
| .. | ||
| db | ||
| mcp | ||
| middleware | ||
| nest | ||
| services | ||
| systemNotices | ||
| utils | ||
| idempotency-cleanup.test.ts | ||
| scheduler.test.ts | ||
| shared-contract.test.ts | ||