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

Overpass API delivers a result with two "admin_level: 4" entries for one coordinate as shown:

http://overpass-api.de/api/interpreter?data=[out:json];is_in(%2253.166591%22,%229.841431%22);out+body;%3E;out+skel;

This leads to filtering problems. How does that happen?

asked 02 Sep '18, 18:59

jolipo's gravatar image

jolipo
11112
accept rate: 0%


The reason the are both returned is that they both exist in the data and are both interpreted as areas by Overpass-API. Which isn't very helpful.

One of the objects represents just the land area:

https://www.openstreetmap.org/relation/454192

I guess you could filter on an additional tag like boundary=administrative (or whatever might be suitable).

permanent link

answered 02 Sep '18, 19:35

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 02 Sep '18, 19:38

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:

×54

question asked: 02 Sep '18, 18:59

question was seen: 1,698 times

last updated: 02 Sep '18, 19:38

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