check_coverage: Checks if one or multiple points are in covered area

Description Usage Arguments Value Examples

View source: R/check_coverage.R

Description

Checks if multiple points fall within Citymapper's covered areas. Multiple inputs can be passed in a vector or list format. It is good practice to refresh this values regularly as covered areas might change over time.

Usage

1
check_coverage(points, api_token = Sys.getenv("CITYMAPPER_API_TOKEN"))

Arguments

points

List or vector containing geographical coordinates of the start point in WGS84 '<latitude>,<longitude>' format.

api_token

Citymapper's api key (chr).

Value

A vector containing boolean responses for each point in points

Examples

1
2
3
4
5
6
## Not run: 
point <- "41.889083,12.470514"

check_coverage(point)

## End(Not run)

andodet/citymappR documentation built on Oct. 18, 2021, 6:11 p.m.