Licence
ISC
Version
2.5.4
Deps
1
Size
46 kB
Vulns
0
Weekly
0
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