Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

2.0.0

Choose a tag to compare

@jgravois jgravois released this 12 May 17:28

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.

  1. the response signature of geocode() now provides an array of candidates, not locations
  2. singleLine is 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]); //
  }
});