I'm planning on writing a small phone application which will show the users the current street and speed limit, I found that this information is easily accessible on the following link:

http://overpass-api.de/api/interpreter?data=[out:json];way(around:10,53.6788398,-1.4992124)[maxspeed];out;

But since this will be a real time app and each user will probably ping the server at every 5 seconds, I have concluded that it will be against the current server fair usage limit so I have deployed a local copy to my own server, however I do not want to use the interpreter with Apache I will like to use my own php script which calls osm3s_query but I couldn't find a way to translate above query to work from the command line.

I have read the documentation found here: http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#.22around.22_-_finding_something_near_something_else about the around, but it doesn't give any explanation about how to use it with lat/long and creating a bounding box for this feels like an overkill to me.

As question number 2, is there any way to reduce the deployed osm data? I only need street names and speed limits, I do not need everything else, but I need this for the whole globe, and I need to updated it on daily or weekly basis. Again having a full OSM synced to my server fills a huge overkill.

Thank you.

asked 22 Oct '17, 23:26

Borconi's gravatar image

Borconi
21223
accept rate: 0%

edited 22 Oct '17, 23:31


permanent link

answered 23 Oct '17, 14:01

Borconi's gravatar image

Borconi
21223
accept rate: 0%

Your answer
toggle preview

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:

×355
×100
×4

question asked: 22 Oct '17, 23:26

question was seen: 711 times

last updated: 23 Oct '17, 14:01

powered by OSQA