shukerullah / react-geocode

A React module to transform a description of a location (i.e. street address, town name, etc.) into geographic coordinates (i.e. latitude and longitude) and vice versa.
MIT License
207 stars 33 forks source link

fromAddress only returns one result #18

Closed ChrisLowe-Takor closed 4 years ago

ChrisLowe-Takor commented 6 years ago
Geocode.fromAddress(keyword).then(
    response => {
        console.log(response.count);
    },
    error => {
        window.console.log('error');
    }
);

Irregardless of what I enter the response only contains a single response. Is there any way to get the full list of responses from the geocoder?

naiveai commented 5 years ago

I think this is actually just Google Maps being generally reliable in returning one result. Try using some more ambiguous addresses, I think you'll see how Google returns multiple results only when it's necessary.