Feedback API
If you want to send feedback for search and selection user made you can use this api and it will improve your search result.
Java
MapplsFeedback feedback = MapplsFeedback.builder()
.typedKeyword("Map")
.mapplsPin("mmi000")
.locationName("Map")
.index(1)
.longitude(77.0)
.latitude(28.0)
.userName(userName)
.appVersion(BuildConfig.VERSION_NAME)
.build();
MapplsFeedbackManager.newInstance(feedback).call(new OnResponseCallback<Void>() {
@Override
public void onSuccess(Void response) {
//Handle response
}
@Override
public void onError(int code, String message) {
//Handle error
}
});
Kotlin
val feedback = MapplsFeedback.builder()
.typedKeyword("Map")
.mapplsPin("mmi000")
.locationName("Map")
.index(1)
.longitude(77.0)
.latitude(28.0)
.userName(userName)
.appVersion(BuildConfig.VERSION_NAME)
.build()
MapplsFeedbackManager.newInstance(feedback).call(object : OnResponseCallback<Void?> {
override fun onSuccess(response: Void?) {
//Success
}
override fun onError(code: Int, message: String) {
//Handle Error
}
})
Request Parameters
Mandatory Parameter
typedKeyword (String)
: The string that was searched. Must be 2 characters or more.mapplsPin (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.
Optional Parameter
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.
Response Code (as HTTP response code)
Success:
- 201: To denote that the feedback was successfully created.
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)
- 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.
Response parameters
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.