How to get a PlaceCategory Name?

Anonymous
03-01-2005, 05:27 PM
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 :oops:

Any help, please?
Thanks in advance.

Mohamed

Anonymous
03-02-2005, 04:11 AM
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

 
Web mp2kmag.com
mapforums.com