I want to get the coordinates that limit a state using overpass (OSM) like this:

  "type": "way",
  "id": 24157062,
  "bounds": {
    "minlat": 24.4535230,
    "minlon": 54.3770477,
    "maxlat": 24.4541602,
    "maxlon": 54.3777469

the problem is when I query an area, it does not return the arguments I need, and it returns this:

  "type": "area",
  "id": 3600307763,
  "tags": {
    "ISO3166-1": "AE",
    "ISO3166-1:alpha2": "AE",
    "ISO3166-1:alpha3": "ARE",
    "ISO3166-1:numeric": "784",
    "admin_level": "2",
    "alt_name:ar": "الإمارات العربيّة المتّحدة",
    "alt_name:la": "Emiratus Arabici Uniti",

is it possible to consult the bounding boxes of an area? and if so, could you help me with the structure of the query

i'm trying to do it this way:

 out bb;

asked 28 Dec '21, 22:57

chjuca's gravatar image

accept rate: 0%

permanent link

answered 31 Dec '21, 16:17

DaveF's gravatar image

accept rate: 13%

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: 28 Dec '21, 22:57

question was seen: 168 times

last updated: 31 Dec '21, 16:17

Related questions

powered by OSQA