Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

Canada VS US !!

This is a discussion on Canada VS US !! within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm working with MapPoint on Canadian data. I'm trying to match a Postal Code from an address using de ...

  1. #1
    Remy is offline Junior Member White Belt
    Join Date
    Jun 2003
    Posts
    6

    Canada VS US !!

    Hi,

    I'm working with MapPoint on Canadian data. I'm trying to match a Postal Code from an address using de FindAdressResult method. My VB code works well with US address and give me back the ZIP code without problem but with canadian data I can't get the Postal Code.

    Is there a way to obtain the postal code from an address in Canada or is the data from the US more complete than the one from Canada ?

    Here is the VB code I use to get the postal code from the address :

    Option Explicit

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objLoc As MapPoint.Location


    Sub ReturnPostalCode()

    'Set up the application
    Set objMap = objApp.ActiveMap
    objApp.Visible = False
    objApp.UserControl = True

    'Find an address
    Set objLoc = objMap.FindAddressResults("4535 Papineau", "Montréal", , "QC", , geoCountryCanada)(1)



    'Return the postal code of the parsed address

    Excel.Cells(2, 1) = objLoc.StreetAddress.PostalCode
    Excel.Cells(2, 2) = objLoc.StreetAddress.City
    Excel.Cells(2, 3) = objLoc.StreetAddress.Street
    MsgBox objLoc.StreetAddress.PostalCode

    End Sub


    Thanks

    Remy

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Postal Codes

    The code below works for US. For Canada postal codes come back empty. FindPlaceResults does not work better than FindAddressResults. Anybody have any suggestion?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Canada Maps
    By cvitale44 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-10-2004, 06:33 AM
  2. Hide Canada and Mexico
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-22-2004, 08:00 AM
  3. Canada Demographic Data
    By JRussell in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-08-2004, 04:28 PM
  4. Canada Import Data
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-01-2003, 10:26 AM
  5. setting addresses in canada,
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-22-2003, 08:27 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36