2017 © Pedro PelĂĄez
 

library askgeo-api

A class to consume askgeo's API.

image

pel/askgeo-api

A class to consume askgeo's API.

  • Thursday, September 17, 2015
  • by pelevesque
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

askgeo-api

About

A PSR-4 PHP class to consume askgeo's API.. (https://askgeo.com), (*2)

Initialize

include('AskGeoAPI.php');

// ! Use your own account id and api key. !
$account_id = '1165';
$api_key = 'g1d11a5117a4143be0f5fge5a9e33df4e9103deb5a12658d22512f2a04ba3nk6';
$format = 'obj';
$secure = true;
$curl_options = array();

$api = new Pel\Helper\AskGeoAPI($account_id, $api_key, $format, $secure, $curl_options);

Calls

General Call

$databases = 'TimeZone';
$points = array(45.485169, -73.699036);

$api->get($databases, $points);

// Optional callback and datetime.
$api->get($databases, $points, $callback, $datetime);

TimeZone Call

$points = array([45.485169, -73.699036], [10.5435, -99.32]);

$api->getTimeZone($points);

// Optional callback and datetime.
$api->getTimeZone($points, $callback, $datetime);

Other Specialized Calls

Like the TimeZone call, askgeo-api can also call all the available databases directly. For more information, take a look at the source code., (*3)

The Versions

17/09 2015

dev-master

9999999-dev

A class to consume askgeo's API.

  Sources   Download

MIT

The Development Requires

by Pierre-Emmanuel Lévesque

askgeo