evilgenius / google-maps
To Work with google maps api
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/evilgenius/google-maps
This package is auto-updated.
Last update: 2025-09-22 06:35:35 UTC
README
#Get Time Travel Data From Google Maps API
- Namespaced under EvenGenius
- API throws exceptions instead of returning errors
- All requests and responses are communicated over JSON
- A minimum of PHP 5.3 is required
Installation
composer require evilgenius/google-maps
- If you are not using composer, download the latest release from the releases section. You should download the evilgenius-maps.zip file. After that, include map.php in your application and you can use the API as usual.
Usage
use EvilGenius\Map;
$map = new Map('your-google-maps-key');
$map->getTwoPointDistance($firstLat, $firstLong, $secLat, $secLong); // returns distance in km
$map->getTwoPointTimeInSeconds($firstLat, $firstLong, $secLat, $secLong); // returns time travel in seconds
License
You are Free to use any way you like
Release
- v1.0.1 Contains two methods