This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Non-HTTP requests inside own OSM server

0

Is it possible? Are there tools like Overpass API that work without using HTTP?

asked 06 Jan '15, 14:54

yaahor's gravatar image

yaahor
61458
accept rate: 0%

2

Can you explain in a few more words what it is that you are actually trying to do?

(06 Jan '15, 15:06) SomeoneElse ♦

One Answer:

2

You don't have to use HTTP for overpass api on your own server. There's a binary called osm3s_query which will happily accept your Overpass XML or QL queries on stdin and return some OSM xml result on stdout. That's actually quite handy once in a while for some local tests. Even overpass-api.de leverages osm3s_query for the purpose of creating/updating areas (see Wiki for details).

However, HTTP is clearly more convenient for overpass turbo and other web based apps, even if you're only pointing your browser to localhost.

This brings up the question why you want to avoid HTTP in the first place??

answered 06 Jan '15, 18:12

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

edited 06 Jan '15, 19:16

Source code available on GitHub .