You can.
As PoI file like Kml or as permanent polyline stored in DB. For second one you need to import kml file from api as new geofence. Probably you can store directly in Db, but need restart server.
Extract what you want from file and you're done.
<ogr2ogr> make live better.
BR
Can we import a KML or GPX file as Polyline?