Skip to content

Instantly share code, notes, and snippets.

@afrigis
Last active September 3, 2015 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afrigis/e96c8a5ddf2cb2bf9f3b to your computer and use it in GitHub Desktop.
Save afrigis/e96c8a5ddf2cb2bf9f3b to your computer and use it in GitHub Desktop.
gautrain.mobileServer.fareCalculatorServlet.calculateFare
{
"Host": "127.0.1.1",
"HostAddr": "196.35.231.47",
"HostName": "196.35.231.47",
"ResponseTime": 421796468,
"Result": {
"AdditionalFareTotal": 26,
"BusFareEach": 7,
"FareCalcNotes": [
"Airport Service Fare (applicable to any trips starting or finishing at OR Tambo International Airport on any day of the week).",
"Red Fare (automatically applied when you tag into the fare gates between 06h30 and 07h30 and travel in the direction as indicated in the timetable on any weekday).",
"Orange Fare (automatically applied when you tag into the relevant fare gate between 06h00 and 08h30 (unless a red fare applies) or between 15h30 and 18h00 on weekdays and all day on weekends and public holidays.",
"Green Fare (automatically applied when you tag into the relevant fare gate before 06h00,between 08h30 and 15h30 and after 18h00 on any weekday)."
],
"FareTotal": 90,
"FullMessageText": "Estimated peak time cost: R 90.00\r\nEstimated off-peak time cost: R 78.00\r\nEstimated green-fare cost: R 66.00\r\n\r\nNOTE:\r\nAirport Service Fare (applicable to any trips starting or finishing at OR Tambo International Airport on any day of the week).\r\nRed Fare (automatically applied when you tag into the fare gates between 06h30 and 07h30 and travel in the direction as indicated in the timetable on any weekday).\r\nOrange Fare (automatically applied when you tag into the relevant fare gate between 06h00 and 08h30 (unless a red fare applies) or between 15h30 and 18h00 on weekdays and all day on weekends and public holidays.\r\nGreen Fare (automatically applied when you tag into the relevant fare gate before 06h00,between 08h30 and 15h30 and after 18h00 on any weekday).\r\n",
"GreenFareDiscountRate": 30,
"GreenFareLabel": "Green Fare - less +/- 30%",
"GreenFareTotal": 66,
"OffPeakDiscountRate": 10,
"OffPeakFareTotal": 78,
"OrangeFareLabel": "Orange Fare - less +/- 10%",
"ParkingFareEach": 19,
"RedFareLabel": "Red Fare",
"Routes": [{
"AdditionalFare": 0,
"Fare": 64,
"FromStation": "Hatfield",
"ToStation": "Sandton"
}]
},
"StatusCode": 0,
"Timestamp": "Thu Sep 03 13:01:33 SAST 2015"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment