Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data class AgencyConfig(
/**
* Route type filter (integer from GTFS Static `routes.txt` > `route_type` field)
* (useful when multiple route type in same GTFS)
* @see [https://developers.google.com/transit/gtfs/reference#routestxt]
* @see [https://gtfs.org/reference/static/#routestxt]
*/
@SerialName("target_route_type_id")
val targetRouteTypeId: Int, // REQUIRED
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GAgency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.mtransit.commons.gtfs.data.AgencyId
import org.mtransit.parser.MTLog

// https://gtfs.org/schedule/reference/#agencytxt
// https://developers.google.com/transit/gtfs/reference#agency_fields
data class GAgency(
val agencyIdInt: Int,
val agencyName: String,
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GCalendar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import androidx.annotation.Discouraged
import org.mtransit.parser.MTLog
import java.util.Calendar

// https://developers.google.com/transit/gtfs/reference#calendar_fields
// https://gtfs.org/reference/static/#calendartxt
data class GCalendar(
val serviceIdInt: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import org.mtransit.parser.gtfs.data.GFieldTypes.isDate
import java.lang.Integer.max
import java.lang.Integer.min

// https://developers.google.com/transit/gtfs/reference#calendar_dates_fields
// https://gtfs.org/reference/static/#calendar_datestxt
data class GCalendarDate(
val serviceIdInt: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.mtransit.parser.gtfs.data

import org.mtransit.parser.MTLog

// https://developers.google.com/transit/gtfs/reference#tripstxt
// https://gtfs.org/reference/static/#tripstxt
enum class GDirectionId(val id: Int) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.mtransit.parser.gtfs.data

import org.mtransit.parser.MTLog

// https://developers.google.com/transit/gtfs/reference#stop_times_drop_off_type_field
// https://gtfs.org/schedule/reference/#stop_timestxt
enum class GDropOffType(val id: Int) {

REGULAR(0),
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GFieldTypes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import java.util.Calendar
import java.util.Date
import java.util.Locale

// https://developers.google.com/transit/gtfs/reference#field_types
// https://gtfs.org/schedule/reference/#field-types
@Suppress("unused", "MemberVisibilityCanBePrivate")
object GFieldTypes {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GFrequency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.mtransit.parser.gtfs.GAgencyTools
import java.util.Date
import java.util.concurrent.TimeUnit

// https://developers.google.com/transit/gtfs/reference#frequenciestxt
// https://gtfs.org/reference/static/#frequenciestxt
data class GFrequency(
val tripIdInt: Int,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GPickupType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.mtransit.parser.gtfs.data

import org.mtransit.parser.MTLog

// https://developers.google.com/transit/gtfs/reference#stop_times_pickup_type_field
// https://gtfs.org/schedule/reference/#stop_timestxt
enum class GPickupType(val id: Int) {

REGULAR(0),
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import org.mtransit.parser.MTLog
import org.mtransit.parser.gtfs.GAgencyTools
import kotlin.math.max

// https://developers.google.com/transit/gtfs/reference#routestxt
// https://gtfs.org/reference/static/#routestxt
data class GRoute(
val agencyIdInt: Int, // Optional (or empty)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GRouteType.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.mtransit.parser.gtfs.data

// https://developers.google.com/transit/gtfs/reference/#routestxt
// https://gtfs.org/reference/static/#routestxt
enum class GRouteType(
val id: Int
) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/mtransit/parser/gtfs/data/GSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import java.util.Set;
import java.util.concurrent.TimeUnit;

// https://developers.google.com/transit/gtfs/reference#FeedFiles
// https://developers.google.com/transit/gtfs/reference/difference-gtfs-transit-implement
// https://gtfs.org/schedule/reference
// https://gtfs.org/schedule/best-practices
@SuppressWarnings({"RedundantSuppression", "WeakerAccess"})
public class GSpec {

Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GStop.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import org.mtransit.parser.MTLog
import org.mtransit.parser.gtfs.GAgencyTools
import kotlin.math.floor

// https://developers.google.com/transit/gtfs/reference#stops_fields
// https://gtfs.org/schedule/reference/#stopstxt
data class GStop(
val stopIdInt: Int,
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GStopTime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import org.mtransit.parser.gtfs.GAgencyTools
import java.util.Date

// https://gtfs.org/schedule/reference/#stop_timestxt
// https://developers.google.com/transit/gtfs/reference#stop_times_fields
data class GStopTime(
val tripIdInt: Int,
private val _arrivalTime: Int,
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GTimePoint.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.mtransit.parser.gtfs.data
import org.mtransit.parser.MTLog

// https://gtfs.org/schedule/reference/#stop_timestxt
// https://developers.google.com/transit/gtfs/reference#stop_timestxt
enum class GTimePoint(val id: Int) {

APPROXIMATE(0),
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/mtransit/parser/gtfs/data/GTrip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.mtransit.commons.gtfs.data.Trip
import org.mtransit.parser.MTLog
import org.mtransit.parser.gtfs.GAgencyTools

// https://developers.google.com/transit/gtfs/reference#tripstxt
// https://gtfs.org/reference/static/#tripstxt
data class GTrip(
val tripIdInt: Int,
Expand Down