This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Detect if Lat/Long is in ocean/sea/water

1

Hi all,

May I ask you a question? I have installed on a server Mapnik (for rendering and serving tiles) and Nominatim (for reverse geocoding). Both of them have imported a complete planet.osm file in PostgreSQL.

I would like to have a call (from Nominatim, maybe?) that tell me, in JSON format, passing a coordinate in lat/long format, if is a body water (Ocean, Sea, Lake or River). I don't need to do a reverse geocode (i.e. knowing what Sea it is). Just if is water or not.

Previous question asked also to recognize the name of the body water. For me, just a boolean would be perfect :)

Is this existing? Or I have to made my query on PostreSQL? Thank you!

asked 28 Jun '16, 17:13

Alby87's gravatar image

Alby87
26112
accept rate: 0%

edited 28 Jun '16, 17:14

Source code available on GitHub .