Adapted postgis based routing to new api