@christian-nja/geocoding

1.0.0 • Public • Published

Simple usage:

const geocoder = new Geocoder();
const address_1 = new Address({
    q: "Paris France",
});
const address_2 = new Address({
    q: "New York",
});
geocoder.resolveCoordinates([address_1, address_2]).then(
    (results) => { console.log(results)
    };

Pay attention default services may have limitation. To provide new service do:

import { NodeGeocoder, Geocoder } from "geocoding";

const geocoder = new Geocoder(
    new NodeGeocoder({
        provider: "yourprovider",
    })
);

Package Sidebar

Install

npm i @christian-nja/geocoding

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

12.7 kB

Total Files

13

Last publish

Collaborators

  • christian-nja