Commit 623f2b51 authored by Zachary Seguin's avatar Zachary Seguin

Removed main method and fixed incorrect spelling of longitude in Stop

parent 7e9f9a07
package ca.zacharyseguin.gtfs;
import java.util.List;
import java.util.Map;
public class Main
{
public static void main(String[] args) throws Exception
{
GTFS gtfs = new GTFS("/Users/zachary/tmp/grt_gtfs");
System.out.println("Loaded " + gtfs.getAgencies().size() + " agencies.");
System.out.println("Loaded " + gtfs.getRoutes().size() + " routes.");
System.out.println("Loaded " + gtfs.getStops().size() + " stops.");
System.out.println("Loaded " + gtfs.getTrips().size() + " trips.");
System.out.println("Loaded " + gtfs.getStopTimes().size() + " stop times.");
System.out.println("Loaded " + gtfs.getCalendar().size() + " calendar services.");
System.out.println("Loaded " + gtfs.getCalendarDates().size() + " calendar dates.");
System.out.println();
List<String> serviceIds = gtfs.activeServiceIDs();
for (String serviceId : serviceIds)
{
System.out.println(serviceId);
Map<String, Trip> trips = gtfs.trips(serviceId);
for (Trip trip : trips.values())
{
System.out.println(trip.getId() + " - " + trip.getHeadsign());
Map<String, StopTime> stopTimes = gtfs.stopTimes(trip.getId());
for (StopTime stopTime : stopTimes.values())
{
System.out.println(stopTime.getSequence() + " - " + stopTime.getStopId() + " - " + stopTime.getDepartureTime());
}// End of for
System.out.println();
}// End of for
System.out.println();
}
}// End of main method
}// End of class
\ No newline at end of file
......@@ -28,7 +28,7 @@ public class Stop
private Double latitude;
@Field("stop_lon")
private Double longitiude;
private Double longitude;
@Field("zone_id")
private String zoneId;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment