nchaulet / node-geocoder

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

Add support for no_annotations to OpenCage geocoder #265

Open js62789 opened 5 years ago

js62789 commented 5 years ago

I'm planning on making a significant number of requests to OpenCage's geocoding service, and it's recommended that we pass no_annotations=1 so that we can speed up response times and minimize payloads by excluding annotations data.

I've added tests and checked the linter. In the process I realized that2 of the MapQuest geocoder tests are failing and the VirtualEarth geocoder creates linter warnings. Those were preexisting issues and were unaffected by my changes, but I took the liberty of fixing those as well so that these changes comply with the contributor guidelines.