Syntax 

int PCMSGetNumFPARPOICategories(PCMServerID serv)


Parameters 

PCMServerID serv – The PC*MILER server ID.

 

Description

Gets the number of Places of Interest (POI) categories available for use in Find POIs Along a Route (FPAR) searches.


Return Values

A negative one (-1) indicates an error has occurred. 

Greater than zero indicates the number of POI categories available.

 

Sample Code

/*Gets the search type for rest stops.*/
               int numCat = PCMSGetNumFPARPOICategories(server);
               int poiTypes[10];
               int numTypes = 0;
               for (int i = 0; i < numCat; i++)
               {
                               memset(buffer, 0, BUFLEN);
                               PCMSGetFPARPOICategoryName(server, i, buffer, BUFLEN);
                               if (!strcmp(buffer, "Rest Area (HOS)") ||
                                              !strcmp(buffer, "Truck Services (HOS)")}


Supported Since: PC*MILER Connect 29

Category: Find Places Along Route (FPAR)