You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-10-02 23:13:19

Strabo Varenius
New Member
Registered: 2015-10-02
Posts: 1

Ideas for advanced queries on OSM data

Dear OSMers,

I would like to develop a search system based on OSM data to retrieve objects that co-occur in space with queries like “show all schools that are within 100 m from parks”, “find all restaurants near a lake”, “residential streets far from pubs".

I think that this kind of search would be useful to many users in a variety of applications, e.g., real estate, tourism, etc., and at the moment OSM (or Google/Bing/etc) does not offer this functionality.

I have some students/programmers who could develop it as part of their studies. I’m quite new to OSM, so I would like to ask you for advise on how to proceed. What would you recommend to do to develop this in the right way, maximizing its usefulness to the OSM community and re-use of existing code? Is there some cloud infrastructure to develop this kind of apps?

Kind regards,
Strabo

Offline

#2 2015-10-03 10:01:16

Jojo4u
Member
Registered: 2014-08-03
Posts: 1,090

Re: Ideas for advanced queries on OSM data

The around operator of Overpass should be your friend:
https://wiki.openstreetmap.org/wiki/Ove … 8around.29

Example: Find all cinemas in Bonn which are at most 100m away from bus stops

area[name="Bonn"];
node(area)[highway=bus_stop];
node(around:100)[amenity=cinema];
out;

For the "far from" example you could query all and substract the around set.

Offline

#3 2015-10-03 19:19:07

marczoutendijk
Member
From: Vught
Registered: 2012-03-04
Posts: 2,398
Website

Re: Ideas for advanced queries on OSM data

That functionality is also available in OpenPoiMap:

nearby.png

In the User Pois use this:

highway=bus_stop(100)amenity=cinema

Check the wiki for openpoimap to find out all the extra possibilities!


--
There is only one place where you can connect a high voltage line to a river: on osm! (but not in JOSM cool )

Offline

Board footer

Powered by FluxBB