node-where
node-where copied to clipboard
Feature Proposal - Support where.is(Lat, Long)
Feature Proposal:
- Search address information for coordinates.
- Validating coordinates using markstos/parse-coordinates
- Google Places API to return address: (if coordinates are valid google will return data)
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&latlng=-80.21,21.32
Usage:
where.is('-80.21, 21.32', function(err, result) {
if (result) {
console.log('Address: ' + result.get('address'));
console.log('Street Number: ' + result.get('streetNumber'));
console.log('Street: ' + result.get('street'));
console.log('Full Street: ' + result.get('streetAddress'));
console.log('City: ' + result.get('city'));
console.log('State / Region: ' + result.get('region'));
console.log('State / Region Code: ' + result.get('regionCode'));
console.log('Zip: ' + result.get('postalCode'));
console.log('Country: ' + result.get('country'));
console.log('Country Code: ' + result.get('countryCode'));
console.log('Lat: ' + result.get('lat'));
console.log('Lng: ' + result.get('lng'));
}
});
I can put together a simple PR if you are okay with including this feature.