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

Yes, I am using python. I wrote use this code below and it is working fine for me.

import overpy
import json
from copy import deepcopy
import haversine as hs
import math


api = overpy.Overpass()
#generate an intended map boundary for a given coordinates

result = api.query (f'way(around:100,49.8974309,-97.2033944 )["highway"="footway"];(._;>;);out geom;')

where,
radius=100m
latitude =49.8974309
longitude=-97.2033944

But now, i do not want to use radius again, rather i want to use four coordinates like a rectangular bounding box to query osm for highway (e.g. footway in particular, in the specified area) using python.

asked 17 Feb '22, 16:08

Segunlakata's gravatar image

Segunlakata
16131316
accept rate: 0%

closed 17 Feb '22, 17:38

TZorn's gravatar image

TZorn
12.3k764225

The question has been closed for the following reason "Duplicate Question of https://help.openstreetmap.org/questions/83509/overpass-query" by TZorn 17 Feb '22, 17: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:

×483

question asked: 17 Feb '22, 16:08

question was seen: 782 times

last updated: 17 Feb '22, 17:38

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