Page 1 of 1

Waypoint from address

Posted: Mon Nov 26, 2018 2:50 pm
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

Re: Waypoint from address

Posted: Mon Nov 26, 2018 3:09 pm
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, };

Re: Waypoint from address

Posted: Mon Nov 26, 2018 4:50 pm
by oostadr
hi,
I've added an service reference to:

https://xlocate-eu-n-test.cloud.ptvgrou ... ocate?WSDL

Re: Waypoint from address

Posted: Wed Nov 28, 2018 10:05 am
by oostadr
Is there someone who could provide me an C# example to start with API Server 2 and XLocate?

Re: Waypoint from address

Posted: Mon Dec 03, 2018 12:12 pm
by Bernd Welter
XLocate2.zip
Quick and dirty: sample based on c.
Supports searchByTextRequest and SearchByAddressRequest
(742.02 KiB) Downloaded 237 times
very "basic"...