PHP Dijkstra implementation for using OSM data and PostgreSQL