Class GtfsRoute


  • public class GtfsRoute
    extends GtfsObject
    In memory representation of a GTFS entry in routes.txt
    Author:
    markr
    • Field Detail

      • SUPPORTED_KEYS

        public static final EnumSet<GtfsKeyType> SUPPORTED_KEYS
        Supported keys for a GTFS route instance
    • Constructor Detail

      • GtfsRoute

        public GtfsRoute()
    • Method Detail

      • getRouteId

        public String getRouteId()
        Get the route id
        Returns:
        route id
      • getRouteTypeRaw

        public String getRouteTypeRaw()
      • getRouteType

        public RouteType getRouteType()
      • getShortName

        public String getShortName()
      • getLongName

        public String getLongName()
      • getRouteDescription

        public String getRouteDescription()
      • toString

        public String toString()
        String of all key value pairs of this GTFS entity
        Overrides:
        toString in class Object
        Returns:
        created string
      • hasShortName

        public boolean hasShortName()
      • hasLongName

        public boolean hasLongName()
      • hasRouteDescription

        public boolean hasRouteDescription()
      • hasValidName

        public boolean hasValidName()
        Verify if either long or short name is available
        Returns:
        true when valid, false otherwise