Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bafolts/google-streetview-images
Pull google streetview panoramic images along a route.
https://github.com/bafolts/google-streetview-images
google-api google-maps maps panorama streetview
Last synced: about 1 month ago
JSON representation
Pull google streetview panoramic images along a route.
- Host: GitHub
- URL: https://github.com/bafolts/google-streetview-images
- Owner: bafolts
- License: unlicense
- Created: 2017-04-29T16:32:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-24T13:31:08.000Z (over 2 years ago)
- Last Synced: 2024-10-12T23:37:36.311Z (3 months ago)
- Topics: google-api, google-maps, maps, panorama, streetview
- Language: JavaScript
- Homepage: http://www.brianfolts.com/driver/
- Size: 9.77 KB
- Stars: 53
- Watchers: 7
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# google-streetview-images
Pull google streetview images along a route. With a provided origin and destination, the panorama streetview images from along that route will be downloaded sequentially.
**There is a free quota of roughly 25,000 image requests per day, if using this tool in production you will most likely need to upgrade to a premium account. After you reach the image quota limit you will no longer pull images. If you enter in a very long route you can reach this limit quickly.**
## Sample Usage
```js
function main() {
new StreetViewImages({
origin: document.getElementById("origin").value,
destination: document.getElementById("destination").value,
apiKey: document.getElementById("apiKey").value,
onPanoLoaded: function (pano) {
console.log(pano);
document.body.appendChild(document.createElement("img"))
.src = pano.panoUrl
},
onError: function (err) {
console.log(err);
},
onComplete: function () {
console.log("Done pulling images on route");
}
});
}
```## Usages in the wild
[Google Maps Streetview Player](http://www.brianfolts.com/driver/)