Skip to content

Commit

Permalink
Merge pull request #23 from alexanderquispe/fix_radius
Browse files Browse the repository at this point in the history
Fix radius
  • Loading branch information
TJhon authored Jul 8, 2023
2 parents 7ed9d95 + 4681e94 commit 9f74653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osrmareas/areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def get_routes(
pd.concat([all_routes_df, get_osrm_route(center1, final1)])

if filter_km:
all_routes_df_crop = all_routes_df.query('dist_driving_km <= @radius_km')
return all_routes_df_crop
crop = all_routes_df.query(f'dist_driving_km <= {radius_km / 1000}')
return crop

return all_routes_df

Expand Down

0 comments on commit 9f74653

Please sign in to comment.