Route Report Summary¶
This API allows you to get the reports falls on the route on the basis of input routeId. It allows to get Traffic, Road Condition and Safety reports in the response.
Java¶
MapplsRouteSummary mapplsRouteSummary = MapplsRouteSummary.builder()
.routeId(routeId)
.build();
MapplsRouteSummaryManager.newInstance(mapplsRouteSummary).call(new OnResponseCallback<RouteReportSummaryResponse>() {
@Override
public void onSuccess(RouteReportSummaryResponse routeReportSummaryResponse) {
//Handle Success Response
}
@Override
public void onError(int i, String s) {
//Handle Failure
}
});
Kotlin¶
val mapplsRouteSummary = MapplsRouteSummary.builder()
.routeId(routeId)
.build()
MapplsRouteSummaryManager.newInstance(mapplsRouteSummary)
.call(object : OnResponseCallback<RouteReportSummaryResponse?> {
override fun onSuccess(routeReportSummaryResponse: RouteReportSummaryResponse?) {
//Handle Success Response
}
override fun onError(i: Int, s: String) {
//Handle Failure
}
})
Request Parameters¶
Mandatory Parameter¶
routeId(String)
: The alphanumeric routeId of the route.
Optional Parameter¶
routeIdx(Integer)
: provide routeIdx to get the report on selected route only. By default response for all routes are returned.currentNode(String)
: accepts the nodeId to get reports on the required node onlyisGroup(Integer)
: This parameter enables to get the reports group by category. To the get the grouped response set the value to 1. By default reports are sorted in response as per route navigation direction.categories(String...)
: provide list of category ids to get the reports of the required categories. Parent and childCategory are accepted.
Response Code (as HTTP response code)¶
Success:¶
- 200: To denote a successful API call.
- 204: To denote the API was a success but no results were found.
Client side issues:¶
- 400: Bad Request, User made an error while creating a valid request.
- 401: Unauthorized, Developer’s key is not allowed to send a request with restricted parameters.
- 403: Forbidden, Developer’s key has hit its daily/hourly limit.
Server-Side Issues:¶
- 500: Internal Server Error, the request caused an error in our systems.
- 503: Service Unavailable, during our maintenance break or server downtimes.
Response Messages (as HTTP response message)¶
- 200: Success.
- 204: No matches were found for the provided query.
- 400: Something’s just not right with the request.
- 401: Access Denied.
- 403: Services for this key has been suspended due to daily/hourly transactions limit.
- 500: Something went wrong.
- 503: Maintenance Break.
Response parameters¶
routes(List<RouteReport>)
: Array of Reports.
Route Report Response Object¶
index(Long)
: The index of the report lying along the route.routeId(String)
:reportDetails(List<ReportDetails>)
:
Report Details Response Object¶
id(String)
: Unique identifier of the report.parentCategory(String)
: Parent category name of the report.childCategory(String)
: Child category name of the report.address(String)
: Place address of the report.latitude(Double)
: Latitude of the report.longitude(Double)
: Longitude of the reportnodeIdx(Long)
: Node index of route. Only available with nodeId input parameter.status(String)
: Status of the report i.e. Published, Unpublished.addedByName(String)
: User name of the user added the report.addedBy(String)
: User id of the user added the report.expiry(Long)
: Expiry time of the report in epoch format.usersCount(Long)
: Number of the users reported the reportdescription(String)
: Description about the report.parentCategoryId(Integer)
: Parent category code of the report.childCategoryId(Integer)
: Child category code of the report.userProfileIcon(String)
: Profile icon image name of the the user added the report.
To get Report Icons
1. getReportIcon(pixel)
: Complete url of Reported category Icon. Below are the possible values of pixel:
- ReportCriteria.ICON_24_PX
- ReportCriteria.ICON_36_PX
- ReportCriteria.ICON_48_PX
- ReportCriteria.ICON_54_PX
2. getParentReportIcon(pixel)
: Complete url of Parent Catoegory Icon. Below are the possible values of pixel:
- ReportCriteria.ICON_24_PX
- ReportCriteria.ICON_36_PX
- ReportCriteria.ICON_48_PX
- ReportCriteria.ICON_54_PX
For any queries and support, please contact:
Email us at apisupport@mappls.com
Support
Need support? contact us!