public final class GedderEngine
extends java.lang.Object
The engine goes through the following pipeline:
It essentially serves as a service to anything looking to utilize this flow.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESULT_DURATION |
static java.lang.String |
RESULT_DURATION_IN_TRAFFIC |
static java.lang.String |
RESULT_WARNINGS |
Modifier and Type | Method and Description |
---|---|
static android.os.Bundle |
start(java.lang.String origin,
java.lang.String destination,
long arrivalTime,
long prepTime,
long upperBoundTime)
Flows through the following pipeline once:
|
public static final java.lang.String RESULT_DURATION
public static final java.lang.String RESULT_DURATION_IN_TRAFFIC
public static final java.lang.String RESULT_WARNINGS
public static android.os.Bundle start(java.lang.String origin, java.lang.String destination, long arrivalTime, long prepTime, long upperBoundTime)
Flows through the following pipeline once:
origin
- The place the user is leaving from.destination
- The place the user wants to get to.arrivalTime
- The time the user needs to get to their destination.prepTime
- The either user-selected or smart-adjusted time it takes the user
to get prepared for travel after the alarm goes off.upperBoundTime
- The user selected alarm time. The Gedder Engine will never delay
an alarm past this time.Bundle
containing relevant data from the pipeline. You can extract this
data by using keys like RESULT_DURATION
, RESULT_WARNINGS
, etc..