2017 © Pedro Peláez
 

library org-locationiq

image

linuskohl/org-locationiq

  • Sunday, May 14, 2017
  • by linuskohl
  • Repository
  • 2 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

org-locationiq

Unofficial Locationiq.org API client
, (*1)

Documentation available here.
Able to serialize responses to custom models via JSON mapper.
, (*2)

Requirements

  • "guzzlehttp/guzzle": "^6.2"
  • "netresearch/jsonmapper": "~1.1.1"

Install

Via Composer, (*3)

bash $ composer require linuskohl/org-locationiq dev-master, (*4)

License

The MIT License (MIT). Please see License File for more information., (*5)

Documentation

Class: \linuskohl\orgLocationIQ\Client

Visibility Function
public __construct(mixed $api_key=null) : void
Constructor
public geocode(string $query, bool/boolean $cached=false) : \linuskohl\orgLocationIQ\models\Entry[]/null
Geocode
public geocodeRaw(string $query, bool $cached=false) : mixed/null
Geocode raw
public getBalance() : integer
Get balance
public getBalanceRaw() : mixed/null
Get balance
public setAPIKey(string $api_key) : void
Set API key
public setCache(mixed $cache) : void
Set cache
public setLanguage(string $language) : void
Set language
public setShowDetails(boolean $details) : void
Show address details
protected static generateCacheKey(string $url, mixed $parameters) : string
Generate a key to cache the query
protected get(string $url, array/mixed[] $parameters=array(), bool/boolean $cached=true) : string
Get data from API or cache
protected sendRequest(string $url, mixed[] $parameters) : string
Send request to API

The Versions

14/05 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

api geocoding geo client openstreetmap