Download the PHP package wearesho-team/google-autocomplete without Composer
On this page you can find all versions of the php package wearesho-team/google-autocomplete. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wearesho-team/google-autocomplete
More information about wearesho-team/google-autocomplete
Files in wearesho-team/google-autocomplete
Package google-autocomplete
Short Description Service for searching cities and streets using passed input value
License
Informations about the package google-autocomplete
Google API Autocomplete Integration
This library allows you to search cities/streets of concrete country using google api.
Changelog
Installation
Usage
Create configuration
Or use Environment Config to load variables from environment
Variable | Required | Default value | Description |
---|---|---|---|
GOOGLE_SERVICE_AUTOCOMPLETE_URL | no | https://maps.googleapis.com/maps/api/place/autocomplete/json | url for google-autocomplete-api service |
GOOGLE_SERVICE_AUTOCOMPLETE_COUNTRY | no | ua | ISO alpha-2 country code in lower case |
GOOGLE_SERVICE_AUTOCOMPLETE_KEY | yes | your private key |
Create service
Create search data entity
Session token
A random string which identifies an autocomplete session for billing purposes for user In google-docs sad if this parameter is omitted from an autocomplete request, the request is billed independently. So this service is binding to use it.
Recommended to use hash string.
Searching cities
Searching streets
If you want to customize your queries use Query Interfaces
Receive suggestions
Search mode
Service have 2 modes for searching results:
This parameter is optional. By default set FULL() mode.
Yii2 configuration
If you need to configure your yii2 application, you can use this yii extension, that depend on this package
Contributing
To contribute you need to fork this repo and than create a pull request
Search language
Add language code to SearchLanguage.php
Frameworks configurations
Add directory with name of needs framework to source directory and create your Bootstrap.php file
Authors
- Alexander Yagich
- Roman Varkuta
License
- MIT
All versions of google-autocomplete with dependencies
horat1us/environment-config Version ^1.2
guzzlehttp/guzzle Version ^6.3
myclabs/php-enum Version ^1.6
wearesho-team/base-collection Version ^1.0.0