Skip to contents

Convert addresses and objects to geographic coordinates

Usage

geocodePL_get(
  address = NULL,
  road = NULL,
  rail_crossing = NULL,
  geoname = NULL
)

Arguments

address

place with or without street and house number

road

road number with or without mileage

rail_crossing

rail crossing identifier (11 characters including 2 spaces, format: "XXX XXX XXX")

geoname

name of the geographical object from State Register of Geographical Names (function geonames_download())

Value

a sf data.frame (EPSG: 2180) with metadata

Examples

if (FALSE) { # \dontrun{
geocodePL_get(address = "Marki") # place
geocodePL_get(address = "Marki, Andersa") # place and street
geocodePL_get(address = "Marki, Andersa 1") # place, street and house number
geocodePL_get(address = "Królewskie Brzeziny 13") # place and house number

geocodePL_get(road = "632") # road number
geocodePL_get(road = "632 55") # road number and mileage

geocodePL_get(rail_crossing = "001 018 478")

geocodePL_get(geoname = "Las Mierzei") # physiographic object
} # }