nchaulet / node-geocoder

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

Standardize batch output #327

Closed charly22 closed 2 years ago

charly22 commented 2 years ago

Standardize batch output:

[
    {
        "error": null,
        "value": [
            {
               // ... geocoding intem
            }
        ]
    },
    {
        "error": "...",
        "value": []
    }
]

Note: I would say that values it's more semantically accurate but since it was already value let's keep that way for compatibility. Sorry I had introduced this bug 😞

charly22 commented 2 years ago

Closing in favor of #328