NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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: http://wiki.openstreetmap.org/wiki/Overpass_API/Technical_details

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×54
×19

question asked: 12 Jan '16, 11:38

question was seen: 2,442 times

last updated: 13 Jan '16, 14:40

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum