# @furkot/geocode

> Geocoding service for Furkot

Latest version **4.0.2** (published 2026-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @furkot/geocode
pnpm add @furkot/geocode
yarn add @furkot/geocode
bun add @furkot/geocode
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2026-10-14 |
| First published | 2022-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 4 |
| Unpacked size | 38.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Natalia Kowalczyk |
| Maintainers | pirxpilot, melitele |
| Keywords | furkot-geocode, furkot, geocoding |

## Links

- npm: https://www.npmjs.com/package/@furkot/geocode
- Repository: https://github.com/furkot/geocode
- Homepage: https://github.com/furkot/geocode#readme
- Issues: https://github.com/furkot/geocode/issues
- npm.io page: https://npm.io/package/@furkot/geocode

## Dependencies (4)

- [debug](https://npm.io/package/debug.md) ~4
- [fetchagent](https://npm.io/package/fetchagent.md) ~3
- [@furkot/address](https://npm.io/package/@furkot/address.md) ^1.0.1
- [limiter-component](https://npm.io/package/limiter-component.md) ~2

## Recent versions

- 4.0.2 (latest) — 2026-10-14
- 4.0.1 — 2026-10-07
- 4.0.0 — 2026-01-29
- 3.2.1 — 2025-01-26
- 3.2.0 — 2025-01-26
- 3.1.3 — 2024-03-08
- 3.1.2 — 2024-02-21
- 3.1.1 — 2024-02-18
- 3.1.0 — 2023-07-08
- 3.0.1 — 2022-10-09
- 3.0.0 — 2022-09-03
- 2.0.3 — 2022-09-03

## README

[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]

# @furkot/geocode

Geocoding service for Furkot

## Install

```sh
$ npm install --save @furkot/geocode
```

## Usage

````js
import furkotGeocode from '@furkot/geocode';

const options = {}; // options activating geocoding services

const geocode = furkotGeocode(options);

const query = {}; // geocoding query

const { places } = await geocode(query)
// process result
````

### Configuration options

Geocoding component expects a configuration options object with following fields:

- `max` - maximum number of places to return
- `order` - list of names of geocoding services in the order they will be tried
- `XXX_key` - API key for service `XXX` (if service `XXX` requires a key)
- `XXX_enable` - function that takes query and returns `true` when service `XXX` is expected to handle that query; if the function is absent, the service `XXX` won't be used even if listed in the `order`
- `XXX_parameters` - object with additional parameters specific to service `XXX`

### Query parameters

Common parameters:

- `max` - maximum number of places to return (overrides configuration option)
- `lang` - language code, defaults to `en`

Reverse geocoding:

- `ll` - array of coordinates `[ longitude, latitude ]`

Forward geocoding:

- `address` - string representing an address
- `place` - string representing place name; either `addess` or `place` is expected
- `partial` - a boolean flag set when geocoding is done as part of autocomplete
- `bounds` - a hint to the region place resides in as array of south west and north east `[[SW longitude, SW latitude], [NE longitude, NE latitude]]`

### Results format

If successful, geocoding service will return object with field `places` - an array of objects, each describing one place with following fields (not all fields are always set):

- `place` - place name (may be absent if address doesn't correspond to a named place)
- `type` - place type
- `address` - formated address
- `normal` - normalized address: `house street,town,province,country_code`
- `house` - building number
- `street` - street name
- `community` - neighborhood or village
- `town` - town or city
- `county` - administrative area more general than town
- `province` - state or province (usually abbreviated)
- `country` - country (short form but not abbreviated)

## License

MIT © [Natalia Kowalczyk](https://melitele.me)

[npm-image]: https://img.shields.io/npm/v/@furkot/geocode
[npm-url]: https://npmjs.org/package/@furkot/geocode

[build-url]: https://github.com/furkot/geocode/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/furkot/geocode/check.yaml?branch=main

[deps-image]: https://img.shields.io/librariesio/release/npm/@furkot/geocode
[deps-url]: https://libraries.io/npm/@furkot%2Fgeocode

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