How to use SearchOption STREET_HNRPOSITION
Posted: Mon Oct 30, 2017 3:21 pm
Hello everybody,
I am currently dealing with address infomation, which includes house numbers in the street field.
For instance like in the following SOAP call:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<findAddress xmlns="http://types.xlocate.xserver.ptvag.com" xmlns:ns2="http://xlocate.xserver.ptvag.com" xmlns:ns3="http://baseservices.service.jabba.ptvag.com" xmlns:ns4="http://wrappertypes.service.jabba.ptvag.com" xmlns:ns5="http://common.xserver.ptvag.com" xmlns:ns6="http://exception.core.jabba.ptvag.com">
<Address_1 houseNumber="" street="HAHNENFUSSWEG 26" city2="" city="BOCHUM" postCode="44797" country="D"/>
<ArrayOfSearchOptionBase_2>
<ns2:SearchOptionBase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns2:SearchOption" param="STREET_HNRPOSITION" value="0"/>
</ArrayOfSearchOptionBase_2>
<ArrayOfSortOption_3/>
<ArrayOfResultField_4/>
<CallerContext_5>
<ns3:wrappedProperties>
<ns3:CallerContextProperty value="PTV_MERCATOR" key="CoordFormat"/>
<ns3:CallerContextProperty value="default" key="Profile"/>
</ns3:wrappedProperties>
</CallerContext_5>
</findAddress>
</soap:Body>
</soap:Envelope>
No matter which value I provide for STREET_HNRPOSITION I always get a response with house number 26.
<ns0:ResultAddress classificationDescription="HIGH" detailLevelDescription="HNRINTERPOLATED" totalScore="87" countryCapital="Berlin" appendix="" adminRegion="Bochum" houseNumber="26" street="Hahnenfußweg" city2="Stiepel" city="Bochum" postCode="44797" state="Nordrhein-Westfalecode" country="D">
I understand why this happens with values 2 and 3 but for values 0 or 1 I do not expect a house number in the response according to what is written in the API-description of the parameter.
Any idea why this is happening ?
Regards
Metin Kahraman
Hermes Germany GmbH
I am currently dealing with address infomation, which includes house numbers in the street field.
For instance like in the following SOAP call:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<findAddress xmlns="http://types.xlocate.xserver.ptvag.com" xmlns:ns2="http://xlocate.xserver.ptvag.com" xmlns:ns3="http://baseservices.service.jabba.ptvag.com" xmlns:ns4="http://wrappertypes.service.jabba.ptvag.com" xmlns:ns5="http://common.xserver.ptvag.com" xmlns:ns6="http://exception.core.jabba.ptvag.com">
<Address_1 houseNumber="" street="HAHNENFUSSWEG 26" city2="" city="BOCHUM" postCode="44797" country="D"/>
<ArrayOfSearchOptionBase_2>
<ns2:SearchOptionBase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns2:SearchOption" param="STREET_HNRPOSITION" value="0"/>
</ArrayOfSearchOptionBase_2>
<ArrayOfSortOption_3/>
<ArrayOfResultField_4/>
<CallerContext_5>
<ns3:wrappedProperties>
<ns3:CallerContextProperty value="PTV_MERCATOR" key="CoordFormat"/>
<ns3:CallerContextProperty value="default" key="Profile"/>
</ns3:wrappedProperties>
</CallerContext_5>
</findAddress>
</soap:Body>
</soap:Envelope>
No matter which value I provide for STREET_HNRPOSITION I always get a response with house number 26.
<ns0:ResultAddress classificationDescription="HIGH" detailLevelDescription="HNRINTERPOLATED" totalScore="87" countryCapital="Berlin" appendix="" adminRegion="Bochum" houseNumber="26" street="Hahnenfußweg" city2="Stiepel" city="Bochum" postCode="44797" state="Nordrhein-Westfalecode" country="D">
I understand why this happens with values 2 and 3 but for values 0 or 1 I do not expect a house number in the response according to what is written in the API-description of the parameter.
Any idea why this is happening ?
Regards
Metin Kahraman
Hermes Germany GmbH