Create a mileage input form where an organisation can add their mileage records. This is done using the "add" method of the feature_api as shown below:-
{
"feature_type" : "distance_record",
"distance" : "<distance in METRES so divide miles by 0.000621>"
"org_id" : "A unique that the organisation will be given, test with ORG1/ORG2/ORG3/ORG4",
"org_rider": "Name of rider or the whole organisation"
}
Then display the mileages in a leaderboard using the report "leaderboard". This is done using the reporting_api and method run_report:-
{
"report_name" : "leaderboard"
}
It will return an array of leaderboard attributes.
Create a mileage input form where an organisation can add their mileage records. This is done using the "add" method of the feature_api as shown below:-
Then display the mileages in a leaderboard using the report "leaderboard". This is done using the reporting_api and method run_report:-
It will return an array of leaderboard attributes.