Why not ask your question on the new 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

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

accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



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:


question asked: 12 Mar '21, 01:43

question was seen: 1,552 times

last updated: 12 Mar '21, 15:17

powered by OSQA