Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
Kevin Sellers edited this page Mar 31, 2016 · 4 revisions

Welcome to the shuttleAndroid wiki!

public static final double NORTH_ROUTE_ESTIMATE_MULTIPLIER = .55;
public static final double WEST_ROUTE_ESTIMATE_MULTIPLIER = .59;
public static final double EAST_ROUTE_ESTIMATE_MULTIPLIER = .63;

private int applyEstimatesOffset(int routeId, int estimate) { if(estimate == -1){ return -1; } switch (routeId){ case NORTH_ROUTE_ID: estimate *= Constants.NORTH_ROUTE_ESTIMATE_MULTIPLIER; break; case WEST_ROUTE_ID: estimate *= Constants.WEST_ROUTE_ESTIMATE_MULTIPLIER; break; case EAST_ROUTE_ID: estimate *= Constants.EAST_ROUTE_ESTIMATE_MULTIPLIER; break; default: Log.e(TAG, "reached default case in applyEstimatesOffset function"); } if(estimate < 1) estimate = 1; return estimate; }

Clone this wiki locally