int accuracy = Integer.parseInt(context.getParam("accuracy"));
return new LocationOperationHandler(LatLng.newInstance(lat, lon),
accuracy);
} catch (NumberFormatException ex) {
WhereMessages msgs = WhereLibrary.MESSAGES;
throw new IllegalStateException(
msgs.standardIndexPageInvalidLocationSpecified());
}
} else if (MODE_ROUTE.equals(mode)) {
String route = context.getParam(KEY_ROUTE);
return new RouteOperationHandler(route);