Interestingly we found that (due to a change in some of our middleware) %20 crept into our postCode field (replacing the space) and was affecting the result, but inconsistently, I couldn't find any similar problems already reported in the forum.
All testing with UK postCode of 'SS5 6BJ' and houseNumber 148
WITH %20 INSTEAD OF SPACE IN POSTCODE
A. Pass in the postCode & houseNumber, we receive HIGH classificationDescription (with ACCURATE coordinates)
B. Pass in the postCode alone, we receive HIGH classificationDescription (with MULTIPLE results, one matching the first 4x characters of the postcode (i.e. 'SS5 6' - coordinates about a mile out), some not even matching (i.e. 'SS5 4'), I don't know why these are being returned)
WITH SPACE (NO %20) IN POSTCODE
C. Pass in the postCode & houseNumber, we receive LOW classificationDescription (with ACCURATE coordinates)
D. Pass in the postCode alone, we receive UNIQUE classificationDescription (with ACCURATE coordinates)
CALLS
A:
Code: Select all
{
"addr": {
"country": "GB",
"postCode": "SS5%206BJ",
"city": "Hockley",
"city2": "",
"street": "Lower Road",
"houseNumber": "148"
},
"options": [],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "default"
}
]
}
}
Code: Select all
{
"addr": {
"country": "",
"postCode": "SS5%206BJ",
"city": "",
"city2": "",
"street": "",
"houseNumber": ""
},
"options": [],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "default"
}
]
}
}
Code: Select all
{
"addr": {
"country": "GB",
"postCode": "SS5 6BJ",
"city": "Hockley",
"city2": "",
"street": "Lower Road",
"houseNumber": "148"
},
"options": [],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "default"
}
]
}
}
Code: Select all
{
"addr": {
"country": "",
"postCode": "SS5 6BJ",
"city": "",
"city2": "",
"street": "",
"houseNumber": ""
},
"options": [],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "default"
}
]
}
}
1. Why are we receiving LOW for test C (with space) and HIGH for test A (with %20)?
2. Why in test B are we receiving results which do not match the first part of the postcode?
We're trying to establish how to code the calls in order to get an accurate response, any advice or suggestions on the matter would be appreciated.
Thanks in advance