Download the PHP package varsitynewsnetwork/google-places-api without Composer
On this page you can find all versions of the php package varsitynewsnetwork/google-places-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download varsitynewsnetwork/google-places-api
More information about varsitynewsnetwork/google-places-api
Files in varsitynewsnetwork/google-places-api
Download varsitynewsnetwork/google-places-api
More information about varsitynewsnetwork/google-places-api
Files in varsitynewsnetwork/google-places-api
Vendor varsitynewsnetwork
Package google-places-api
Short Description A mini library to fetch place information out of Google Places API via a text search
License MIT
Package google-places-api
Short Description A mini library to fetch place information out of Google Places API via a text search
License MIT
Please rate this library. Is it a good library?
Informations about the package google-places-api
google-places-api
A mini library to fetch place information out of Google Places API via a text search or a find place request
Usage
Formatters
The concept of formatters are baked in to allow you to easily manipulate
the data returned by Google. Simply pass a callable as the second argument
to textSearch()
or findPlace()
.
For instance, if you only wanted the address of the first result:
The library also ships with some standard formatters:
CountryStripperFormatter
: Removes the country from theformatted_address
LatLngFormatter
: Formats the results as an array of lat, lng, and address.SingleResultFormatter
: Grabs the first result and returns itCompositeFormatter
: Allows for running multiple formatters
Example:
Which will yield something like:
All versions of google-places-api with dependencies
PHP Build Version
Package Version
No informations.
The package varsitynewsnetwork/google-places-api contains the following files
Loading the files please wait ....