Git Product home page Git Product logo

ftth_planner's Introduction

Fiber to the Home Planner

This Proof of Concept application that attempts finding a "optimal" fiber network planning for a map area.

The application uses OpenStreetMaps data and parameter provided by the operator to optimize the Fiber-to-the-Home underground cables routes for cost savings. Map The model is designed consider factors such as:

  • Which side of the road would cost less to dig-up
  • The extra cost of digging across the road
  • Obstacles such as bridges, rivers, monuments
  • Cost of fiber per KM
  • Cost of trench per KM
  • Cost of trench to cross the road
  • Cost of equipment
  • Limits of PON/GPON networks
  • Cost of hardware (Street cabinets and new powered decentralize locations)

The model should output a detailed planning along with itemized material and labour estimates.

Relationships Diagram Relationship Diagram

Install

conda config --prepend channels conda-forge
conda create -n ftth_planner --strict-channel-priority osmnx

Running web app

streamlit run ftth_app.py

Know bugs

If you have a idea on how to fix any bug, please send me a pull request.

  • OpenStreetmap data often doesn't contain building address data, so it il not work in areas that have less than 96 addresses registered

  • If building don't have address information we would of course look for the closest trench, but this would be computationally expensive to do for all buildings and all trenches

  • Buildings with address information sometimes do not find the closest trench, not sure why

ftth_planner's People

Contributors

chrismolanus avatar hscunha avatar laurentkalpers avatar tiaan524 avatar tivoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ftth_planner's Issues

Errors when running app

I've tried running the app but get errors below when it tries to return information

TypeError: Passing a set as an indexer is not supported. Use a list instead.
Traceback:
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.dict)
File "/root/ftth_planner/ftth_app.py", line 140, in
detailed_cost, fig = get_fiber_planning(trench_network, building_gdf, g_box )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/ftth_app.py", line 63, in get_fiber_planning
fiber_network, ref_fig = get_fiber_network(ref_trench_network, cost_parameters, ref_building_gdf, ref_g_box)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 221, in get_fiber_network
fiber_network, building_fiber_graph, trenches_gdf = _get_drop_cable_network(building_trenches_with_cabinet_df,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 420, in _get_drop_cable_network
building_drop_cables, trenches_gdf = _find_shortest_path_to_buildings(cabinet_look_up, g_box,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/ftth_planner/fibers.py", line 526, in _find_shortest_path_to_buildings
trenches_gdf.loc[pd.IndexSlice[set(pairs)]]["dig_weight"] = 0.0
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 1178, in getitem
check_dict_or_set_indexers(key)
File "/root/anaconda3/envs/ftth_planner/lib/python3.12/site-packages/pandas/core/indexing.py", line 2774, in check_dict_or_set_indexers
raise TypeError(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.