osm.getRoads: osm.getRoads

View source: R/osm.r

osm.getRoadsR Documentation

osm.getRoads

Description

Get the roads of an area. Either by name of area (inPerioxi) or by bounding box (incoordinates).

Usage

osm.getRoads(
  incoordinates = c(26.545029, 39.088569, 26.570177, 39.11681),
  inPerioxi = "Mytilene Municipal Unit",
  withBB = FALSE,
  outcrs = 2100
)

Arguments

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

Value

An sfnetwork

Author(s)

Dimitris Kavroudakis dimitris123@gmail.com

See Also

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()

Examples

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


dimitrisk/goal documentation built on April 30, 2024, 7:21 p.m.