Expand description
Saved places (Home, Work and other saved addresses) from the account’s address book, as food.grab.com’s address picker loads them. See docs/places.md.
Listing is a read-only GET. SavedPlace::to_location builds the
location cookie value the web app writes when a saved place is picked;
storing it only changes grabcli’s local session, nothing on Grab’s side.
Structs§
- LatLng
- Saved
Place - One saved place, as returned by the favorites endpoint.
Enums§
- Match
- How a saved place relates to the saved delivery address.
Constants§
- FAVORITES_
URL GETthe saved places (web app:getGetFavoriteAddresses).- NEAR_
PLACE_ M - The closest place within this distance is reported as “near” the saved delivery address (e.g. the same building picked as a different POI).
Functions§
- allowlist
- The allowlist for saved-place commands: the one read-only GET.
- current_
place - Which place (index into
places) is the saved delivery address: an exact match if any, else the closest one withinNEAR_PLACE_M. - find
- Find a place by 1-based list index, poiID, label (
home,work, a custom label; case-insensitive) or name. Errors if nothing or several match. - parse_
places - Parse the favorites response (
{"places":[...]}).