City Building Road Segments Pathfinding

Hello there! I started to make a city building project and I’ve managed to make a road system where you can click on the map (100 x 100 grid) and road segments will auto align according to surrounding road segments. Now I want to add simple pathfinding to vehicles that would drive across the roads.
I’ve just found this A* pathfinding project so I want to ask what would be the best solution here? Would it be a grid based pathfinding? I also would like to add when you make multiple roads and they don’t connect with each other, like this:

Vehicles can’t move across the roads since they aren’t connected.
Thank you for your time!

Best regards, Dom

Hi

It depends on how you represent the roads internally, but I think I would recommend a point graph as that will give you the greatest amount of flexibility.