bmwcarit / barefoot

Java map matching library for integrating the map into software and services with state-of-the-art online and offline map matching that can be used stand-alone and in the cloud.
Apache License 2.0
667 stars 186 forks source link

What is the fraction of an edge/road? #123

Open wangziyuruc opened 6 years ago

wangziyuruc commented 6 years ago

How to understand fraction or (1-fraction)?

smattheis commented 6 years ago

The fraction is a relative definition of a position along an edge/road which is the linear offset between 0 (source) and 1 (target). See here: https://postgis.net/docs/manual-1.4/ST_Line_Interpolate_Point.html