moshen / node-googlemaps

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

Lat and lng of geocoder response #68

Closed stephengardner closed 9 years ago

stephengardner commented 9 years ago

for a proper geocoded response, there is the geometry property, which has a location and that location has a lat and lng, but these are not parameters, they are getters, (they are functions). i.e.: the way google does it: googleResultObject.geometry.location.lat() the way this module does it: googleResultObject.geometry.location.lat.

This can be confusing. I'd simply add this to the readme.

moshen commented 9 years ago

You are conflating the front-end js api with this one, which calls the google services. This module is simply passing back the decoded json output as defined by the Google service.