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
Installs: 4 002
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^8
- twig/twig: ^3.0
- vlucas/phpdotenv: ^2.4
This package is auto-updated.
Last update: 2024-11-09 14:45:21 UTC
README
This package can get street view image from any address to GPS coordinates, location or panorama ID using Google's street view service. Here's a quick example:
$client = new \GuzzleHttp\Client(); $streetView = new \Defro\Google\StreetView\Api($client); $imgUrl = $streetView ->setApiKey('YOUR_GOOGLE_API_KEY') ->getImageUrlByLocation('Eiffel tower, Paris'); echo '<img src="' . $imgUrl . '" />';
Documentation
Read how to install, use this package, customize photo location to display on documentation page.
License
The MIT License (MIT). Please see license file for more information.