Can FindAddress return a Formatted Address?

deals with geocoding and reverse geocoding in the context of PTV Geocoding&Places, PTV Geocoding&Places OSM and PTV xLocate 1 and 2
Post Reply
gottjas
Posts: 5
Joined: Tue Dec 06, 2016 3:51 pm

Can FindAddress return a Formatted Address?

Post by gottjas »

Hello,

In a response from calling findAddress, I get back a house number, street, city, etc. Is there any way to get back a formatted address that has the house number and street in the proper order depending on the geographic location? So, for the US/UK, the house number would come first, and DE would have the street name first, then house number.

Thank you,
Jason
User avatar
bocajo
Posts: 45
Joined: Tue Mar 01, 2016 3:05 pm

Re: Can FindAddress return a Formatted Address?

Post by bocajo »

Hi Jason

Unfortunately there is no way in the xLocate 1.x to get back formatted address depending on the the geographic location. It is forseen for xLocate 2.x but it isn't implemented yet.

Regards
Jochen
Jochen Anderer
Manager Engineer
PTV GROUP GERMANY
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Can FindAddress return a Formatted Address?

Post by Bernd Welter »

Hello Jason,

as Jochen mentioned there is no formatted address itself. In fact different customers could expect different styles:
  • should the formatted address contain the STATE property if available?
  • should the house number be in the front for some countries?
  • should the formatted address contain the district if the result is on streetlevel?
But it's not a big thing to implement YOUR style on client side.

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply