autosuggest {hereR}R Documentation

HERE Geocoding & Search API: Autosuggest

Description

Completes addresses using the HERE 'Geocoder Autosuggest' API.

Usage

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.

References

HERE Geocoder API: Autosuggest

Examples

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

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

[Package hereR version 1.0.0 Index]