ASI/people/:user_id/@location

GET ^top

Returns this person's location.

Returns

  • 200

Response example


{
  "entry": {
    "label": "Otaniemen Alepa",
    "latitude": 60.163389841749,
    "updated_at": null,
    "accuracy": "58.0",
    "longitude": 24.857125767506
  }
}
            

POST ^top

Sets the location of the user. If only some of the fields are updated, rest will be set to null.

Parameters

location
label

Text label given to current location

latitude

Latitude coordinates in Decimal Degree format

accuracy

Accuracy of the location

longitude

Longitude coordinate sin Decimal Degree format

location_security_token

(optional) The current user's security token, obtained via @location_security_token If this parameter is submited, the location can be updated without being logged in as this user.

PUT ^top

Sets the location of the user. If only some of the fields are updated, rest will be set to null.

Parameters

location
label

Text label given to current location

latitude

Latitude coordinates in Decimal Degree format

accuracy

Accuracy of the location

longitude

Longitude coordinate sin Decimal Degree format

location_security_token

(optional) The current user's security token, obtained via @location_security_token If this parameter is submited, the location can be updated without being logged in as this user.

DELETE ^top

Clears the location of a user.

SUBRESOURCES ^top