use of cl.smartcities.isci.transportinspector.backend.BusStop in project androidApp by InspectorIncognito.
the class CameraMoveHandler method getNearBusStops.
private List<BusStop> getNearBusStops(double latitude, double longitude) {
Context context = this.context.get();
if (context == null)
return null;
GridHelper helper = new GridHelper(context);
List<BusStop> busStops = helper.getNearBusStops(latitude, longitude);
helper.close();
return busStops;
}
use of cl.smartcities.isci.transportinspector.backend.BusStop in project androidApp by InspectorIncognito.
the class FavouriteActivity method onItemClick.
@Override
public void onItemClick(Suggestion item) {
BusStop busStop = getBusStop(item);
if (busStop == null) {
return;
}
Intent intent = new Intent(this, MainActivity.class);
intent.putExtra(MainActivity.SEARCH_BUS_STOP_LAT, busStop.getLat());
intent.putExtra(MainActivity.SEARCH_BUS_STOP_LNG, busStop.getLon());
intent.putExtra(MainActivity.SEARCH_BUS_STOP_ID, busStop.getId());
startActivity(intent);
finish();
}
Aggregations