Resolving UK addresses with full post code in xLocate Intern
Posted: Tue Aug 17, 2021 4:14 pm
Hi Bernd and PTV team,
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:
XLocate out:
2. Addresses that have a correct street, housenumber and city, but a wrong or missing post code, will not be found, and replaced by something completely different.
Example:
XLocate in (note the wrong post code)
XLocate out (note: the totalScore of this address is so low that our service rejects it):
3. Addresses that have a correct street, housenumber and city, and only the first part of the post code (the "outward code"; only area and district), will usually be found correctly, and street, housenumber (if present) and city will be correct also in the returned result.
Example:
XLocate in:
XLocate out:
The ideal response would be a mix of case 1 and case 3, i.e. when the post code is correct, not only the coordinates should be returned correctly, but also the address.
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
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