Message-ID: <CA+vqiLGpqVrjfBOoYO781SgZiqP6SCi28ejfBftk-4QAkL8HEg@mail.gmail.com>
Date: 2016-05-18T01:56:23Z
From: Ista Zahn
Subject: Address from Wikimapia
In-Reply-To: <CA+vqiLFRvs4=Xx10zu=M707T3TL9Zm3hPGj3xnc3SKfwtVbrhA@mail.gmail.com>
Maybe. The API is documented at http://wikimapia.org/api. You can interact
with the API using (e.g.) the httr or curl packages in R.
Best,
Ista
On May 17, 2016 6:27 PM, "Miluji Sb" <milujisb at gmail.com> wrote:
Is it possible to convert latitude and longitude into addresses in R using
Wikimapia mapping instead of Google? The reason being that Wikimapia
addresses have more details.
This is the code I have been using but this obtains the information from
Google.
library(data.table)
library(ggmap)
coords<- structure(list(Lattitude = c(23.8642394, 23.8643628, 23.8645843,
23.8632958, 23.8632859), Longitude = c(90.3981852, 90.3981042,
90.3954784, 90.3940043, 90.3940025)), .Names = c("Lattitude",
"Longitude"), row.names = c(NA, 5L), class = "data.frame")
coords$textAddress <- mapply(FUN = function(lon, lat) revgeocode(c(lon,
lat)), coords$Longitude, coords$Lattitude)
Thank you!
Sincerely,
Milu
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[[alternative HTML version deleted]]