Waypoint from address

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
oostadr
Posts: 6
Joined: Tue Nov 20, 2018 3:18 pm

Waypoint from address

Post by oostadr »

Hi,
I'm new to xServer Api. I want to get the waypoint from the address.
I found out it, I only have the Luxembourg map (60 day trial).
Can I change that?
Other question is, I've the postalcode format for Luxembourg as L-3274
The api cannot find any waypoint for that postalcode.
What do I have to do?



Kind regards, adriaan
Attachments
2018-11-26_1549.png
Joost
Posts: 310
Joined: Fri Apr 25, 2014 1:46 pm

Re: Waypoint from address

Post by Joost »

Hello Adriaan,

If you have registered for an xServer internet test account you should have access to the full Europe map on our test cluster. Which URL are you using when you call xLocate?

About the postal code format:
xLocate 1 is rather strict about the postal codes and want official way of writing witch is without the letter + dash. You have to "clean" the postal codes yourself in your business logic. XLocate 2 is a bit more relaxed on this point. Have a look at https://xserver2-europe-eu-test.cloud.p ... /index.htm and you can try out some of your data.

PS their is a bug in your code when you create the search options. You never copy the param attribute from you earlier defined option. Easier would to be to just use that option:

Code: Select all

var sob = new SearchOptionBase[] { so, };
Joost Claessen
Senior Technical Consultant
PTV Benelux
oostadr
Posts: 6
Joined: Tue Nov 20, 2018 3:18 pm

Re: Waypoint from address

Post by oostadr »

hi,
I've added an service reference to:

https://xlocate-eu-n-test.cloud.ptvgrou ... ocate?WSDL
oostadr
Posts: 6
Joined: Tue Nov 20, 2018 3:18 pm

Re: Waypoint from address

Post by oostadr »

Is there someone who could provide me an C# example to start with API Server 2 and XLocate?
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Waypoint from address

Post by Bernd Welter »

XLocate2.zip
Quick and dirty: sample based on c.
Supports searchByTextRequest and SearchByAddressRequest
(742.02 KiB) Downloaded 333 times
very "basic"...
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