nchaulet / node-geocoder

nodejs geocoding library
http://nchaulet.github.io/node-geocoder/
MIT License
930 stars 214 forks source link

JSON formatted output #209

Closed eagilson closed 7 years ago

eagilson commented 7 years ago

Is there a way to have the output formatted as JSON code? Currently it fails the validator here http://jsonlint.com/ and causes the JSON.parse() function to throw an error.

eagilson commented 7 years ago

Never mind, I figured out what the problem was. I was accessing the result by trying res.latitude instead of res[0].latitude.