C# 클래스 API.WebClients.GoogleTransitClient

Contains the task for importing Route colors from Google Transit. This task is run once per year(?).
파일 보기 프로젝트 열기: RikkiGibson/Corvallis-Bus-Server 1 사용 예제들

비공개 메소드들

메소드 설명
DoTask ( ) : GoogleTransitData

Downloads and interprets the ZIP file CTS uploads for Google. This is primarily to get route colors and route schedules.

GetC1RSchedule ( ) : GoogleRouteSchedule
GetZipFile ( ) : Stream

Gets the Google Transit Zipfile as a Memory Stream.

ParseRouteCSV ( ZipArchiveEntry entry ) : List

Reads a ZipArchive entry as the routes CSV and extracts the route colors.

ParseScheduleCSV ( ZipArchiveEntry entry ) : List
ReadLines ( StreamReader reader ) : IEnumerable
ToTimeSpan ( string time ) : System.TimeSpan

This gives a time span even if it's over 24 hours-- requires HH:MM or HH:MM:00 format.