we're observing some weird behaviour of xLocate Internet when we try to geolocate addresses in the UK.
As you know, we provide a tour planning service ("maiTour") as an add-on to SAP Sales Cloud, and have to geolocate addresses that come out of our customers' systems. We're using the "findAddresses" operation from the XLocate 1.x API.
Now that we have a customer in UK, we observe some puzzling behaviour of the XLocate API:
1. Addresses that have a full postcode will be corrected by XLocate.findAddresses, but the result will only consist of the post code and the country code; the street, housenumber and city will be returned empty.
Example:
XLocate In:
Code: Select all
{
"addr": {
"country": "GB",
"postCode": "G53 6AG",
"city": "SILVERBURN",
"city2": "",
"street": "BARRHEAD ROAD",
"houseNumber": ""
}
}
Code: Select all
{
"$type": "ResultAddress",
"country": "GB",
"state": "",
"postCode": "G53 6AG",
"city": "",
"city2": "",
"street": "",
"houseNumber": "",
"adminRegion": "",
"appendix": "",
"countryCapital": "London",
"totalScore": 100,
"detailLevelDescription": "EXTPOSTCODE",
"classificationDescription": "LOW",
"coordinates": {
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": -482825.05073,
"y": 7514600.4946
}
},
"additionalFields": []
}
Example:
XLocate in (note the wrong post code)
Code: Select all
{
"addr": {
"country": "GB",
"postCode": "G53 6QR",
"city": "SILVERBURN",
"city2": "",
"street": "BARRHEAD ROAD",
"houseNumber": ""
}
}
Code: Select all
{
"$type": "ResultAddress",
"country": "GB",
"state": "Scotland",
"postCode": "EH26 9",
"city": "Penicuik",
"city2": "Silverburn",
"street": "Biggar Road",
"houseNumber": "",
"adminRegion": "Penicuik",
"appendix": "",
"countryCapital": "London",
"totalScore": 41,
"detailLevelDescription": "STREET",
"classificationDescription": "LOW",
"coordinates": {
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": -363862.04651,
"y": 7516122.7815
}
},
"additionalFields": []
}
Example:
XLocate in:
Code: Select all
{
"addr": {
"country": "GB",
"postCode": "G53",
"city": "SILVERBURN",
"city2": "",
"street": "BARRHEAD ROAD",
"houseNumber": ""
}
}
Code: Select all
{
"$type": "ResultAddress",
"country": "GB",
"state": "Scotland",
"postCode": "G53 6",
"city": "Glasgow",
"city2": "",
"street": "Barrhead Road",
"houseNumber": "",
"adminRegion": "Glasgow",
"appendix": "",
"countryCapital": "London",
"totalScore": 66,
"detailLevelDescription": "HNRSECTION",
"classificationDescription": "MEDIUM",
"coordinates": {
"$type": "Point",
"point": {
"$type": "PlainPoint",
"x": -482042.23845,
"y": 7514857.8172
}
},
"additionalFields": []
}
Is there something about this we can influence by setting specific parameters?
Setting POSTCODE_AGGREGATE didn't change anything about the result.
Or do we have to adapt our service to the values returned in the result, like detailLevelDescription?
Kind Regards
Oliver Meyer
nagarro ES GmbH
Westerbachstraße 32
61476 Kronberg im Taunus