Learn R Programming

hereR (version 0.2.1)

autocomplete: HERE Geocoder API: Autocomplete

Description

Completes addresses using the 'Geocoder Autocomplete' API.

Usage

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

Run this code
# NOT RUN {
# Authentication
set_auth(
  app_id = "<YOUR APP ID>",
  app_code = "<YOUR APP CODE>"
)

suggestions <- autocomplete(addresses = poi$city, url_only = TRUE)
# }

Run the code above in your browser using DataLab