POIwithin: Points of Interest Within A Geometry

Description Usage Arguments Value Examples

View source: R/apicalls.R

Description

Returns a list of name and coordinates of POI's based on the search parameters.

Usage

1
POIwithin(poitypes = NULL, bbox = NULL, municipalcode = NULL)

Arguments

poitypes

is a vector poi types to search for.

bbox

is a boundingbox: lower_lat, lower_lng, upper_lat, upper_lng. Must be a data frame with a lat and lng column.

municipalcode

municipalcode: one of 98 danish municipality codes

Value

Returns a list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Make bounding box coordinates
coords <- dplyr::data_frame(
  lat = c(54.842508, 56.131587),
  lng = c(9.633364, 12.574262))

# POIs of type airport within a large bounding box:
POIwithin(poitypes = "airport", bbox = coords)

# Libraries within municiaplity of Copenhagen:
POIwithin(poitypes = "library", municipalcode = 101)

56north/hvorlangterder documentation built on May 5, 2019, 11:27 a.m.