Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 3.95 KB

Nearby-Report.md

File metadata and controls

83 lines (58 loc) · 3.95 KB

Nearby Reports

Mappls Reports APIs enable the user to report any incidents at any place with predefined categories and get that information on the Map and during Navigation.

Our SDK allows you the developers to get smooth way to access these reports.

try {
 const nearbyReportsResponse = await MapplsGL.RestApi.nearbyReports(params);
  console.log(JSON.stringify(data));
  } catch (e) {
 //error log
  }

Request Parameters

Mandatory Parameter

  1. topLeft(Point): Point with top left latitude longitude
  2. bottomRight(Point):Point with bottom right latitude longitude

Response Code (as HTTP response code)

Success:

  1. 200: To denote a successful API call.
  2. 204: To denote the API was a success but no results were found.

Client side issues:

  1. 400: Bad Request, User made an error while creating a valid request.
  2. 401: Unauthorized, Developer’s key is not allowed to send a request with restricted parameters.
  3. 403: Forbidden, Developer’s key has hit its daily/hourly limit.

Server-Side Issues:

  1. 500: Internal Server Error, the request caused an error in our systems.
  2. 503: Service Unavailable, during our maintenance break or server downtimes.

Response Messages (as HTTP response message)

  1. 200: Success.
  2. 204: No matches were found for the provided query.
  3. 400: Something’s just not right with the request.
  4. 401: Access Denied.
  5. 403: Services for this key has been suspended due to daily/hourly transactions limit.
  6. 500: Something went wrong.
  7. 503: Maintenance Break.

Response Parameter

NearbyReport Response Result Parameters

  1. id (String): id of the report
  2. createdOn (Long): Timestamp when event created
  3. latitude (Double): latitude of the report.
  4. longitude (Double): longitude of the report.
  5. category (String): report category.




For any queries and support, please contact:

Email us at [email protected]

Support Need support? contact us!





@ Copyright 2023 CE Info Systems Ltd. All Rights Reserved.