PTV Developer - Locations by Positions

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
Sajmon
Posts: 2
Joined: Fri Jan 09, 2026 12:08 pm

PTV Developer - Locations by Positions

Post by Sajmon »

Hi!

Is it possible to change return model of 'Locations by Position' endpoint?

When we use 'geocoding/v1/locations/by-position/50.25195922538689/19.022483825683594?language=en' in Poland we receive additional context in address.street property:

Code: Select all

"address": {
        "countryName": "Poland",
        "state": "Silesian Voivodeship",
        "province": "Katowice",
        "postalCode": "40-039",
        "city": "Katowice",
        "district": "",
        "subdistrict": "",
        "street": "ulica Powstańców",
        "houseNumber": "28",
        "countryCodeIsoAlpha2": "PL",
        "countryCodeIsoAlpha3": "POL",
        "countryCode": "PL"
      }
"street": "ulica Powstańców"
"ulica" means street - so in case of Poland we receive additional context to this specific field.

So, is there any way to change that? I found that in other countries we do not have such additional info.

Best regards,
Szymon
User avatar
Bernd Welter
Site Admin
Posts: 2984
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: PTV Developer - Locations by Positions

Post by Bernd Welter »

Hello Szymon,

honestly spoken: I do not get the point behind this request. :D

I know that "we always did it like this" is not an argument to avoid change, but what exactly is the benefit of "do not mention the ulica" ? I haven't heard this in 25 years.

Would a postal address in Poland not look like
PTV Logistics
Ul. Stumpf 1
76131 Karlsruhe
or
PTV Logistics
Ulica Stumpf 1
76131 Karlsruhe
I am curious about your feedback!

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:
Sajmon
Posts: 2
Joined: Fri Jan 09, 2026 12:08 pm

Re: PTV Developer - Locations by Positions

Post by Sajmon »

Hello Bernd!

As you said, in Poland both postal addresses are valid :)

I was just curious if there is any way to influence this property.
In our app we use also other geocode providers and we would like to maintain common base model. Users usually do not include ul or ulica as this is like street type property (ulica, aleja, plac)

For example, response from other provider:

Code: Select all

Address components:
street_number	16	
route 	Floriana	
locality	Katowice	political
administrative_area_level_2	Powiat Katowice	political
administrative_area_level_1	Województwo śląskie	political
country	Polska
PL	political
postal_code	40-286
As you can see it does not contain any prefix. In other case we recevie also additional street info, which contains also base name or street without any prefixes

But to be honest it is not a big issue from our side, we can handle this ourselves.

Kind regards,
Szymon
Last edited by Bernd Welter on Mon Jan 12, 2026 7:59 am, edited 1 time in total.
Reason: removed typos
User avatar
Bernd Welter
Site Admin
Posts: 2984
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: PTV Developer - Locations by Positions

Post by Bernd Welter »

Hello Szymon,

at least I can comment on "is there any way to influence this property?" - the answer is : No.
  • We used to have engines which supported the visualization of addresses in various styles but this isn't the case anymore as we wanted to simplify the engine / API.
  • Main goals are: ensure the desired address appears in the result at all. Provide quality criteria in a way that each application can decide by itself which hit is the best.
  • Convenience has no priority, we only return the desired language as this requires additional data.
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