powered by
Get the coordinates for a given address in Switzerland. The function just prepares the url needed to feed the GeoAdmin API.
GeoCode(x)
a data.frame with 5 columns
detail, lat, lon, x, y
detail
lat
lon
x
y
a character vector containing addresses in the form of "street number place"
Andri Signorell <andri@signorell.net>
See further details in https://api3.geo.admin.ch/services/sdiservices.html#find.
if (FALSE) { adr <- c("Quaderaweg 3 Trimmis","chemin des Fraisiers 19 Grand-Lancy", "Im Spitzacker 21 Basel","Rue du Moleson 8 Broc") GeoCode(adr) }
Run the code above in your browser using DataLab