I am trying to parse a german address to use with FindAddressResults. I am using MP Europe 2004. Anyone have any success?
Ox
This is a discussion on how to parse a german address? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am trying to parse a german address to use with FindAddressResults. I am using MP Europe 2004. Anyone have ...
I am trying to parse a german address to use with FindAddressResults. I am using MP Europe 2004. Anyone have any success?
Ox
Hi,
FindAddressResults works as espected. Can you please be more specific on what the problem is ?
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
hi!
Here is the code. And it works great for England.
for example:
100 Abbey road, london, england
works fine. But I cant get it to parse most other EU addresses.
Dim oMap As MapPoint.Map
Dim MPLoc As MapPoint.Location
Dim objSA As MapPoint.StreetAddress
objSA = oMap.ParseStreetAddress(myAddString)
MPLoc = oMap.FindAddressResults(objSA.Street, objSA.City, , , , objSA.Country)(1)
Thanks in advance for any help.
An update after some experimenting:
In this app, I am asking the user to enter street,city,country.
The parseStreetAddress does work...more or less. FOr example, in Holland:
Sandinostraat 2013,amsterdam,holland wont work
Sandinostraat,amsterdam,holland wont work either
but 2013 Sandinostraat does work.
I havent tried, but perhaps using one of the other streetAddress object properties, like postal code would work better....<shrug>.
Hi,
I think it is very normal that ParseStreetAddress only work "more or less" because in each country the way of writing an address is different and nobody knows how Microsoft parse it, it is not documented into the help.
But I dont see any reason to use this method because there is the FindAddressResults method and this one works ok. If you wants the user to enter an address string in 1 field then you better parse it yourself but it is better you ask the user to enter street, city, country etc in separate fields.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)