https://github.com/defro/google-streetview
Google StreetView photo service by API provide metadata request and get static image url by location (address), panorama ID or latitude & longitude
https://github.com/defro/google-streetview
api composer-library google google-streetview google-streetview-api
Last synced: about 1 year ago
JSON representation
Google StreetView photo service by API provide metadata request and get static image url by location (address), panorama ID or latitude & longitude
- Host: GitHub
- URL: https://github.com/defro/google-streetview
- Owner: defro
- License: mit
- Created: 2018-11-08T15:18:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T10:03:50.000Z (almost 4 years ago)
- Last Synced: 2025-04-15T23:09:17.011Z (about 1 year ago)
- Topics: api, composer-library, google, google-streetview, google-streetview-api
- Language: PHP
- Homepage: https://defro.github.io/google-streetview/
- Size: 120 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Google Street View API
[](https://github.com/defro/google-streetview/releases)
[](LICENSE)
[](https://travis-ci.org/defro/google-streetview)
[](https://insight.symfony.com/projects/bb6b7848-7e7a-4e9f-a25b-397369caeef5)
[](https://scrutinizer-ci.com/g/defro/google-streetview/?branch=master)
[](https://scrutinizer-ci.com/g/defro/google-streetview/?branch=master)
[](https://styleci.io/repos/156726302)
[](https://packagist.org/packages/defro/google-streetview)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MSER6KJHQM9NS)
This package can get street view image from any address to GPS coordinates, location or panorama ID using [Google's street view service](https://developers.google.com/maps/documentation/streetview/intro). Here's a quick example:
```php
$client = new \GuzzleHttp\Client();
$streetView = new \Defro\Google\StreetView\Api($client);
$imgUrl = $streetView
->setApiKey('YOUR_GOOGLE_API_KEY')
->getImageUrlByLocation('Eiffel tower, Paris');
echo '
';
```
## Documentation
Read how to install, use this package, customize photo location to display on [documentation page](https://defro.github.io/google-streetview/).
## License
The MIT License (MIT). Please see [license file](LICENSE) for more information.