Added gps distance function support.