1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
//! The **Query Autocomplete** service is used to provide a query prediction for
//! text-based geographic searches, by returning suggested queries as you type.
//!
//! # [Query Autocomplete requests](https://developers.google.com/maps/documentation/places/web-service/query#query_autocomplete_requests)
//!
//! * The Query Autocomplete service is part of the Places API and shares an
//! [API key](https://developers.google.com/maps/documentation/places/web-service/get-api-key)
//! and quotas with the [Places API](https://developers.google.com/maps/documentation/places/web-service/overview).
//!
//! The Query Autocomplete service allows you to add on-the-fly geographic
//! query predictions to your application. Instead of searching for a specific
//! location, a user can type in a categorical search, such as "pizza near New
//! York" and the service responds with a list of suggested queries matching the
//! string. As the Query Autocomplete service can match on both full words and
//! substrings, applications can send queries as the user types to provide
//! on-the-fly predictions.
pub mod request;
// -----------------------------------------------------------------------------
const SERVICE_URL: &str = "https://maps.googleapis.com/maps/api/place/autocomplete";
const OUTPUT_FORMAT: &str = "json"; // json or xml
// -----------------------------------------------------------------------------
pub use crate::places::place_autocomplete::{
error::Error as Error,
response::{
matched_substring::MatchedSubstring,
prediction::Prediction,
Response,
status::Status,
structured_format::StructuredFormat,
term::Term,
}, // response
}; // place_autocomplete
pub use crate::places::query_autocomplete::{
request::{
Request,
}, // request
}; // place_autocomplete