Morning All,I've a bit of a side project on the go at the moment purely for education purposes.I am playing with the spatial data type, and want to eventually implement route finding.This got me thinking about tube/train networks. I have long wondered how website like TFL's route planner achieves its results.So I am planning to create a fictional train network - based solely on 2-3 lines.My question is, I think I want to model this using LINESTRING() but does this include distances.Say I have two roads represented as linestring, they intersect in the middle to form an X shape. Does Linestring allow me to work out the distance from the start of any road to the mid point where they intersect? Or do I need a different data type? Do I need to use real life Lat/Long to mark up these networks?As always, help is muchly appreciated.Cheers,Alex
↧