Add a location.

Parameters

name

Name of the location.

lat

Latitude of the location.

lng

Longitude of the location.

customer_id

Customer ID of the customer set to that location.

address

Locaction address.

Example

FM_api('Location_edit', ['name' => 'New Location', 'lat' => '54.1819', 'lng' => '-6.3283', 'customer_id' => '7', 'address' => '10 test town'])

Result

On Success

{'ok':1,'id':9}