# π§πΌ Botswana Locations
**A lightweight NPM package for finding Botswana locations and their districts.**
`botswana-locations` provides a simple, fast, and developer-friendly way to look up Botswana locations and determine the district associated with each location.
It is designed for developers building web applications, mobile applications, APIs, dashboards, delivery platforms, e-commerce systems, registration forms, and other software that needs Botswana location data.
The package works locally and does not require an external API, database, API key, or internet connection for location lookups.
---
## π¦ Installation
Install with NPM:
```bash
npm install botswana-locations
```
Using Yarn:
```bash
yarn add botswana-locations
```
Using pnpm:
```bash
pnpm add botswana-locations
```
---
# π Quick Start
Import the functions you need:
```js
const {
getDistrict,
findLocation,
searchLocations,
getLocations,
} = require("botswana-locations");
```
Find the district of a location:
```js
const district = getDistrict("Gaborone");
console.log(district);
```
Output:
```text
Gaborone
```
That's all that is required to perform a location-to-district lookup.
---
# β¨ Features
- π§πΌ Botswana-focused location dataset
- π Location-to-district lookup
- π Location searching
- π€ Case-insensitive lookups
- π Partial text searching
- β‘ Fast local lookups
- π΄ Offline-friendly
- π No external API required
- π No API key required
- πΎ No database required
- π¦ Lightweight
- π§© Simple JavaScript API
- βοΈ React compatible
- π± React Native compatible
- π Expo compatible
- π₯οΈ Node.js compatible
- π Express.js compatible
- β‘ Next.js compatible
- π οΈ Vite compatible
---
# π― What Does This Package Do?
The main purpose of the package is simple:
```text
Location β District
```
For example:
```js
getDistrict("Gaborone");
```
returns:
```text
Gaborone
```
You can also retrieve the complete location record:
```js
findLocation("Gaborone");
```
which returns:
```js
{
name: "G β¦