Coordinates without Street No.

deals with geocoding and reverse geocoding

Coordinates without Street No.

Postby Bee » Wed May 31, 2017 12:11 pm

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

Re: Coordinates without Street No.

Postby Bernd Welter » Wed May 31, 2017 12:19 pm

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:
viewtopic.php?f=11&t=586
street housenumber.PNG
house numberf ranges versus representant
postcode aggregate.PNG
Aggregated postcodes versus representant


Best regards
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 870
Joined: Mon Apr 14, 2014 10:28 am

Re: Coordinates without Street No.

Postby Bee » Wed May 31, 2017 1:10 pm

Hello Bernd,

we are currently using the Service "SearchByTextRequest" from the XLocate Rest API.
(https://xserver2-dashboard.cloud.ptvgro ... ocate.html#com.ptvgroup.xserver.xlocate.SearchByAddressRequest%3FTocPath%3DAPI%2520Documentation%7Cservices%7Cxlocate%7CClasses%7C_____7)

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

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

Re: Coordinates without Street No.

Postby Bernd Welter » Wed May 31, 2017 1:21 pm

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
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

https://www.youtube.com/channel/UCgkUli9yGf0gwTDdxbMZ-Kg
User avatar
Bernd Welter
Site Admin
 
Posts: 870
Joined: Mon Apr 14, 2014 10:28 am

Re: Coordinates without Street No.

Postby Bee » Thu Jun 01, 2017 7:11 am

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

Re: Coordinates without Street No.

Postby Bee » Thu Jun 01, 2017 7:12 am

And of course: Thanks for your help!
Bee
 
Posts: 8
Joined: Thu May 04, 2017 8:43 am


Return to PTV xLocateServer