Skip to content

Google StreetView photo service by API provide metadata request and get static image url by location (address), panorama ID or latitude & longitude

License

Notifications You must be signed in to change notification settings

defro/google-streetview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

07ff24a · Sep 9, 2022

History

79 Commits
Feb 28, 2021
Sep 9, 2022
Sep 9, 2022
Sep 9, 2022
Feb 27, 2021
Nov 9, 2018
Oct 17, 2020
Nov 9, 2018
Feb 28, 2021
Jan 18, 2019
Nov 8, 2018
Feb 28, 2021
Nov 8, 2018
Nov 8, 2018
Sep 9, 2022
Nov 8, 2018
Sep 9, 2022
Sep 9, 2022
Jan 17, 2019

Repository files navigation

Google Street View API

Latest Version Software License Build Status SymfonyInsight Scrutinizer Code Quality Code Coverage StyleCI Total Downloads Donate

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.