Completes addresses using the HERE 'Geocoder Autocomplete' API.

autocomplete(addresses, results = 5, url_only = FALSE)

Arguments

addresses

character, addresses to autocomplete.

results

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

url_only

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

Value

A data.table object, containing the autocomplete suggestions for the addresses.

References

HERE Geocoder API: Autocomplete

Examples

# Provide an API Key for a HERE project set_key("<YOUR API KEY>") suggestions <- autocomplete(addresses = poi$city, url_only = TRUE)