PHPackages                             pel/askgeo-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pel/askgeo-api

ActiveLibrary[API Development](/categories/api)

pel/askgeo-api
==============

A class to consume askgeo's API.

15PHP

Since May 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pelevesque/askgeo-api)[ Packagist](https://packagist.org/packages/pel/askgeo-api)[ RSS](/packages/pel-askgeo-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/2074960f2435b794b3d370b39dcf90c42b5597817825c04f4cab79eb57398fc2/68747470733a2f2f7472617669732d63692e6f72672f70656c657665737175652f61736b67656f2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pelevesque/askgeo-api)

askgeo-api
==========

[](#askgeo-api)

About
-----

[](#about)

A PSR-4 PHP class to consume askgeo's API.. ()

Initialize
----------

[](#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
-----

[](#calls)

### General Call

[](#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

[](#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

[](#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.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b9e172fd0a1a1ac2d6afeca238d54424ee66f0076f857450d10ca7424a7a907?d=identicon)[pelevesque](/maintainers/pelevesque)

---

Top Contributors

[![pelevesque](https://avatars.githubusercontent.com/u/4752429?v=4)](https://github.com/pelevesque "pelevesque (13 commits)")

### Embed Badge

![Health badge](/badges/pel-askgeo-api/health.svg)

```
[![Health](https://phpackages.com/badges/pel-askgeo-api/health.svg)](https://phpackages.com/packages/pel-askgeo-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
