uses sf

bd_search(searchFor, level = "division", as.is = FALSE, coordinates = FALSE)

Arguments

searchFor

search keyword

level

administrative level of bangladesh. Should be one of: "country", "division", "district", "upazila","union'

as.is

boolean, if TRUE, matches exact keyword as given

coordinates

boolean, if TRUE, returns centroids of searched areas (latitudes and longitudes)

Value

A data frame

Examples

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