CarPlay - how to update pointsOfInterest in CPPointOfInterestTemplate

I have a CarPlay app displaying a set of POIs using the CPPointOfInterestTemplate. I'd like to update values in the existing POIs (or replace the POIs with new ones).

The only method I see to do this is: setPointsOfInterest()

I can call this, but this appends my new set of POIs rather than completely replacing the existing POIs.

Is there a way to do this?

Thanks!

I will recreate CPPointOfInterestTemplate every time.

You are correct, thanks MeowEM - I had a bug in my POI re-population code. setPointsOfInterest() Does indeed replace the existing POIs.

CarPlay - how to update pointsOfInterest in CPPointOfInterestTemplate
 
 
Q