conveyal / browsochrones

Create isochrones and accessibility images in the browser
MIT License
6 stars 2 forks source link

fix(transitive): Generate transitive data without latitude longitude … #52

Closed mattwigway closed 8 years ago

mattwigway commented 8 years ago

…snapping to query grid. BREAKIN

Generate transitive dat without lat lon snapping, required some API changes. getTransitiveData is

now gone, replaced with getDestinationData, and params have chnaged.

API of getDestinationData has a BREAKING CHANGE.

I removed getTransitiveData as you can use getDestinationData to get the same thing as well as the travel times. You now call getDestination data with { from, to }; from is optional but allows you to specify the exact lat, lon and name of the origin. to must contain x and y coords in the query (which is what was previously passed to getDestinationData) but can also contain lat, lon and name.