Changeset View
Changeset View
Standalone View
Standalone View
app/src/main/java/it/reyboz/bustorino/backend/gtfs/GtfsUtils.java
| Show All 17 Lines | |||||
| package it.reyboz.bustorino.backend.gtfs; | package it.reyboz.bustorino.backend.gtfs; | ||||
| import androidx.core.util.Pair; | import androidx.core.util.Pair; | ||||
| import it.reyboz.bustorino.backend.FiveTNormalizer; | import it.reyboz.bustorino.backend.FiveTNormalizer; | ||||
| import it.reyboz.bustorino.backend.ServiceType; | import it.reyboz.bustorino.backend.ServiceType; | ||||
| abstract public class GtfsUtils { | abstract public class GtfsUtils { | ||||
| public static final String GTFSRT_URL_POSITION = "http://percorsieorari.gtt.to.it/das_gtfsrt/vehicle_position.aspx"; | public static final String GTFSRT_URL_POSITION = "https://percorsieorari.gtt.to.it/das_gtfsrt/vehicle_position.aspx"; | ||||
| public static final String GTFSRT_URL_TRIP_UPDATES ="http://percorsieorari.gtt.to.it/das_gtfsrt/trip_update.aspx"; | public static final String GTFSRT_URL_TRIP_UPDATES ="https://percorsieorari.gtt.to.it/das_gtfsrt/trip_update.aspx"; | ||||
| public static final String GTFSRT_URL_ALERTS = "http://percorsieorari.gtt.to.it/das_gtfsrt/alerts.aspx"; | public static final String GTFSRT_URL_ALERTS = "https://percorsieorari.gtt.to.it/das_gtfsrt/alerts.aspx"; | ||||
| public static String stripGtfsPrefix(String routeID){ | public static String stripGtfsPrefix(String routeID){ | ||||
| String[] explo = routeID.split(":"); | String[] explo = routeID.split(":"); | ||||
| //default is | //default is | ||||
| String toParse = routeID; | String toParse = routeID; | ||||
| if(explo.length>1) { | if(explo.length>1) { | ||||
| toParse = explo[1]; | toParse = explo[1]; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register