Get the user’s location at a specific point in time.

Returns a locations readings
GET https://api.humanapi.co/v1/human/locations

# Returns a json array of locations:
[{
  "id": "54aa4c5623e093b72ba122ec",
  "userId": "52e20cb2fff56aac62020001",
  "startTime": "2015-03-23T16:48:37.000Z",
  "endTime": "2015-03-23T17:15:40.000Z",
  "tzOffset": "-07:00",
  "name": "",
  "source": "moves",
  "location": {
    "lon": 77.3092283085,
    "lat": 28.5941775291
  },
  "createdAt": "2015-02-06T21:21:13.679Z",
  "updatedAt": "2015-02-06T21:21:13.679Z",
  "humanId": "5dc2527186aaf9de560e5841f1a44bd6"
}, {
  "id": "54c8681d94ae47d0702e8624",
  "userId": "52e20cb2aaf56aac62000001",
  "startTime": "2015-03-23T02:04:02.000Z",
  "endTime": "2015-03-23T03:38:26.000Z",
  "tzOffset": "-07:00",
  "name": "Walmart",
  "source": "moves",
  "location": {
    "lon": -87.06979948824468,
    "lat": 20.63034803007769
  },
  "createdAt": "2015-01-31T22:32:58.332Z",
  "updatedAt": "2015-01-31T22:32:58.332Z",
  "humanId": "5dc2527186aaf9de560e5841f1a44bd6"
}]
# Get locations measurement associated with the user
curl -H "Authorization: Bearer demo" "https://api.humanapi.co/v1/human/locations"
PropertyTypeDescription
idStringThe id of the resource.
userIdString[deprecated - use humanId]
humanIdStringUnique user identifier
startTimeDateThe start time of the activity in UTC time
endTimeDateThe end time of the activity in UTC time
tzOffsetStringThe offset from UTC time in +/-hh:mm (e.g. -04:00)
nameStringThe name of the place
sourceStringThe source service for the measurement, where it was created
createdAtDateThe time the measurement was created on the Human API server
locationObjectThe coordinate point with a lat/lon value
updatedAtDateThe time the measurement was updated on the Human API server

Location Object

PropertyTypeDescription
lonNumberLongitude
latNumberLatitude