POInear: Nearest POI of Given Types

Description Usage Arguments Value Examples

View source: R/apicalls.R

Description

Returns the POI for each requested type that has the shortes route to the outset point.

Usage

1
2
POInear(fromaddress = NULL, fromcoord = NULL, poitypes = NULL,
  mot = NULL, routepolyline = NULL)

Arguments

fromaddress

is an adress type: roadname+housenumber+postalcode

fromcoord

is a coordinate type: latitude, longtitude

poitypes

is a vector poi types to search for

mot

is a mode of transport designator

  • car (default)

  • bicycle

  • foot

  • public

  • auto

routepolyline

append a route in the form of a list of coordinates.

  • 0 (default): without route description

  • 1: with route description as a an encoded polyline string

  • 2: with route description as a list of latitude,longtitude pairs.

Value

Returns a list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Request with address as origintype:
POInear(fromaddress = "elmegade 5 2200",
        poitypes = c("daycare", "school", "supermarket", "hospital", "doctor", "train", "stop", "junction", "metro", "strain")
)

# Request with coordinate as origintype:
POInear(fromcoord = "56.16390607394954,10.16510009765625",
        poitypes = c("daycare", "school", "supermarket", "hospital", "doctor", "train", "stop", "junction", "metro", "strain")
)

# Set mode of transport to bicycle:
POInear(fromcoord = "56.16390607394954,10.16510009765625",
        poitypes = c("daycare", "school", "supermarket", "hospital", "doctor", "train", "stop", "junction", "metro", "strain"),
        mot = "bicycle"
)

# Request compressed polylines for each of the nearest POIs:
POInear(fromcoord = "56.16390607394954,10.16510009765625",
        poitypes = c("daycare", "school", "supermarket", "hospital", "doctor", "train", "stop", "junction", "metro", "strain"),
        routepolyline = 1
)

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