Trek_CN/server
Maurice 4cb9b18cc6 fix(atlas): assign border places by polygon, not just bounding box (#1331)
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.
2026-06-27 20:14:52 +02:00
..
assets v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
public v3.0.16 — bug fixes (#964) 2026-05-06 21:38:40 +02:00
scripts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
src fix(atlas): assign border places by polygon, not just bounding box (#1331) 2026-06-27 20:14:52 +02:00
tests fix(atlas): assign border places by polygon, not just bounding box (#1331) 2026-06-27 20:14:52 +02:00
.env.example fix(maps): make Overpass endpoints configurable and harden the POI search (#1309) 2026-06-27 20:14:52 +02:00
.gitignore Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
.prettierrc Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
eslint.config.mjs Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
package.json chore: bump version to 3.1.2 [skip ci] 2026-06-23 19:24:13 +00:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.build.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
tsconfig.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
vitest.config.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00