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

0
1

Hey guys! I need the possibility to find the underlying ground information of a given location (set by latLng) - not an area!

I already tried the nominatim reverse search, but it lacks the landuse information. Here's an example query: http://nominatim.openstreetmap.org/reverse?format=json&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1

How do I enforce the output of the landuse here, which would likely be "residential".

Greets, Kai

asked 02 Apr '14, 22:48

krnlde's gravatar image

krnlde
1112
accept rate: 0%

edited 04 Apr '14, 10:17

I guess currently there is no reversegeocoder with a focus on landuse. You might try to create your own prototype by using the Overpass API and add a small server based analysers as a frontend.

(04 Apr '14, 08:03) iii
1

Thanks for your comment. Since I'm not that familiar with the capabilities of Overpass API I put something together to ask if it is the right way to do. Would you please review this http://overpass-turbo.eu/s/2X7

(04 Apr '14, 09:14) krnlde

to check your results (I have got only 4 ways tagges with landuse=* ) you can try the overpass turbo wizard to do a query for landuse=anything without any coordinates, but only zoomed to the area you are interested in.

Maybe other landuse-objects are so big that they are not "covered" by your lat-lon-query?

(04 Apr '14, 14:35) stephan75

Yep, I think the problem in my query is that it doesn't catch the way (polygon) it is in. I need sth like an extrapolation for this polygon. In my example on overpass-turbo I'm standing on grass next to a basin, but the query only catches objects next to me (the basin), not the area/way I'm "in" (the grass). Any suggestions?

(04 Apr '14, 15:22) krnlde
1

It might be worth asking in the #osm-dev IRC channel - someone there might have a suggestion.

(04 Apr '14, 15:24) SomeoneElse ♦

Great idea! I'll try this tonight and let you guys know later :) Thank you all

(04 Apr '14, 15:26) krnlde
showing 5 of 6 show 1 more comments

I asked in the #osm-dev IRC Channel and got the following: First, this is a feature planned for osm.org based on the overpass API. Second, overpass2 DEV API already returns information about the enclosing areas: http://overpass2.apis.dev.openstreetmap.org/query?lat=51.7972&lon=8.8686

This is done by this algorithms https://github.com/tomhughes/openstreetmap-website/blob/overpass/app/assets/javascripts/index/query.js#L235

TL,DR;

is_in is the key command to get the enclosing area with all it's tags available.

Unfortunately is_in only appears to be covering areas with names in it. Other areas/ways can be covered by around

permanent link

answered 04 Apr '14, 15:46

krnlde's gravatar image

krnlde
1112
accept rate: 0%

edited 14 Apr '14, 14:14

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:

×147
×103
×85
×55

question asked: 02 Apr '14, 22:48

question was seen: 9,180 times

last updated: 14 Apr '14, 14:14

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