moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
559 stars 148 forks source link

Getting error `Component filter type components=country is not supported.` #154

Open glesage opened 5 years ago

glesage commented 5 years ago

Hi,

We've been using this module for a few years now and never had any issues. However few weeks ago we started seeing this error a lot when calling the geocode api Component filter type components=country is not supported.

Our requests parameters look like:

var params = {
    "address": "1 North Main Street,  New York NY 11367",
    "components": "components=country:us",
    "language": "en",
    "region":"us"
};

Any thoughts? Thanks!