Transit Path
@JsonClass(generateAdapter = true )
A path taken in a public transit system, such as a bus or a metro. Note that it does not describe an entire transit line, but only a specific journey a user does in a transit line.
Constructors
Link copied to clipboard
constructor(@Json(name = "transitStops" ) transitStops: List<Location>, @Json(name = "name" ) name: String, @Json(name = "hexRgbColor" ) hexRgbColor: String, @Json(name = "linePlaceId" ) linePlaceId: String?, @Json(name = "stopTimesInfo" ) stopTimesInfo: List<StopTimeInfo> = emptyList(), @Json(name = "source" ) source: DataSource?, @Json(name = "confidence" ) confidence: Double?, @Json(name = "distanceMeters" ) distanceMeters: Double?)
Properties
Link copied to clipboard
Confidence level of the transit path data. Ranges from 0 to 1. Example: 0.9155850640140931
Link copied to clipboard
Distance traveled with the transit path, in meters. Example: 2341.0
Link copied to clipboard
Color of the transit line in hexadecimal in the form RRGGBB. Example: "009EE0"
Link copied to clipboard
Google Maps Place ID of the transit line. Example: "ChIJQVEUoLuipBIRJO37wI4yyBs"
Link copied to clipboard
Source of the location data of the transit path. Either BACKFILLED
or INFERRED
. Example: "INFERRED"
Link copied to clipboard
Time information (departure and arrival times, both real and scheduled) for each transit stop used.
Link copied to clipboard
List of locations of the transit stops used.