Description Usage Arguments Value Examples
Returns the POI for each requested type that has the shortes route to the outset point.
1 2 |
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
|
routepolyline |
append a route in the form of a list of coordinates.
|
Returns a list
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.