GeoCode {bfsMaps} | R Documentation |
Get the Coordinates For a Given Address
Description
Get the coordinates for a given address in Switzerland. The function just prepares the url needed to feed the GeoAdmin API.
Usage
GeoCode(x)
Arguments
x |
a character vector containing addresses in the form of "street number place" |
Details
See further details in https://api3.geo.admin.ch/services/sdiservices.html#find.
Value
a data.frame with 5 columns
detail
, lat
,
lon
, x
, y
Author(s)
Andri Signorell <andri@signorell.net>
Examples
## Not run:
adr <- c("Quaderaweg 3 Trimmis","chemin des Fraisiers 19 Grand-Lancy",
"Im Spitzacker 21 Basel","Rue du Moleson 8 Broc")
GeoCode(adr)
## End(Not run)
[Package bfsMaps version 1.99.4 Index]