Skip to content

yonghah/streetscape

Repository files navigation

Streetscape

Streetscape helps to retrieve google street views in a city. This package uses Google's official streetview API only. So finding the locations of GSV is less efficient than utilizing unofficial/undocumented API such as http://cbk0.google.com/cbk.

image_all

Set up

Install streetscape

Prerequistes:

  • aiohttp
  • geopandas
pip install streetscape

Set environment variable GSV_API_KEY

linux and macosx

export GSV_API_KEY=YOUR_GOOGLE_STREET_VIEW_API_KEY

windows

set GSV_API_KEY=YOUR_GOOGLE_STREET_VIEW_API_KEY

Use

Steps:

  • get street lines (osmnx, tiger)
  • create 1D grid points along with street lines
  • check whether gsv exists on each observation points and get panoID
  • retrieve gsv images from each observation point

See the notebooke in the sample directory: https://github.com/yonghah/streetscape/blob/master/sample/example.ipynb

About

helper for sampling google street views in a city

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages