Need help with creating minimap path for streets

Hello everyone, recently I’ve been trying to crate a minimap that would display right directions to the place. this is what i am talking about:
image

currently, i have a minimap and a pathfinding but idk how to combine these two

for anyone wondering, I think the problem was car