search by insee code

This commit is contained in:
Tykayn 2025-06-05 15:09:28 +02:00 committed by tykayn
parent 8081889f1e
commit 8d83186a68
7 changed files with 130 additions and 78 deletions

View file

@ -92,9 +92,9 @@
async function fetchland() {
// Requête pour obtenir le contour administratif
const boundaryQuery = `[out:json][timeout:25];
area["postal_code"="${zip_code}"]->.searchArea;
area["ref:INSEE"="${zip_code}"]->.searchArea;
(
relation["boundary"="postal_code"]["postal_code"="${zip_code}"](area.searchArea);
relation["boundary"="postal_code"]["ref:INSEE"="${zip_code}"](area.searchArea);
);
out body;
>;