moshen / node-googlemaps

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

Adding Convert Method #14

Closed joelongstreet closed 9 years ago

joelongstreet commented 12 years ago

Not sure if this fits within your library, but I've ran into a few instances where I needed to get a specific output from the data returned by google maps. For example, I might have:

The convert function I've added does the above. Let me know what you think.

Joe

moshen commented 12 years ago

I like it. I think it could fit, probably under a different method/namespace. Maybe exports.util.convert. Does it only work with the output of geocode and reverseGeocode?

joelongstreet commented 12 years ago

I've gone ahead and updated the readme too.

joelongstreet commented 12 years ago

thoughts?

moshen commented 12 years ago

After looking at my own util type functions, I'm thinking it's a better idea to have them all under their own namespace/submodule.

I'm going to merge this with a local branch of my changes and comment/close later when I push again to develop.

Thanks