Find a place in Canada by coding

Anonymous
11-25-2002, 10:40 AM
HI, all

I want to find a place in Canada by code, like this:

goMapApp = createobject("MapPoint.Application")
goMap = goMapApp.ActiveMap
goLoc1 = goMap.Find("2967 Richmond street, ottawa, Canada")

But I have find Null.

Is this the correct format of address: 2967 Richmond street, ottawa, Canada?

If not , Could you show me the address can be find by mappoint?

Thanks!
Henry

dzhong
11-28-2002, 08:52 PM
You may need to add the province name "ON" or "ON-Ontario" and use the method FindAddressResults. Try goMap.FindAddressResults("2967 Richmond street", "ottawa",,"ON-Ontario", "Canada"). The first item in the results should be the address you want.

 
Web mp2kmag.com
mapforums.com