mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
search by insee code
This commit is contained in:
parent
8081889f1e
commit
8d83186a68
7 changed files with 130 additions and 78 deletions
|
@ -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;
|
||||
>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue