#df_elements<-minerals_ima_list_ima(1)$type_localities
#df_out <- data.frame()
#for (elements in df_elements) {
# elm_id_list <- as.list(elements)
# for (elm in elm_id_list){
# df_cur_locality <- localities_retrieve_id(elm)
# df_out <- rbind(df_out,df_cur_locality)
# }
#}
#df_out$longitude <- as.numeric(df_out$longitude)
#df_out$latitude <- as.numeric(df_out$latitude)
#mapview(df_out2, xcol = "longitude", ycol = "latitude", crs = 4269, grid = FALSE)
Please refer to: https://github.com/quexiang/OpenMindat