alexs / google-geocoder
Google Geocoder
1.0.6-stable
2017-09-21 12:12 UTC
Requires
- php: >=5.4.0
- ext-curl: *
Requires (Dev)
- php: >=7.0.0
- phpunit/phpunit: ^6.2
This package is auto-updated.
Last update: 2024-10-27 17:13:24 UTC
README
Google geocoder
Example
<?php
$api_key = 'YOUR_API_KEY';
$latitude = 51.509865;
$longitude = -0.118092;
$Geocoder = new Geocoder($api_key);
/*
array (size=3)
0 => string 'London' (length=6)
1 => string 'United Kingdom' (length=14)
2 => string 'GB' (length=2)
*/
var_dump($Geocoder->reverse($latitude, $longitude));