hearth-address-resolver
v2.5.4
Published
The helper module to convert addresses into coords and vice versa
Downloads
5
Readme
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