I have two datasets, one is a GeoJSON of a highway with around 1509 linestrings. The other is a list of incidents that have occurred along said highway, but, instead of coordinates, the file specifies the kilometer where the incident happended. I.e
incident_id | km | incident_type |
---|---|---|
1 | 10 | vehicle theft |
2 | 152 | dui |
What I need to do is get the coordinates of each incident.
I know that you can calculate the distance between two coordinates using geopy.distance, but is there any way to calculate the coordinates of a point which is x kilometers away from a given set of coordinates?