nchaulet / node-geocoder

nodejs geocoding library
http://nchaulet.github.io/node-geocoder/
MIT License
930 stars 214 forks source link

added place_id support to google geocoder #233

Open vasilevich opened 7 years ago

vasilevich commented 7 years ago

Google has place_id support in its geocoder So I added it in accordance with the official google api and left lat/lon support intact.

it will give priority to lat/lon , but if lat/lon is empty, it will check if you sent the place_id variable.

why do I need place_id? because apis such as google places autocomplete Do not return lat/lon rather simpley a place_id.

Thank you!