Method | Description | |
---|---|---|
__construct ( ) : WPDKGeo | Create an instance of WPDKGeo class | |
geoIP ( string $ip = '' ) : array | boolean | Return the geo IP information by ip address. | |
init ( ) : WPDKGeo | Return a singleton instance of WPDKGeo class | |
reverseGeocoding ( array $geo = false ) : array | Return an array with reverse geocoding information. | |
reverseGeocodingWithLatLng ( float $lat, float $lng ) : array | Return an array with reverse geocoding information. | |
route ( array $reverse_geocoding ) : string | Return the route. | |
street_number ( array $reverse_geocoding ) : string | Return the street number. |
Method | Description | |
---|---|---|
getWithType ( array $reverse_geocoding, string $type, string $property = 'long_name' ) : mixed | Return a single property/type. |
public __construct ( ) : WPDKGeo | ||
return | WPDKGeo |
public static init ( ) : WPDKGeo | ||
return | WPDKGeo |
public reverseGeocoding ( array $geo = false ) : array | ||
$geo | array | Optional. Array retuned by `self::geoIP()` method. If empty `self::geoIP()` without ip is called. |
return | array |
public street_number ( array $reverse_geocoding ) : string | ||
$reverse_geocoding | array | The array with reverse geocoding information retuned by `reverseGeocodingWithLatLng()` |
return | string |