Regardez si PostGreSQL offre une fonction comme celle de Microsoft SQL Server "ShortestLineTo"...