Closed LuciaCam closed 1 week ago
Hello,
I have tried to use the return_passages new feature, but it is returning passages that aren't crossed by the maritime path. Here is an example:
import searoute as sr import geopandas as gpd import folium traj = sr.searoute([52.99, 25.01], [-61.87, 17.15], append_orig_dest=True, restrictions=['northwest', 'chili'], return_passages=True) print(traj['properties']['traversed_passages']) gdf = gpd.GeoDataFrame.from_features([traj]) gdf = gdf.set_crs("EPSG:4326") m = folium.Map(location=[0, 0], zoom_start=2) folium.GeoJson(gdf).add_to(m) m
The resulting traversed passages are:
['gibraltar', 'panama', 'sunda', 'malacca', 'ormuz', 'chili', 'suez', 'bosporus', 'babalmandab', 'south_africa']
When they should only be:
['gibraltar', 'suez', 'babalmandab', 'ormuz']
Here is a picture of the trajectory:
Thank you for your help!
Hi @LuciaCam , true, looks like the the new version is not fixing it. Will commit the new patch soon.
Thanks for the prompt response and fix @genthalili , awesome job!
Hello,
I have tried to use the return_passages new feature, but it is returning passages that aren't crossed by the maritime path. Here is an example:
The resulting traversed passages are:
['gibraltar', 'panama', 'sunda', 'malacca', 'ormuz', 'chili', 'suez', 'bosporus', 'babalmandab', 'south_africa']
When they should only be:
['gibraltar', 'suez', 'babalmandab', 'ormuz']
Here is a picture of the trajectory:![image](https://github.com/genthalili/searoute-py/assets/114501538/188afa2d-a5ec-493a-8102-7cc0a5021731)
Thank you for your help!