Dataset: Location Data

Dataset name: ds_location_data

Description

Location data from devices.

Fields in this dataset

Name Field Name Description Field Type Field Example
Location Data ID id The primary identifier for a location data record. serial
Location Data Instance instance The instance this location data record relates to. int
Address Line 1 location_data_address1 The address line 1. varchar
Address Line 2 location_data_address2 The address line 2. varchar
App Name location_data_app_name The app name creating the location data record. varchar
Country location_data_country The address country. varchar
County location_data_county The address county. varchar
Device Name location_data_device_name The device name creating the location data record. varchar
Latitude location_data_latitude The latitude of the location. numeric
Longitude location_data_longitude The longitude of the location. numeric
Postcode location_data_postcode The address postcode. varchar
Timestamp location_data_timestamp The timestamp the location data was created. int
Timezone location_data_timezone The timezone the location data was created. varchar
Town/City location_data_towncity The address town/city. varchar
Location Data Source source The source of the data - user or connection (uid or con_id). varchar

Making an API request for this Dataset

Example Request to the Sandbox Server

http://sbx-api.mydex.org/api/pds/transaction/UID.json
  ?key=KEY
  &api_key=API_KEY
  &con_id=CON_ID
  &source_type=connection
  &dataset=ds_location_data
  &instance=N

Replace the following with your own details: UID KEY, API_KEY, CON_ID and instance N.

Replace sbx-api with api when making a connection to a real member on the production server (must be authenticated).

To return the data in XML, change UID.json to UID.xml.

Example Response

A response to this API request will be structured as follows.

{
  "": {
    "id": null,
    "ds_id": null,
    "location_data_address1": null,
    "location_data_address2": null,
    "location_data_app_name": null,
    "location_data_country": null,
    "location_data_county": null,
    "location_data_device_name": null,
    "location_data_latitude": null,
    "location_data_longitude": null,
    "location_data_postcode": null,
    "location_data_timestamp": null,
    "location_data_timezone": null,
    "location_data_towncity": null
  }
}