wiktorn / Overpass-API

Overpass API docker image
MIT License
133 stars 47 forks source link

Overpass API default output format #115

Closed stalkerGH closed 8 months ago

stalkerGH commented 8 months ago

I installed local Overpass API from Docker container. Everything works, server is accepting queries and is giving valid answers.

My local Overpass server gives responses in JSON format (Content-Type: application/json) but (probably) package expects them in OSM XML (Content-Type: application/osm3s+xml).

I see in my logs during making test query:

172.17.0.1 - - [13/Dec/2023:10:23:18 +0000] "POST /api/interpreter HTTP/1.1" 200 308 "-" "curl/7.81.0"
127.0.0.1 - - [13/Dec/2023:10:23:26 +0000] "GET /api/interpreter?data=[out:json];node(1);out; HTTP/1.1" 200 658 "-" "curl/7.74.0" 

"Asking" (from terminal) curl version is 7.81.0, "responding" curl (from Overpass API Docker container) is 7.74.0.

How can I force Overpass API server to give replies in osm3s+xml format? Which config files should I check? I have problems with some R packages to draw maps and have to eliminate every possible reason.

stalkerGH commented 8 months ago

OK, I realised that these messages come from healthcheck. Sorry for mess, closing the issue.