Update Current Location
update_current_locationUpdate a user's current location by passing city, country, or a venue with coordinates; optionally set home and record a check-in so location context returns is_current.
Instructions
MUTATES where the user is now: profiles.location + polaris current_city/country (same as in-app Dayze chat). Pass location ("The Madeira, Singapore") and/or city+country; optional place/venue + lat/lon records a fresh location_visits check-in so get_location_context returns is_current. set_home defaults true; check_in defaults true when place or coordinates are set. Does not invent GPS when omitted. ($0.10; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| place | No | Venue / residence name (e.g. The Madeira) | |
| venue | No | Alias for place | |
| address | No | ||
| country | No | ||
| check_in | No | Write a location_visits row when place or coordinates are set (default true in that case) | |
| latitude | No | ||
| location | No | Freeform “City, Country” or “Venue, City, Country” | |
| set_home | No | Also write profiles.location / home_location (default true) | |
| longitude | No | ||
| request_id | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | No | ||
| context | No | Fresh get_location_context after write. | |
| message | No | ||
| updated | No | ||
| check_in | No | ||
| location | No | ||
| set_home | No | ||
| visit_id | No | ||
| current_city | No | ||
| current_country | No |