There are DataFrame data including latitude and longitude.
df = pd.DataFrame([(30.69225,104.04275),(30.69124,104.04281),(30.69050,104.04394),
(30.68979,104.04514),(30.68946,104.04551),(30.68927,104.04572),
(30.68615,104.04617),(30.68483,104.04536),(30.68379,104.04483)])
The distance gap between two consencutive points are: {0.0,112.4,135.8,139.3,50.9,29.2,349.6,165.9,126.3}
I want to get a new DataFrame, where the distance of each data in it is 200 meters to 400 meters.For the above example:
30.69225 104.04275
30.69050 104.04394
30.68927 104.04572
30.68615 104.04617
30.68379 104.04483
The distance gap between two consencutive points are: {0.0,225.4,218.3,349.5,292.0}
(The index in df is: [0,2,5,6,8])
How to do this?