node-google-places
node-google-places copied to clipboard
Reference field is deprecated
The reference field was deprecated on June 24 and replaced with place_id, so this module will stop working in about 9 months.
I'm happy to submit a pull request but I noticed there's an unmerged PR from June -- I wanted to see if you're still maintaining this module before I started work on it.
Thanks for putting together this module, Jay!
:+1:
+1
btw this library can be easily deprecated, it's just
get({
uri: 'https://maps.googleapis.com/maps/api/place/autocomplete/json',
qs: {
input: ctx.query.q,
types: '(cities)',
language: 'en',
key: MY_KEY
}
}, function (err, res, body) {
if (err) return done(err)
if (body.status !== 'OK') return done(new HTTPError(400, 'Something went wrong'))
done(null, body)
})
If you guys are interested, I forked this project and updated the API calls, plus added some custom features like search by address or phone number. You can use it on npm or check out the source code on GitHub.
I tried emailing Jay about these issues but he never responded -- seems like this project isn't being actively maintained. If you'd like to submit PRs to my project, I'm happy to have contributors and issue reports!