This API provides the list of State & City of a country as available in the logixERP.
These are form parameters:
Parameter | Data Type | Required/Optional | Description |
---|---|---|---|
SecureKey | int | Required | It is a Unique key for accessing the API. For secure key email to support team. |
stateCode | String | Optional | State code if mentioned should match with the code as available in the LogixERP. If ‘state’ value is not given then all the states along with cities will be returned. |
countryCode | String | Required | It should be two digits’ country code. Reference is given here. https://goo.gl/wgg9s. |
ON SUCCESS
{
"message": "State available",
"messageType": "Success",
"states":
[
{
"cities": "Delhi",
"code": "DLI",
"name": "Delhi"
},
{
"cities": "Faridabad",
"code": "HRN",
"name": "Haryana"
}
]
}
ON ERROR
{
"message": "Error_Message",
"messageType" : "Error"
}
Error Messages | Description |
---|---|
import java.net.URL;
public class GetGeoLocation {
private static final String ACCESS_URL = API_URL+SECURE_KEY+"&countryCode="+COUNTRYCODE+"&stateCode="+STATECODE;
StringBuffer response = new StringBuffer();
}
}import requests