Open teschste opened 7 years ago
Follow-up: I have come across at least one US address (therefore there are probably more) that only works if I use the street address and city, if fails to return a result if I use the advanced method without the city. While this still gets me a result, it requires me to try the geocode two different ways, doubling the number of attempts against my Google API key. Since I have to use the advanced method for many of the addresses, this is another reason why it would be helpful if the city was included in the advanced method, so I only need to implement the code using one method and do not double the number of attempts counted against my API key. Thanks!
I am also having this issue, Google provider won't return city!
When using the Google geocoder, I can either provide the street address and city (no country) or I can use the advanced method and provide the street address, country, and postal code but neither is not getting me the result I need.
Case in point, I have the following Canadian address:
PO BOX 479 MCLENNAN, AB, CA T0H2L0
I realize that this is a PO Box and can not accurately be geocoded but what I need is the same result I get when I enter this address into Google Maps, which is the coordinates for the town of McLennan in Alberta Canada.
However no matter how I enter the values in node-geocoder, I either get back:
Can the application be modified to allow inclusion of both the City and the Country, at least when using the advanced method (passing an object), so that I get the same result Google maps provides?
Thanks!