-
Notifications
You must be signed in to change notification settings - Fork 14
Feedback API
Saksham66 edited this page Sep 23, 2021
·
3 revisions
If you want to send feedback for search and selection user made you can use this api and it will improve your search result.
MapmyIndiaFeedback mapmyIndiaFeedback = MapmyIndiaFeedback.builder()
.typedKeyword("Map")
.eLoc("mmi000")
.locationName("Map")
.index(1)
.longitude(77.0)
.latitude(28.0)
.userName(userName)
.appVersion(BuildConfig.VERSION_NAME)
.build();
MapmyIndiaFeedbackManager.newInstance(mapmyIndiaFeedback).call(new OnResponseCallback<Void>() {
@Override
public void onSuccess(Void response) {
//Handle response
}
@Override
public void onError(int code, String message) {
//Handle error
}
});
val mapmyIndiaFeedback = MapmyIndiaFeedback.builder()
.typedKeyword("Map")
.eLoc("mmi000")
.locationName("Map")
.index(1)
.longitude(77.0)
.latitude(28.0)
.userName(userName)
.appVersion(BuildConfig.VERSION_NAME)
.build()
MapmyIndiaFeedbackManager.newInstance(mapmyIndiaFeedback).call(object : OnResponseCallback<Void?> {
override fun onSuccess(response: Void?) {
//Success
}
override fun onError(code: Int, message: String) {
//Handle Error
}
})
-
typedKeyword (String)
: The string that was searched. Must be 2 characters or more. -
eLoc (String)
: eLoc of the location that was selected. Must be exactly 6 characters. -
index (Integer)
: the index of the selected object that was returned from the search. -
userName (String)
: the username of the user that’s logged in. -
appVersion (String)
: the version of the app that was used to make the request.
-
longitude (Double)
: the longitude of the location from where the search is made. The longitude must be a double value, must not start with 0. -
latitude (Double)
: the latitude of the location from where the search is made. The latitude must be a double value, must not start with 0 and must not be larger than the longitude. -
locationName (String )
: name of the location that was selected.
- 201: To denote that the feedback was successfully created.
- 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.
- 201: Feedback submitted.
- 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.
The response of this API would be empty. Success would be denoted by the response codes and error would be denoted with the response codes.
For any queries and support, please contact:
Email us at [email protected]
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2020. 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