$request_params
$request_params : array
Parameters to use with http requests.
HTTP geocoder using the geonames web services.
Includes an additional method for looking up administrative area names.
reverse_geocode( $lat, $lng) : array|\WP_Error
Look up additional location information from coordinates.
Resulting locations have as much address information as possible filled in. Most services return the nearest match first, and some return only one.
$lat | ||
$lng |
Array of search result locations.
get_administrative_name(string $country_code, string $admin_code) : string|\WP_Error
Use the Geonames web service to look up an administrative name.
string | $country_code | |
string | $admin_code | Admin area name to look up. If empty, look up the country name. |
The administrative name.