New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

defro/google-streetview

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Source
Packagist
Version
dev-master
Version published
Total downloads
10K
Maintainers
1
Created
Source

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.

Keywords

google

FAQs

Package last updated on 09 Sep 2022

Related posts