Completes addresses using the HERE 'Geocoder Autosuggest' API.

autosuggest(address, results = 5, url_only = FALSE)

Arguments

address

character, address text to propose suggestions.

results

numeric, maximum number of suggestions (Valid range: 1 and 100).

url_only

boolean, only return the generated URLs (default = FALSE)?

Value

A data.frame object, containing the suggestions for the input addresses.

Examples

# Provide an API Key for a HERE project
set_key("<YOUR API KEY>")

suggestions <- autosuggest(address = poi$city, url_only = TRUE)