bd_search.Rd
uses sf
bd_search(searchFor, level = "division", as.is = FALSE, coordinates = FALSE)
search keyword
administrative level of bangladesh. Should be one of: "country", "division", "district", "upazila","union'
boolean, if TRUE, matches exact keyword as given
boolean, if TRUE, returns centroids of searched areas (latitudes and longitudes)
A data frame
bd_search("amtali", level = "union", as.is = TRUE, coordinates = TRUE)
#> Division District Upazila Union lat lon
#> 1 Barisal Barguna Amtali Amtali 22.07556 90.24699
#> 2 Chittagong Rangamati Baghai Chhari Amtali 23.10559 92.18832
#> 3 Dhaka Gopalganj Kotali Para Amtali 22.98264 90.03070
#> 4 Chittagong Khagrachhari Matiranga Amtali 23.11701 91.88545