-
Notifications
You must be signed in to change notification settings - Fork 14
Nearby Reports
Saksham66 edited this page Sep 23, 2021
·
3 revisions
MapmyIndia 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.
This feature is available from v6.8.15
MapmyIndiaNearbyReport mapmyIndiaNearbyReport = MapmyIndiaNearbyReport.builder()
.topLeft(Point.fromLngLat(latLng.getLongitude(), latLng.getLatitude()))
.bottomRight(Point.fromLngLat(latLng2.getLongitude(), latLng2.getLatitude()))
.build();
MapmyIndiaNearbyReportManager.newInstance(mapmyIndiaNearbyReport).call(new OnResponseCallback<NearbyReportResponse>() {
@Override
public void onSuccess(NearbyReportResponse nearbyReportResponse) {
}
@Override
public void onError(int code, String message) {
// Request failed with code and message
}
});
-
topLeft(Point)
: Point with top left latitude longitude -
bottomRight(Point)
:Point with bottom right latitude longitude
- 200: To denote a successful API call.
- 204: To denote the API was a success but no results were found.
- 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.
- 500: Internal Server Error, the request caused an error in our systems.
- 503: Service Unavailable, during our maintenance break or server downtimes.
- 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.
-
id
(String): id of the report -
createdOn
(Long): Timestamp when event created -
latitude
(Double): latitude of the report. -
longitude
(Double): longitude of the report. -
category
(String): report category.
For any queries and support, please contact:
Email us at apisupport@mapmyindia.com
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2021. CE Info Systems Pvt. Ltd. All Rights Reserved. | Terms & Conditions
- Map UI Settings
- Set Country Regions
- Set MapmyIndia MapStyle
- REST API Kit
- MapmyIndia GeoAnalytics
- Place Autocomple Widget
- MapmyIndia Safety Plugin
- MapmyIndia Interactive Layer
- MapmyIndia GeoFence View
- MapmyIndia Safety Strip
- MapmyIndia Place Picker
- MapmyIndia Scalebar Plugin
- ELocation Strategy
- MapmyIndia Direction Widget
- MapmyIndia Nearby Search Widget
- Version History
- Country List