package Ġnet . dub lin . bus . common Ċ Ċ import Ġcom . google . android . gms . maps . model . LatLng Ċ import Ġnet . dub lin . bus . Build Config Ċ Ċ object ĠConstants Ġ{ ĊĠĠĠ Ġconst Ġval ĠCONTENT _ TYPE Ġ= Ġ" Content - Type " ĊĠĠĠ Ġconst Ġval ĠCONTENT _ TYPE _ XML Ġ= Ġ" text / xml ; Ġcharset = utf - 8 " ĊĠĠĠ Ġconst Ġval ĠSOAP _ ACTION Ġ= Ġ" soap action " ĊĊĠĠĠ Ġconst Ġval ĠNAMES PACE Ġ= Ġ" http :// dub lin bus . ie /" ĊĠĠĠ Ġprivate Ġconst Ġval ĠAPI _ URL _ BASE Ġ= ĠBuild Config . API _ URL ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ BASE _ SERVICE Ġ= Ġ"${ API _ URL _ BASE } D ub lin Bus RT PI Service . asm x ? op =" ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ REAL _ TIME _ SOAP _ METHOD Ġ= Ġ" Get Real Time Stop Data _ Force Line Note Visit " ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ REAL _ TIME _ CONTENT Ġ= Ġ"<? xml Ġversion =\" 1 . 0 \" Ġencoding =\" utf - 8 \" ? >< soap : Envelope Ġxmlns : xsi =\" http :// www . w 3 . org / 2 0 0 1 / XMLSchema - instance \" Ġxmlns : xsd =\" http :// www . w 3 . org / 2 0 0 1 / XMLSchema \" Ġxmlns : soap =\" http :// schemas . xml soap . org / soap / envelope /\ ">< soap : Body >< Get Real Time Stop Data _ Force Line Note Visit Ġxmlns =\" http :// dub lin bus . ie /\ ">< stop Id >% s </ stop Id >< force Refresh > true </ force Refresh >< force Line Note Visit > true </ force Line Note Visit ></ Get Real Time Stop Data _ Force Line Note Visit ></ soap : Body ></ soap : Envelope >" ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ STOP _ METHOD Ġ= Ġ" GetAll Dest inations " ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ ROUTE _ METHOD Ġ= Ġ" Get Routes Inc N ite Link _ Mobile F are Calc " ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ ROUTE _ BY _ STOP _ METHOD Ġ= Ġ" Get Routes Serv iced By Stop Number " ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ ROUTE _ DETAIL _ METHOD Ġ= Ġ" Get Stop Data By Route And Direction " ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ ROUTE _ DETAIL _ CONTENT Ġ= Ġ"<? xml Ġversion =\" 1 . 0 \" Ġencoding =\" utf - 8 \" ? >< soap : Envelope Ġxmlns : xsi =\" http :// www . w 3 . org / 2 0 0 1 / XMLSchema - instance \" Ġxmlns : xsd =\" http :// www . w 3 . org / 2 0 0 1 / XMLSchema \" Ġxmlns : soap =\" http :// schemas . xml soap . org / soap / envelope /\ ">< soap : Body >< Get Stop Data By Route And Direction Ġ Ġxmlns =\" http :// dub lin bus . ie /\ ">< route >% s </ route >< direction >% s </ direction ></ Get Stop Data By Route And Direction Ġ></ soap : Body ></ soap : Envelope >" ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ STOP _ NEAR Ġ= Ġ"${ NAMESPACE } Templates / Public / Route Planner Service / RT PI Map Handler . ash x ? ne = 5 3 . 6 5 0 0 0 0 ,- 6 . 0 0 0 0 0 0 & sw = 5 3 . 0 5 0 0 0 0 ,- 6 . 7 0 0 0 0 0 & zoom = 1 3 & c zoom = 1 6 & r json = true " ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ TIME TABLE Ġ= Ġ"${ NAMESPACE } Your - Jo urney 1 / Time tables / All - Time tables /% s /" ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ LAST _ UPDATE Ġ= Ġ" https :// dub lin - bus - 8 6 3 3 f . app spot . com / last Update " ĊĊĠĠĠ Ġprivate Ġconst Ġval ĠAPI _ URL _ BASE _ STORAGE Ġ= Ġ" https :// storage . googleapis . com / dub lin - bus /" ĊĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ STORAGE _ ROUT ES Ġ= Ġ"${ API _ URL _ BASE _ STORAGE } routes . gz ?" ĊĠĠĠ Ġconst Ġval ĠAPI _ URL _ STORAGE _ STOP S Ġ= Ġ"${ API _ URL _ BASE _ STORAGE } stops . gz ?" ĊĊĠĠĠ Ġconst Ġval ĠLAT IT UDE Ġ= Ġ 5 3 . 3 4 7 4 ĊĠĠĠ Ġconst Ġval ĠLONG IT UDE Ġ= Ġ- 6 . 2 5 9 6 2 ĊĊĠĠĠ Ġconst Ġval ĠRAD IUS _ LAT _ LONG Ġ= Ġ 1 2 2 ĊĊĠĠĠ Ġfun Ġget LatLng Default (): ĠLat Lng Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLat Lng ( LAT IT UDE , ĠLONG IT UDE ) ĊĠĠĠ Ġ} Ċ } Ċ