AddressPrediction
ObjectA single address autocomplete suggestion.
Fields
- String!
addressId Opaque identifier for the predicted address. Pass this back to addressDetails to resolve a structured address.
- String!
completionService Name of the provider that produced this completion (e.g. “google”).
- String!
description Human-readable description of the predicted address (e.g. “Gardes Allé, Hellerup, Denmark”).
- [AddressPredictionMatchedSubstring!]!
matchedSubstrings Offsets within Description that matched the user query — used to bold the matched portion in the UI.
Queries
Returns address autocomplete suggestions matching query. sessionToken is the composite token {checkoutToken}-{googleSessionToken}: the checkout-token half is validated against an active hosted checkout session; the Google-session half is forwarded verbatim to Google so the client controls billing- session lifetime (a new one per place-details resolution).