CUTR-at-USF / OpenTripPlanner-for-Android

An Android app for multi-modal trip planning and navigation using any OpenTripPlanner server.
Other
130 stars 91 forks source link

Support "massive" bike rental #482

Open vreixo opened 8 years ago

vreixo commented 8 years ago

Hi!

I have been trying the available servers and their capabilities and Paris server makes the app unusable if zoom is high because of the huge amount of markers displayed. To cluster the markers should solve the problem https://developers.google.com/maps/documentation/android-api/utility/marker-clustering.

barbeau commented 8 years ago

+1

barbeau commented 8 years ago

From a look at the OTP bike rental API docs: http://dev.opentripplanner.org/apidoc/0.15.0/resource_BikeRental.html

... it appears that the API endpoint supports a geographic bounds as a parameter. But, from a quick look at our bike rental loader code: https://github.com/CUTR-at-USF/OpenTripPlanner-for-Android/blob/master/opentripplanner-android/src/main/java/edu/usf/cutr/opentripplanner/android/tasks/BikeRentalLoad.java#L69

...it doesn't look like we're passing those parameters. So this should help us cut down on the number of stations returned to just those in the geographic bounds of the visible portion of the map.