conveyal / otp.js

OTP Javascript Client & Data Bindings
MIT License
19 stars 20 forks source link

Updated stopLayer since OTP API changed #57

Closed buma closed 9 years ago

buma commented 9 years ago

Previous API calls don't work anymore since OTP API changed. I updated request and response.

I'm not sure if stops-response.js is correct now. Since previously stops were in stops attribute. But now only array of stop objects is returned in OTP.

Code works and stops are shown with name on hover.

trevorgerhardt commented 9 years ago

@buma this looks great, but there are some conflicts from the refactoring that went on last week. Mind reapplying the changes to the latest code and I'll merge them in?

buma commented 9 years ago

I updated code to the latest master and tested that it still works. Please check if stops-response is OK since stops are no longer in stops variable.