_geocode

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

Parameters

address

The address of the location.

postcode

The postcode of the location

Example

FM_api('Util_geocode', ['address' => 'Belfast Road, Newry, Newry & Mourne, United Kingdom', 'postcode' => 'BT34 1QH']);

Result

On Success

An array of latitude and longitude coordinates.

{['lat':'54.2026','lon':'-6.32947']}

On Failure

If the user is not logged in:

{'error':'not logged in'}

Last updated