Ionic navigation from gpx file

Hi everyone,
I want to create a function in an app where i use openstreetmap or mapbox(or if you know something better im glad to hear that) where i also can import a gpx file and then use that as navigation with directions just like when you use navigation to go somewhere.

I think it is possible but is it possible in Ionic with Capacitor or Angular?