Learn R Programming

hereR (version 0.2.1)

geocode: HERE Geocoder API: Geocode

Description

Geocodes addresses using the 'Geocoder' API.

Usage

geocode(addresses, autocomplete = FALSE, url_only = FALSE)

Arguments

addresses

character, addresses to geocode.

autocomplete

boolean, use the 'Geocoder Autocomplete' API to autocomplete addresses? Note: This options doubles the amount of requests (default = FALSE).

url_only

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

Value

An sf object, containing the coordinates of the geocoded addresses.

References

HERE Geocoder API: Geocode

Examples

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

locs <- geocode(addresses = poi$city, url_only = TRUE)
# }

Run the code above in your browser using DataLab