Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 month 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

Awesome Lists containing this project

README

        

# Google Street View API

[![Latest Version](https://img.shields.io/github/release/defro/google-streetview.svg?style=flat-square)](https://github.com/defro/google-streetview/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/defro/google-streetview/master.svg?style=flat-square)](https://travis-ci.org/defro/google-streetview)
[![SymfonyInsight](https://insight.symfony.com/projects/bb6b7848-7e7a-4e9f-a25b-397369caeef5/mini.svg)](https://insight.symfony.com/projects/bb6b7848-7e7a-4e9f-a25b-397369caeef5)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/defro/google-streetview/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/defro/google-streetview/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/defro/google-streetview/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/defro/google-streetview/?branch=master)
[![StyleCI](https://styleci.io/repos/156726302/shield)](https://styleci.io/repos/156726302)
[![Total Downloads](https://img.shields.io/packagist/dt/defro/google-streetview.svg?style=flat-square)](https://packagist.org/packages/defro/google-streetview)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](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.