Gets the address of a location specified by latitude and longitude coordinates.

Parameters

lat

The latitude coordinate of the location.

lon

The longitude coordinate of the location.

Example

FM_api('Util_geocodeReverse', ['lat' => '54.2026', 'lon' => '-6.32947']);

Result

On Success

The address of the location, plus additional information.

{'place_id':'160699154','licence':'Data \u00a9 OpenStreetMap contributors, ODbL 1.0. https:\/\/osm.org\/copyright','osm_type':'way','osm_id':'377365170','lat':'54.2026782558971','lon':'-6.3297375662014','display_name':'A28, Cloghanramer, Newry, County Down, Northern Ireland, BT35 6QJ, UK','boundingbox':['54.2022322','54.2063695','-6.3298845','-6.3275537']}

On Failure

If the user is not logged in:

{'error':'not logged in'}

If the location is unable to be determined:

{'error':'Unable to geocode'}