nchaulet / node-geocoder

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

How can get boundary details? #278

Open rajeev-k-tomy opened 5 years ago

rajeev-k-tomy commented 5 years ago

Hi,

I cannot figure out a way to retrieve boundary details from the package. It is not given in the documentation. Is there any way to do this?

I used the very first example in the documentation to get the response and I am getting the output as mentioned.

When I go through the library, it seems to me that, the raw data holds the information that I need (i.e, boundary details), but it will be removed from the result when _format happens.

This happens exactly at this line. Due to this, even if I write a custom formatter, I cannot access the data, since the custom formatter is called after the above action is done.

So what should I do in order to get the boundary details?