You are not logged in.
- Topics: Active | Unanswered
Announcement
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.***
Pages: 1
#1 2015-02-08 13:03:58
- Samarpan
- Member
- From: Kathmandu
- Registered: 2015-02-08
- Posts: 3
Show lat/long from radius of POI
How can I get lat/lon of all the hotels in a fixed radius i.e. 200km ? The query is very confusing. I did try
node["amenity"="pub"]["name"="Bristol"];node(around:100)["highway"="bus_stop"];out;for test. But when I change the Bristol to something like kathmandu, I get empty result. Moreover, the XML is more confusing then the query. I just started today on openstreetmap so please bear with me.
Thank you,
Samarpan
Offline
#2 2015-02-08 13:45:35
- user_5359
- Member
- From: Margetshöchheim
- Registered: 2008-12-25
- Posts: 333
- Website
Re: Show lat/long from radius of POI
Hello Samarpan,
welcome to the forum. The query means "please search me a node marked as pub and with the name Bristol. If you found one, search around this node a bus stop (with maximum 100 m distance).
If you change the name of the pub, there must be a pub with these name. Unfortunately no pub with name "kathmandu" exists worldwide!
Did you know the website http://overpass-turbo.eu ?
Rechauds Georg V. (OSM=user_5359)
Offline
#3 2015-02-08 15:00:30
- Samarpan
- Member
- From: Kathmandu
- Registered: 2015-02-08
- Posts: 3
Re: Show lat/long from radius of POI
So, does that mean, that I would get result of all the pubs around the world having the name Bristol? And yes, I did use turbo service for the results. Also, I wanted to know what is the maximum radius for the close-by search. The documentation doesn't have much information about the limit. Thank you for your quick reply.
Samarpan
Offline
#4 2015-02-08 17:36:02
- user_5359
- Member
- From: Margetshöchheim
- Registered: 2008-12-25
- Posts: 333
- Website
Re: Show lat/long from radius of POI
Without bündig box or searcharea: yes, there are six pubs with the name Bristol. I don't think there is a (technical) maximum. But there is a praticial maximum by the used resources.
Georg V.
Offline
#5 2015-02-09 15:07:59
- Samarpan
- Member
- From: Kathmandu
- Registered: 2015-02-08
- Posts: 3
Re: Show lat/long from radius of POI
Cleared
I have another question. Can you please explain me what does ( 27.584181,85.2482828,27.7256024,85.3897042 ) actually means in term of geometry
node
["name"~"[cC]howk"]
( 27.584181,85.2482828,27.7256024,85.3897042);
out;I read that, they are the lower limit and upper limit of the polygon. But can you please point what is it referring in terms of the shape of the data obtained. In short, what is the position of the two co-ordinates in the matrix.
Last edited by Samarpan (2015-02-09 15:09:17)
Offline
Pages: 1