Skip to content

Street View images from random locations in a given country

Notifications You must be signed in to change notification settings

francescocervone/random-street-view

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Street View images from random locations in a given country

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%