hearth-address-resolver

2.5.4 • Public • Published

Usage

Look at the tests inside the src/test directory for usage examples. Click here

API

➡️ forwardGeocode(address: string | string[], params: ForwardGeocodeParams) => <null | number[] | {coords: number[], rawData: object}>

➡️ ForwardGeocodeParams: { recieveRawContent: boolean }

Configuration

Make sure that you have PELIAS_ENDPOINT environment variable set to the URL where your pelias instance is hosted, before you call any method from this lib

⚠️ Note: If setting the env variable is not possible you can also call the init() method to set the URL manually

/hearth-address-resolver/

    Package Sidebar

    Install

    npm i hearth-address-resolver

    Weekly Downloads

    1

    Version

    2.5.4

    License

    ISC

    Unpacked Size

    47.4 kB

    Total Files

    30

    Last publish

    Collaborators

    • kryptonian41