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

Background Working of Overpass Api ? Code behind exe’s !

0

I am using overpass api in my local machine,and the source folder contains only executable files(Especially cgi-bin/interpreter.exe and bin/osm3s_query.exe), All i want to know is how these exe's work in querying my request.

Summary of what i want to know : the code in those exe's,how it's able to query in the $DB_DIR :)

asked 12 Jan '16, 11:38

Arun%20Gowtham's gravatar image

Arun Gowtham
0111114
accept rate: 0%

The source code for Overpass API can be found at GitHub, is this what you are looking for?

(12 Jan '16, 11:46) scai ♦

@scai no not this, i need the code behind those exe's to which am sending the query.

(12 Jan '16, 11:48) Arun Gowtham
3

These binaries are build using the code I mentioned above. osm3s_query.exe is build from osm3s_query.cc. However I couldn't the source for interpreter.exe probably due to some Makefile magic.

(12 Jan '16, 12:16) scai ♦
2

The interpreter binary is being built based on the following Makefile.am snippet: https://github.com/drolbr/Overpass-API/blob/master/src/Makefile.am#L137-L138 - apart from that there's really very little information available about the inner workings. It's all about: use the force, read the source and ask some questions on the Overpass Dev list if you're stuck.

(12 Jan '16, 15:05) mmd
3

One thing I forgot: maybe should mention what kind of issue you're trying to solve in the first place. That could save you some days or even weeks of digging through the sources.

(12 Jan '16, 15:11) mmd

@mmd am not facing any issue,i just wanted to know how interpreter is processing my input i.e how is my query executed on a directory($DB_DIR) rather than a database !!

(13 Jan '16, 03:57) Arun Gowtham

For high level introduction I recommend to take a look at the following Wiki page: https://wiki.openstreetmap.org/wiki/Overpass_API/Technical_details

(13 Jan '16, 14:40) mmd
showing 5 of 7 show 2 more comments

Source code available on GitHub .