This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Download multiple images via overpass API

0

Hello,

What is the way to download shape data centered around the given longitude and latitude coordinates (for example 1000 images from 1000 different locations)? Is there a way to automate that process in python using overpy? I am new in this field, therefore each advice would be helpful.

asked 13 Jan '21, 23:24

Miki450's gravatar image

Miki450
21112
accept rate: 0%


One Answer:

0

This is an extremely broad question and more about Python (and scripting/programming in general) than about OpenStreetMap or Overpass-API.

Also, beware that Overpass-API doesn't return images, it returns OpenStreetMap data in a relatively raw form.

In general, you'd figure out how to process one location and then wrap that in some logic to repeat it for each location you are interested in, possibly with some rate limiting to ensure that you are respecting the resource limits of the servers.

answered 14 Jan '21, 01:40

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Source code available on GitHub .