Skip to main content

Module places

Module places 

Source
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
SavedPlace
One saved place, as returned by the favorites endpoint.

Enums§

Match
How a saved place relates to the saved delivery address.

Constants§

FAVORITES_URL
GET the 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 within NEAR_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":[...]}).