node-google-places icon indicating copy to clipboard operation
node-google-places copied to clipboard

Reference field is deprecated

Open eastbayjake opened this issue 10 years ago • 4 comments

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!

eastbayjake avatar Sep 04 '14 18:09 eastbayjake

:+1:

esco avatar Nov 18 '14 01:11 esco

+1

kilianc avatar Feb 18 '15 02:02 kilianc

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)
})

kilianc avatar Feb 22 '15 02:02 kilianc

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!

eastbayjake avatar Feb 23 '15 22:02 eastbayjake