# loqate-api-wrapper

> loqate api wrapper

Latest version **1.0.1** (published 2018-09-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install loqate-api-wrapper
pnpm add loqate-api-wrapper
yarn add loqate-api-wrapper
bun add loqate-api-wrapper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-09-20 |
| First published | 2018-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dobiedad |
| Maintainers | dobiedad |
| Keywords | loqate |

## Links

- npm: https://www.npmjs.com/package/loqate-api-wrapper
- npm.io page: https://npm.io/package/loqate-api-wrapper

## Dependencies (1)

- [httpism](https://npm.io/package/httpism.md) ^3.10.0

## Recent versions

- 1.0.1 (latest) — 2018-09-20
- 1.0.0 — 2018-09-20

## README

# Loqate API Wrapper

## Install

`yarn add loqate-api-wrapper`

## Usage

```
const LoqateApi = require("loqate-api-wrapper");

this.api = new LoqateApi({
  key:process.env.LOQATE_API_KEY,
  countries:['US']
});
```

## Search Addresses

```
const addresses = await this.api.suggestAddresses('The white house')
```

## Get Address by id

```
await this.api.getAddress('address-id-123');
```

## Other endpoints

This wrapper only implements `Find` & `Retrieve` endpoints from the api. PR's are welcome or others can be called with

```
const options = {}
await this.api.fetch('Directions',options);
```

---
_Source: https://npm.io/package/loqate-api-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
