Location

Update GPS location and detect travel status

post/api/location/update

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/location/update
  • Auth
    HTTP bearer

Request body

latitudenumber required
longitudenumber required
accuracynumber
locationNamestring

Example request

{
  "latitude": 37.7749,
  "longitude": -122.4194,
  "accuracy": 10.5,
  "locationName": "San Francisco, CA"
}

Response

unknown required

Example response

{
  "success": true,
  "location": {
    "lat": 40.7128,
    "lng": -74.006,
    "name": "New York, NY"
  },
  "isTraveling": false,
  "travelContext": null
}

Changes

No recorded changes to this operation across all 34 revisions of this API.