Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yonghah/streetscape
helper for sampling google street views in a city
https://github.com/yonghah/streetscape
Last synced: 3 months ago
JSON representation
helper for sampling google street views in a city
- Host: GitHub
- URL: https://github.com/yonghah/streetscape
- Owner: yonghah
- License: other
- Created: 2017-09-13T02:29:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T19:43:34.000Z (6 months ago)
- Last Synced: 2024-07-14T11:06:33.298Z (4 months ago)
- Language: Python
- Homepage:
- Size: 2.74 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://user-images.githubusercontent.com/3218468/35771925-e17728e8-0902-11e8-9a3a-3eeadb302764.png)
### 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 pointSee the notebooke in the sample directory:
https://github.com/yonghah/streetscape/blob/master/sample/example.ipynb