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 7 of 7

Canada Airports not "real" airports?

This is a discussion on Canada Airports not "real" airports? within the MapPoint Desktop Discussion forums, part of the Map Forums category; When searching through the list of items near a particular location & using category to look in, I find that ...

  1. #1
    EvetsMostel is offline Member Yellow Belt
    Join Date
    Oct 2005
    Location
    Eugene, OR
    Posts
    30

    Canada Airports not "real" airports?

    When searching through the list of items near a particular location & using category to look in, I find that Canadian Airports are not listed in the Major or minor airports. Is there some reason for this, or just an oversite. And can I work around it somehow? For example, I can find all the instances of car rentals and the Vancover International Airport, but can't find just "Vancover International Airport", under Major or Minor Airport category.

    Steve

  2. #2
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91

    Canada eh

    Get used to these oversights in Canada Steve. Canadian Postal Codes are not 'real' in the same way.

    As for a work around I'm not sure without knowing your goals. However try this snippet of code and you'll see some interesting results. Run it once with the FindPlaceResults as "YVR" Vanc International and you will see the Airport is Found with No Place Category. Run it again with the FindPlaceResults as "SEA" Sea-Tac down the road and over the magic boundary and again the Airport is found but this time with Index 1 as Major Airport.

    If you can make use of the FindPlaceResults method (and the airport codes) you will get your Canadian airports.

    Code:
       Set wk_results = myobj.FindPlaceResults("YVR")
       If wk_results.Count = 0 Then
          wk_result = "No records found. "
          wk_istat = 0
       Else
          Debug.Print "results found: " & Str(wk_results.Count)
    
          For Each wk_obj In wk_results
            wk_str = ""
            
            wk_str = Str(wk_obj.Type) + " " + wk_obj.Location.Name + " - "
            If Not wk_obj.PlaceCategory Is Nothing Then
               wk_str = wk_str + vbCrLf + Str(wk_obj.PlaceCategory.Index) + " / " + wk_obj.PlaceCategory.Name
            Else
               wk_str = wk_str + vbCrLf + "No Index / No Category Name"
            End If
            
            Debug.Print wk_str
          Next
       End If
    you'll need to to the set up for myobj and wk_results.
    Dim myobj as MapPoint.Map
    Dim wk_results as MapPoint.FindResults

    good luck and Ciao,
    Calv1ns

  3. #3
    EvetsMostel is offline Member Yellow Belt
    Join Date
    Oct 2005
    Location
    Eugene, OR
    Posts
    30
    Hmmm... Guess I should have been a bit more specific. I'm using C++ MFC invokeHelper classes that calls the Goto (lat, long) and then FindNearby function. Even though the location is in the middle of the airport, this for some reason never returns the Vancover Airport, no matter how far I widen the search. I can find other airports (minor), but not major ones.

  4. #4
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91
    Steve

    The tools you use are not important to the problem. Whatever tools you use you will not find YVR as a major airport in MapPoint 2004. I'm saying the FindPlaceResults() method using an Airport Code will work to find airports in Canada. You can add some code to your C++ app to use the FindPlaceResults() rather than the FindNearBy() method when processing with Canada. I tested this some more and found it hit and miss. For example YVR and YYC (Calgary) work. YEG (Edmonton) doesn't.


    Now you have me interested! Do you mean that you can find Minor airports in Canada with the FindNearBy() method? I messed with this some more and even in bare MapPoint when you do a FindNearby Places I can not find a single airport around Vancouver (i.e. Boundary Bay, Abbostford, Pitt Medows). But in Washington State I can find even the little Whidby Island Air Park. If you try this notice the blue aiport icon that is on the USA Major and Minor Airports that isn't there for the Canadian ones.

    Ciao,
    Calv1ns

  5. #5
    EvetsMostel is offline Member Yellow Belt
    Join Date
    Oct 2005
    Location
    Eugene, OR
    Posts
    30
    I stand corrected. You cannot find *any* airports in Canada using FindNearby. Increasing out the distance eventually just pulls in airports from the US. My mistake.
    In my case, I have to use FindNearby because I only have the lat, long, not the airport identifier. I orginally thought it would show up but without a catagory, but apparently not because it's not "REAL".

    Steve

  6. #6
    calv1ns's Avatar
    calv1ns is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    91
    Yup - Steve

    Only the people in Canada are 'real.'

    Bonjour!
    Calv1ns

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Quote Originally Posted by calv1ns
    Only the people in Canada are 'real.'
    But also the people in the other parts of the world. I'm pretty sure I'm not virtual

    Even God is real if not declared as integer
    And infinitive if divided by zero

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint exception "Call was rejected by callee"
    By jliao81 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-03-2005, 08:53 AM
  2. Find Airports only?
    By MS4246 in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 03-29-2005, 09:01 AM
  3. Error "overflow execution stack" while readinq a
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 02-18-2005, 02:47 PM
  4. Do I need "Autoroute Europe", if I install "M
    By bigtail in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-24-2004, 12:58 AM
  5. Export "Find nearby places" along a route?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-06-2003, 10:56 AM

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