d4v3y0rk / ffpass

Use the command line or HTTP requests to start/stop the engine and lock/unlock the doors on your Ford vehicle.
https://www.npmjs.com/package/ffpass
61 stars 13 forks source link

Make geocode provider references generic #14

Closed skylerwshaw closed 3 years ago

skylerwshaw commented 3 years ago

There's currently a mismatch between for the geocode provider as we're statically configuring Geocodio but requesting a Google Maps API key: https://github.com/d4v3y0rk/ffpass/blob/20cbc5ed6dabf1b9e18bc2efbcc5c6237647ab85/index.js#L9-L13

This PR generalizes the geocode provider, adding another ENV var to define the provider and the associated key. Documentation has been updated to reflect this including a link to valid providers based on the node-geocoder dependency.

d4v3y0rk commented 3 years ago

@skylerwshaw thanks! great idea!