Hi, I am trying to query parking using JSON via the Overpass API but what is returned by the JSON feed doesn't seem to correspond with what can be found on the map at http://www.openstreetmap.org/. An example below is a small town I know, on inspection of the map here http://www.openstreetmap.org/node/52263804#map=15/52.9902/-6.9821 you can see there are a number of car parks showing up, more than 2 at least. When I query the same location, an actual larger location using this link only 2 results appear. Does anybody know why this is? asked 07 Jan '15, 22:52 spudatron SomeoneElse ♦ |
just using amenity=parking in the wizard creates a query that searches for nodes, ways and relations. The query would be similar to the one in https://help.openstreetmap.org/questions/39872/can-i-create-my-own-layer Note that that query was asking for schools in a particular area and needed some additional formatting
answered 08 Jan '15, 06:31 escada |
You are only querying for nodes but some car parks are mapped as ways. answered 07 Jan '15, 22:57 Frederik Ramm ♦ Thanks for the quick response Frederik. Would you be able to give me an example of what the query should look like, very new to OSM. Regards
(07 Jan '15, 23:02)
spudatron
I just found it there now, replaced the word 'node' with 'way'. Do you know if there is a way to query both at the same time?
(07 Jan '15, 23:06)
spudatron
Why don't you use the Wizard? Its syntax is much more forgiving. Something like amenity=parking and (type:closedway or type:node) should give you what you need.
(08 Jan '15, 00:52)
AlaskaDave
|
Cheers for the replies guys, I have a better understanding how it all works now. I wasn't aware of the wizard feature until now.