Custom poi in searchAlongRoute

I have a task to get closest POI along planned route, for example petrol stations, parkings or etc., but I need to search only from custom list i have. Is it possible to do that?
I’ve read geofencing API, but did not find how to get geofences along route.

Do I understand correctly that you need to search within your list of POIs?