Module google_maps::places::place_autocomplete::response

source ·
Expand description

Resources (enums, structs) for processing the Places API Place Autocomplete response from the Google Maps Platform. Look in here for more information about the data returned from Google’s server and how to parse it with your program.

Modules§

  • The "matched_subtrings" field contains a list of substrings that describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired.
  • The "predictions" are the results from a search.
  • The "status" field within the Places API Place Autocomplete response object contains the status of the request, and may contain debugging information to help your request is not working.
  • The "structured_formatting" field provides pre-formatted text that can be shown in your autocomplete results. This content is meant to be read as-is. Do not programmatically parse the formatted address.
  • The "terms" field contains an array of terms identifying each section of the returned description (a section of the description is generally terminated with a comma). Each entry in the array has a value field, containing the text of the term, and an offset field, defining the start position of this term in the description, measured in Unicode characters.

Structs§

  • The response from the Google Maps Places API Place Autocomplete request will be stored in this structure.