What escada said. :slight_smile: Also, if you find that your PostgreSQL database lacks the necessary information (e.g. because it only has a pure graph representation or pairs of coordinates), you need to look into changing the schema and/or import logic. OpenStreetMap data itself certainly contains the necessary information (way geometries) to calculate this information.