Skip to main content

PCMSGetPOIAlongRouteResult

Contents

Syntax

int PCMSGetPOIAlongRouteResult(
  Trip trip,
  int result,
  char* stopBuffer,
  int bufSize,
  int* distanceFromOrigin,
  int* timeFromOrigin,
  float* pFuelPrice,
  char* amenityBuffer,
  int amenityBufSize
)

Parameters

  • Trip trip – Handle to a trip.
  • int result – Index of the result.
  • char* stopBuffer – Character buffer that will be filled with the geocodable stop string for the POI.
  • int bufSize – Size of the character buffer.
  • int* pDistanceFromOrigin – Integer where this POI’s distance from the trip’s origin will be put. This distance is the total driving distance to get to this POI, not an air distance.
  • int* pTimeFromOrigin – Integer where this POI’s time in minutes from the trip’s origin will be put. The time from origin is only calculated when the search was executed with “Time From Origin” sort order. Otherwise, the time defaults to zero.
  • float* pFuelPrice – Floating point value where the POI’s fuel price (if it has one) will be put. Fuel prices are only provided on specific POIs with specific fuel providers in North America. If there is no valid fuel price for a POI, the value will be -1.
  • char* amenityBuffer – A string that will be filled with the list of amenities this POI has. Not all POIs will have an amenity list. Those that do will return a pipe ("|") delimited list of amenities that are available.
  • int amenityBufSize – Size of the amenity buffer.

Description

Gets a Place of Interest (POI) from a search conducted along a route. For example, using PCMSFindFuelStopsAlongRoute. The function returns a fully geocodable stop string that can be used to add this POI to a route. It also provides the POI’s calculated distance from the origin and time in minutes from the origin.

Note: The parameter distanceFromOrigin returns miles x 1000. For example, if the trip is 20.3 miles, distanceFromOrigin will return 20300.

Return Values

  • Zero (0) indicates successful retrieval of the requested POI.
  • A negative value indicates an error has occurred.

Supported Since: PC*Miler Connect 29

Category: Find Places Along Route (FPAR)

Last updated July 8, 2025.
Contents