-
- All Implemented Interfaces:
-
android.os.Parcelable
public class GpxSearchParams extends AidlParams
Filters, order and page for searching track files. Unset filters match every track.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringSORT_NEWESTpublic final static StringSORT_OLDESTpublic final static StringSORT_LONGESTpublic final static StringSORT_NAMEprivate Stringqueryprivate Stringfolderprivate StringactivityTypeprivate longfromTimeprivate longtoTimeprivate doubleminDistanceprivate doublemaxDistanceprivate booleanshownOnlyprivate doubleminDescentprivate doubleminElevationRangeprivate floatminMaxSpeedprivate floatmaxMaxSpeedprivate floatmaxAvgSpeedprivate Stringsortprivate intoffsetprivate intlimitpublic final static Parcelable.Creator<GpxSearchParams>CREATOR
-
Constructor Summary
Constructors Constructor Description GpxSearchParams()GpxSearchParams(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetQuery()voidsetQuery(@Nullable() String query)Part of the file path, case insensitive. StringgetFolder()voidsetFolder(@Nullable() String folder)Folder relative to the tracks folder, e.g. StringgetActivityType()voidsetActivityType(@Nullable() String activityType)Activity id, e.g. longgetFromTime()longgetToTime()doublegetMinDistance()doublegetMaxDistance()voidsetShownOnly(boolean shownOnly)Only tracks shown on the map. doublegetMinDescent()voidsetMinDescent(double minDescent)Min total descent in meters; 0 for any. doublegetMinElevationRange()voidsetMinElevationRange(double minElevationRange)Min difference between the highest and the lowest point in meters; 0 for any. floatgetMinMaxSpeed()floatgetMaxMaxSpeed()floatgetMaxAvgSpeed()voidsetMaxAvgSpeed(float maxAvgSpeed)Upper limit of the average speed over the whole time in m/s; 0 for any. StringgetSort()voidsetSort(@Nullable() String sort)One of SORT_NEWEST (default), SORT_OLDEST, SORT_LONGEST, SORT_NAME. intgetOffset()intgetLimit()voidsetTimeRange(long fromTime, long toTime)Track start time range in milliseconds; 0 leaves the side open. voidsetDistanceRange(double minDistance, double maxDistance)Distance range in meters; 0 leaves the side open. booleanisShownOnly()voidsetMaxSpeedRange(float minMaxSpeed, float maxMaxSpeed)Range of the track's max speed in m/s; 0 leaves the side open. voidsetPage(int offset, int limit)voidwriteToBundle(Bundle bundle)-
Methods inherited from class net.osmand.aidlapi.AidlParams
describeContents, readFromParcel, writeToParcel -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
GpxSearchParams
GpxSearchParams()
-
GpxSearchParams
GpxSearchParams(Parcel in)
-
-
Method Detail
-
setFolder
void setFolder(@Nullable() String folder)
Folder relative to the tracks folder, e.g. "rec"; subfolders match too.
-
getActivityType
@Nullable() String getActivityType()
-
setActivityType
void setActivityType(@Nullable() String activityType)
Activity id, e.g. "skiing".
-
getFromTime
long getFromTime()
-
getToTime
long getToTime()
-
getMinDistance
double getMinDistance()
-
getMaxDistance
double getMaxDistance()
-
setShownOnly
void setShownOnly(boolean shownOnly)
Only tracks shown on the map.
-
getMinDescent
double getMinDescent()
-
setMinDescent
void setMinDescent(double minDescent)
Min total descent in meters; 0 for any.
-
getMinElevationRange
double getMinElevationRange()
-
setMinElevationRange
void setMinElevationRange(double minElevationRange)
Min difference between the highest and the lowest point in meters; 0 for any.
-
getMinMaxSpeed
float getMinMaxSpeed()
-
getMaxMaxSpeed
float getMaxMaxSpeed()
-
getMaxAvgSpeed
float getMaxAvgSpeed()
-
setMaxAvgSpeed
void setMaxAvgSpeed(float maxAvgSpeed)
Upper limit of the average speed over the whole time in m/s; 0 for any.
-
setSort
void setSort(@Nullable() String sort)
One of SORT_NEWEST (default), SORT_OLDEST, SORT_LONGEST, SORT_NAME.
-
getOffset
int getOffset()
-
getLimit
int getLimit()
-
setTimeRange
void setTimeRange(long fromTime, long toTime)
Track start time range in milliseconds; 0 leaves the side open.
-
setDistanceRange
void setDistanceRange(double minDistance, double maxDistance)
Distance range in meters; 0 leaves the side open.
-
isShownOnly
boolean isShownOnly()
-
setMaxSpeedRange
void setMaxSpeedRange(float minMaxSpeed, float maxMaxSpeed)
Range of the track's max speed in m/s; 0 leaves the side open.
-
setPage
void setPage(int offset, int limit)
-
writeToBundle
void writeToBundle(Bundle bundle)
-
-
-
-