I have a set of bicycle station and i need to find a way from one point to another, using these bicycles. for example:
- User go to a nearby station and pick a bicycle
- he goes to another station bicycling
- he drops his bicycle here and finish is course on foot
Actually, my android application proceeds like that:
- I find the two closest stations of my current position and the two closest to my destination
- I calculate four different routes using google api. ( picking one station or another) and choose the best one
to calculate a route, i do three request to google direction, one from my position to a station on foot, one from one station to another on bicycle, and a third from a station to my final destination on foot. that's 3*4=12 request to google api's
Users of the free API
2500 directions requests per 24 hour period. Up to 8 waypoints allowed in each request. Waypoints are not >available for transit directions. 2 requests per second.
12 requests is too much for my application, however, google api allows to use waypoints, i would then give the two station and only one request instead of 3, but then, I don't know how to change the mode ( bicyling or walking) between waypoints, is that possible? Or maybe google's api can find the best itinerary for me ( by giving him differents stations), is that possible?
Thanks you :)