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

How to get a PlaceCategory Name?

This is a discussion on How to get a PlaceCategory Name? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I did a FindNearBy with an ActiveRoute Object. I can read all the POIs near the Route, but I ...

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

    How to get a PlaceCategory Name?

    Hi,

    I did a FindNearBy with an ActiveRoute Object. I can read all the POIs near the Route, but I don't know how to get the PlaceCategory corresponding to each Point Of Interest? I did some tests with no success like :

    - ObjFindResults.PlaceCategory.Name
    - ObjFindResults.item(1).PlaceCategory.Name
    - I do a loop with the ObjMap.Placecategories.count

    So I've tried a lot of things and lost 2 hours without success

    Any help, please?
    Thanks in advance.

    Mohamed

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

    How to find a place category

    Hi,

    Ok, I found the solution this morning.

    I had to get the Object location for each POI's.

    Something like this:

    ObjFindResults comes from a FindNearBy reseach.

    NbFindResults = ObjFindResults.Count

    FOR i = 1 to NbFindResults
    ObjLoc = ObjFindResults.item(i).Location
    IF ObjLoc.PlaceCategory != Null THEN
    Message(ObjLoc.PlaceCategory.Name , ObjFindResults.item(i).Name )
    ENDIF
    Next i

    This works very well and I begin enjoying MapPoint more and more.

    I've seen in some post that we can upgrade MapPoint maps with Autoroute 2005,
    somebody had tested that?


    Many thanks for the moderators.

    Mohamed

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add a PlaceCategory
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 12-19-2002, 09:42 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66