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

Is there a way to know a specific point in which region it exists and get the polygon for that region?

I am interested in knowing the Region name and boundaries.

Preferably i would like something to use in a console application.

asked 15 Sep '14, 09:35

jyparask's gravatar image

jyparask
16224
accept rate: 0%

edited 15 Sep '14, 09:36

1

You added the Overpass API tag but it sounds like you want to perform a reverse geocoding query using Nominatim instead? A second query will be necessary for retrieving the polygon of the area returned by Nominatim.

(15 Sep '14, 11:02) scai ♦

@scai I am more than new in this thing, so you may be correct. I really do not know what my options are though :-) . I will check out this link. Thanks.

(15 Sep '14, 11:09) jyparask

Thanks to @scai and a bit of reading on the documentation he provided, i found out the actual solution.

Having lat and lng i am doing a reverse call on nominatim reverse providing lat and lon as parameters. Then i do a second call on nominatim search providing country and county from the previous result. This will give me the polygon if request it.

Since i use json, i add polygon_geojson=1 in the query string.

permanent link

answered 15 Sep '14, 12:02

jyparask's gravatar image

jyparask
16224
accept rate: 0%

(22 Sep '14, 18:52) stephan75

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:

×85

question asked: 15 Sep '14, 09:35

question was seen: 4,117 times

last updated: 22 Sep '14, 18:52

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