osm.getRoads | R Documentation |
Get the roads of an area. Either by name of area (inPerioxi) or by bounding box (incoordinates).
osm.getRoads(
incoordinates = c(26.545029, 39.088569, 26.570177, 39.11681),
inPerioxi = "Mytilene Municipal Unit",
withBB = FALSE,
outcrs = 2100
)
incoordinates |
Four coordinates of the bounding box. |
inPerioxi |
Name of an area |
withBB |
Boolean indicating if we shall use a bounding box (incoordinates) or the name of an area (inPerioxi). |
outcrs |
CRS of the the output |
An sfnetwork
Dimitris Kavroudakis dimitris123@gmail.com
Other osm:
osm.ClipSFnetwork_with_poly()
,
osm.CreateEmptyRaster()
,
osm.bb_2_pol()
,
osm.combineAmenities()
,
osm.combineShops()
,
osm.getFrequency()
,
osm.getLength_footway()
,
osm.getPOI_usingbb()
,
osm.getPOI()
,
osm.osmdata_result_2_bbox_pol()
library(goal)
library(sf)
library(sfnetworks)
library(osmdata)
mynetwork = osm.getRoads(incoordinates= c(26.545029,39.088569,26.570177,39.116810),
withBB=TRUE, outcrs=2100
)
mynetwork
mynetwork2 = osm.getRoads(inPerioxi="Mytilene Municipal Unit",
withBB=FALSE, outcrs=2100
)
mynetwork2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.