Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find with MAPPoint 2001
Message
 
To
28/01/2001 08:05:26
Mark Randle
Thomas James Associates Limited
Nottingham, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00469491
Message ID:
00469552
Views:
11
>We currently have an application in development which calls mappoint 2001.
>
>The problem we have is that we wish to do a call to find or findaddress using just a postcode (Zip Code). The system works great if we use full correct addresses but fails on just postcode.
>
>Running mappoint interactively works with just postcode. Can anyone give any clues as to the call and parameters being used. or do i have to use a postcoding package to convert my postcode to a full address before calling mappoint.
>
>Here is the code we are having to use............................
>
>omapapp=createobject("mappoint.application")
>omap = omapapp.activemap
>oloc = omap.find("15 lady walk,gateford,worksop,nottinghamshire,s81 8ta")'
>oloc2 = omap.find("Edwinstowe House,High Street,Edwinstowe,Nottinghamshire,NG21 9PR")
>
>*** Route
>myroute=omap.activeroute
>osloc=oloc
>odloc=oloc2
>myroute.waypoints.add(osloc)
>myroute.waypoints.add(odloc)
>myroute.calculate
>
>
>This is what we want to do.......................
>
>omapapp=createobject("mappoint.application")
>omap = omapapp.activemap
>oloc = omap.find("s81 8ta")'
>oloc2 = omap.find("NG21 9PR")
>
>*** Route
>myroute=omap.activeroute
>osloc=oloc
>odloc=oloc2
>myroute.waypoints.add(osloc)
>myroute.waypoints.add(odloc)
>myroute.calculate
>
>
>Any help would be apreciated
>
>regards
>
Mark,

The problem is that the postal code isn't enough for the Find method to execute. The help states that if the address is ambiguous it won't work. While in MapPoint itself, entering a postal code will give you an area, it won't work when referencing MapPoint as a COM server. Sorry.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform