powered by
Retrieve stations with the corresponding line information around given locations using the HERE 'Public Transit' API.
station(poi, radius = 500, results = 5, url_only = FALSE)
sf object, Points of Interest (POIs) of geometry type POINT.
sf
POINT
numeric, the search radius in meters (default = 500).
default = 500
numeric, maximum number of suggested public transport stations (Valid range: 1 and 50, default = 5).
default = 5
boolean, only return the generated URLs (default = FALSE)?
default = FALSE
An sf object containing the requested stations with the corresponding line information.
HERE Public Transit API: Find Stations Nearby
# NOT RUN { # Provide an API Key for a HERE project set_key("<YOUR API KEY>") # Stations stations <- station(poi = poi, url_only = TRUE) # }
Run the code above in your browser using DataLab