This repository was archived by the owner on Jan 23, 2019. It is now read-only.
2.0.0
Breaking Changes
Single address geocoding requests to The World Geocoding Service now call /findAddressCandidates exclusively. This has allowed us to simplify this API by removing the addresses() method, but necessitated the following changes.
- the response signature of
geocode()now provides an array of candidates, not locations singleLineis now the appropriate parameter to use when supplying a single string for geocoding
client.geocode({ singleLine: "voodoo doughnuts" }, function (err, result) {
console.log(result.candidates[0]); //
}
});