Coordinates without Street No.

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
Bee
Posts: 10
Joined: Thu May 04, 2017 8:43 am

Coordinates without Street No.

Post by Bee »

Is it possible to receive a ptv location with x-coordinates and y-coordinates without specifying a street no.? (For example only specifying a city and a street)

Greetings
Eike
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Coordinates without Street No.

Post by Bernd Welter »

Hello Eike,

sure, you can provide complete input patterns or just subsets or properties.
Depending on the search options the result is a list of alternatives or just a single representant:

This is also described in this post:
http://xserver.ptvgroup.com/forum/viewt ... f=11&t=586
house numberf ranges versus representant
house numberf ranges versus representant
Aggregated postcodes versus representant
Aggregated postcodes versus representant
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:
Bee
Posts: 10
Joined: Thu May 04, 2017 8:43 am

Re: Coordinates without Street No.

Post by Bee »

Hello Bernd,

we are currently using the Service "SearchByTextRequest" from the XLocate Rest API.
(https://xserver2-dashboard.cloud.ptvgro ... s%7C_____7)

How do I set the necessary search params? I assume thats where the requestProfiles are for?

Greetings
Eike
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Coordinates without Street No.

Post by Bernd Welter »

Here we go:
city without street.PNG
street with no housenumber.PNG
This is how it looks like in xServer 2.

There are no parameters given - we try to identify the users requirement.

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:
Bee
Posts: 10
Joined: Thu May 04, 2017 8:43 am

Re: Coordinates without Street No.

Post by Bee »

Hello Bernd,

sorry for the inconvenience, it was my fault. We are currently using the location object which has "referenceCoordinate" and "roadAccessCoordinate". We were only dealing with the "roadAccessCoordinate" which is null if the requested address isn't fully defined. But of course, we are also getting the "referenceCoordinate" which is set, if e.g. only the city in the requested address was defined.

Greetings
Eike
Bee
Posts: 10
Joined: Thu May 04, 2017 8:43 am

Re: Coordinates without Street No.

Post by Bee »

And of course: Thanks for your help!
Post Reply