View source: R/google_place_autocomplete.R
google_place_autocomplete | R Documentation |
The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches, by returning places such as businesses, addresses and points of interest as a user types.
google_place_autocomplete(
place_input,
location = NULL,
radius = NULL,
language = NULL,
place_type = NULL,
components = NULL,
simplify = TRUE,
curl_proxy = NULL,
key = get_api_key("place_autocomplete")
)
place_input |
|
location |
|
radius |
|
language |
|
place_type |
|
components |
|
simplify |
|
curl_proxy |
a curl proxy object |
key |
|
## Not run:
## search for 'Maha' Restaurant, Melbourne
google_place_autocomplete("Maha Restaurant", key = key)
## search for 'Maha' Restaurant, exclusively in Australia
google_place_autocomplete("maha Restaurant", component = "au", key = key)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.