Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.37 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.37 KB

random street view

Command-line Python script to get a number of Street View images from random locations in a given country.

Random (lat, lon) co-ordinates are generated from the country's border's bounding box, then checked to make sure they're within the actual borders. The corresponding Street View image downloaded. Often there is no imagery for the location, so if the size of the image matches that of the default "no imagery" thumbnail, it's deleted. Repeat until required number of images have been fetched.

You can see Street View coverage here.

Prerequisites

Usage

usage: random_street_view.py [-h] country

Get random Street View images from a given country

positional arguments:
  country     ISO 3166-1 Alpha-3 Country Code

For example:

random_street_view.py GBR