# node-geocommons-geocoder

> Node.js wrapper for calling the geocommons/geocoder Ruby interface

Latest version **0.1.0** (published 2014-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-geocommons-geocoder
pnpm add node-geocommons-geocoder
yarn add node-geocommons-geocoder
bun add node-geocommons-geocoder
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-03-07 |
| First published | 2014-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rick Huizinga |
| Maintainers | rickhuizinga |
| Keywords | geocommons, geocoder, node |

## Links

- npm: https://www.npmjs.com/package/node-geocommons-geocoder
- Repository: https://github.com/rickhuizinga/node-geocommons-geocoder
- Issues: https://github.com/rickhuizinga/node-geocommons-geocoder/issues
- npm.io page: https://npm.io/package/node-geocommons-geocoder

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-03-07
- 0.0.1 — 2014-03-07

## README

node-geocommons-geocoder
========================

Node.js wrapper for calling the [geocommons/geocoder](http://github.com/geocommons/geocoder) Ruby interface 

# Dependencies
A working ruby installation is required with the json and geocoder/us GEMs installed and available.

For the geocoder/us GEM, follow the build and installation instructions in [geocommons/geocoder](http://github.com/geocommons/geocoder).

A database can be built from the TIGER/Line data source as described in [geocommons/geocoder](http://github.com/geocommons/geocoder). Alternatively, a pre-built database can be found on the VM images for DataScienceToolkit.org ([petewarden/dstk](http://github.com/petewarden/dstk)).

# API Documentation

## geocode(database : String, address : String, callback : function)

Asynchronously parse and geocode `address`.
```javascript
	var geocoder = require('node-geocommons-geocoder');
	geocoder.geocode("/opt/tiger/geocoder2012.db", "12 Seahawks Way, Renton, WA, 98056", function(err, results) {
	  if (err) {
	    console.log(err.message);
	  } else {
	    console.log(JSON.stringify(results));
	  }
	});
```
Output:
	
	[{"precision":"zip","city":"Renton","score":0.603,"fips_county":"53033","lon":-122.186447,"zip":"98056","lat":47.514671,"state":"WA"}]

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