MetaLocator offers a PaaS API that allows the development of custom applications using MetaLocator as the underlying location-services platform. This service returns JSON formatted results based on user-supplied query parameters. All query features of MetaLocator's customer-facing Interfaces are also available through this method.
PaaS API Introduction
All communication with MetaLocator's PaaS API requires the use of an API Key. Only MetaLocator account holders with the Enterprise or API Addons can create API Users.
Create a MetaLocator PaaS API Key
To create an API Key, a special user account must be created. Only MetaLocator account Owners can create a PaaS API Key.
Navigate to the User Manager as shown below:
Click New, and complete the form as shown below:
For users with Teams Access, a list of available User Groups will be displayed. This will limit the data returned by the API for the user to those records accessible by the selected User Groups.
Click Save, and the alphanumeric API Key will be displayed on the User Profile in red as shown above.
Calling the PaaS API
A basic call to the MetaLocator PaaS API looks like this:
https://code.metalocator.com/webapi/api/<method>?Itemid=X&apikey=Y
Where X is the Interface ID number and Y is your API Key.
Troubleshooting
The API calls must include a value for the User Agent header or they will likely be blocked by the firewall.