OpenStreetMap/Overpass: differenze tra le versioni

Da Wikimedia Italia.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Riga 1: Riga 1:
Servizio di query su OpenStreetMap, usato abbondantemente dalla comunità italiana.
Servizio di query su OpenStreetMap, usato abbondantemente dalla comunità italiana.
== Istanza italiana ==
Spazio su Cloud VPS ottenuto in {{phab|T426790}} nel progetto <code>osmit</code> ([[Server#Altri_server_in_Wikimedia_Cloud]]).
Istanza in fase di setup, non farci ancora affidamento per applicazioni di produzione.
L'URL dell'istanza è https://osmit-overpass.wmcloud.org/api/interpreter , per usarla per fare query:
#Aprire https://overpass-turbo.eu/
#Cliccare su "Impostazioni"
#Nel campo "Server" usare il valore https://osmit-overpass.wmcloud.org/api/
#Cliccare salva
#Usare normalmente Overpass per eseguire le query


== Link utili ==
== Link utili ==
* [[osm:Overpass]]
* [[osm:Overpass]]
== Overpass API ==
* [[osm:Overpass API]]
* [[osm:Overpass API]]
* [https://www.openstreetmap.org/user/SomeoneElse/diary/409111 Setting up an Overpass API server - how hard can it be?]
* [https://www.openstreetmap.org/user/SomeoneElse/diary/409111 Setting up an Overpass API server - how hard can it be?]
Riga 15: Riga 25:
** [https://community.openstreetmap.org/t/overpass-api-performance-issues/140598/35 Indicazioni sull'utilizzo]
** [https://community.openstreetmap.org/t/overpass-api-performance-issues/140598/35 Indicazioni sull'utilizzo]


=== Requisiti ===
== Requisiti ==
Informazioni dai [https://github.com/b1tw153/Overpass-API/blob/main/README.md#resource-sizing requisiti ufficiali]:
Informazioni dai [https://github.com/b1tw153/Overpass-API/blob/main/README.md#resource-sizing requisiti ufficiali]:


Riga 53: Riga 63:


Set the container memory limit explicitly — for example, with `docker run --memory=16g`. Without a memory limit, the container can consume all available host memory under heavy query load.
Set the container memory limit explicitly — for example, with `docker run --memory=16g`. Without a memory limit, the container can consume all available host memory under heavy query load.
=== Istanza italiana ===
Spazio su Cloud VPS ottenuto in {{phab|T426790}} nel progetto <code>osmit</code> ([[Server#Altri_server_in_Wikimedia_Cloud]]).
Istanza in fase di setup, non farci ancora affidamento per applicazioni di produzione.
L'URL dell'istanza è https://osmit-overpass.wmcloud.org/api/interpreter , per usarla per fare query:
#Aprire https://overpass-turbo.eu/
#Cliccare su "Impostazioni"
#Nel campo "Server" usare il valore https://osmit-overpass.wmcloud.org/api/
#Cliccare salva
#Usare normalmente Overpass per eseguire le query

Versione delle 20:23, 15 ott 2026

Servizio di query su OpenStreetMap, usato abbondantemente dalla comunità italiana.

Istanza italiana

Spazio su Cloud VPS ottenuto in T426790 nel progetto osmit (Server#Altri_server_in_Wikimedia_Cloud).

Istanza in fase di setup, non farci ancora affidamento per applicazioni di produzione.

L'URL dell'istanza è https://osmit-overpass.wmcloud.org/api/interpreter , per usarla per fare query:

  1. Aprire https://overpass-turbo.eu/
  2. Cliccare su "Impostazioni"
  3. Nel campo "Server" usare il valore https://osmit-overpass.wmcloud.org/api/
  4. Cliccare salva
  5. Usare normalmente Overpass per eseguire le query

Link utili

Requisiti

Informazioni dai requisiti ufficiali:

Storage

For a full planet import, expect roughly 4-5× expansion from the compressed `.osm.bz` file to the database. Check the current planet file size on planet.openstreetmap.org before provisioning storage.

Approximate full planet database sizes by metadata mode as of Q2 2026:

Mode Database Size
attic (full history) ~750 GiB
meta (latest metadata) ~365 GiB
no (base data only) ~270 GiB
--areas=yes (area data) ~30 GiB (additional)

For extracts, the database will be proportionally smaller, but the expansion ratio from source to database is similar. Check the size of your chosen extract file and apply a 4-5× multiplier as a planning estimate. Note that most extract sources do not include full history, so `attic` mode is generally not available for extracts; `meta` mode is typical.

CPU

The container runs one fcgiwrap worker per CPU core plus one by default (`FCGIWRAP_WORKERS` defaults to `cpu.max`/`nproc` + 1). Each worker handles one concurrent query. Provision CPU cores based on your expected concurrent query load. A single core is sufficient for light personal use; a public-facing instance benefits from more cores to handle concurrent requests without queuing or rate limiting. An optional request queue can be configured in nginx.

RAM

  • A minimal development instance with a small extract can run with 1-2 GiB
  • A lightly loaded personal instance can run with 4-8 GiB
  • A moderately loaded instance with complex queries benefits from 16-32 GiB
  • A heavily loaded public instance may need 64 GiB or more

Set the container memory limit explicitly — for example, with `docker run --memory=16g`. Without a memory limit, the container can consume all available host memory under heavy query load.