Learn R Programming

rgugik (version 0.3.2)

geocodePL_get: Convert addresses and objects to geographic coordinates

Description

Convert addresses and objects to geographic coordinates

Usage

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

Value

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

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

Examples

Run this code
if (FALSE) {
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
}

Run the code above in your browser using DataLab