I have a route (represented by StringLine) and a location (Point) and I need to find the progress of the location in the route. The progress is the distance in meters from the begning of the route. The location will not necessarily be excactly on the line so I take a little buffer (lats say 30m).
This is what I got so far though after testing a bit I think this is not the correct solution
if point.buffer(float(radius_in_meters)/100000).intersects(route):
distance = route.project(point) * 100000
I'm new to this stuff and i really hope i wont have to implement it my self.
P.S I have no sentiments for shapely so if there is a different recommanded package for python it's also fine.