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

Nominatim lookup by id: admin_level not present on administrative boundaries Is this by design or am I missing a parameter? My URL: https://nominatim.openstreetmap.org/lookup.php?osm_ids=R113765&polygon_geojson=1&format=json&extratags=1

I there a subsequent call I should make to get the data I need? I should not be calling the details endpoint but that has exactly the data I need

asked 12 Mar '21, 01:43

TSaldana's gravatar image

TSaldana
6111
accept rate: 0%

edited 12 Mar '21, 01:47


There's no further parameter for /lookup.php what would return the field. Entirely possible nobody needed the field so far or used /detail.php. You could request it to be added https://github.com/osm-search/Nominatim/

Alternatively change 'format=json' to 'format=jsonv2' and you'll see a 'place_rank' field. In most cases you can calculate the admin_level from that, e.g. place_rank=16 is admin_level=8

permanent link

answered 12 Mar '21, 15:17

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

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:

×689
×92
×37
×26

question asked: 12 Mar '21, 01:43

question was seen: 2,034 times

last updated: 12 Mar '21, 15:17

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