Metadata-Version: 2.4
Name: ObjectNat
Version: 1.4.1
Summary: ObjectNat is an open-source library created for geospatial analysis created by IDU team
License: BSD-3-Clause
License-File: LICENSE.txt
Author: DDonnyy
Author-email: 63115678+DDonnyy@users.noreply.github.com
Requires-Python: >=3.11,<3.13
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: geopandas (>=1.0.1,<2.0.0)
Requires-Dist: loguru (>=0.7.3,<0.8.0)
Requires-Dist: networkx (>=3.4.2,<4.0.0)
Requires-Dist: numpy (>=2.1.3,<3.0.0)
Requires-Dist: pandas (>=2.2.0,<3.0.0)
Requires-Dist: scikit-learn (>=1.4.0,<2.0.0)
Requires-Dist: tqdm (>=4.66.2,<5.0.0)
Description-Content-Type: text/x-rst

ObjectNat
=========

Object-oriented Network Analysis Tools
--------------------------------------

.. |badge-black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: black

.. |badge-pypi| image:: https://img.shields.io/pypi/v/objectnat.svg
   :target: https://pypi.org/project/objectnat/
   :alt: PyPI version

.. |badge-ci| image:: https://github.com/IDUclub/ObjectNat/actions/workflows/ci_pipeline.yml/badge.svg
   :target: https://github.com/IDUclub/ObjectNat/actions/workflows/ci_pipeline.yml
   :alt: CI

.. |badge-codecov| image:: https://codecov.io/gh/DDonnyy/ObjectNat/graph/badge.svg?token=K6JFSJ02GU
   :target: https://codecov.io/gh/DDonnyy/ObjectNat
   :alt: Coverage

.. |badge-license| image:: https://img.shields.io/badge/license-BSD--3--Clause-blue.svg
   :target: https://opensource.org/licenses/BSD-3-Clause
   :alt: License

.. |badge-docs| image:: https://img.shields.io/badge/docs-latest-4aa0d5?logo=readthedocs
   :target: https://iduclub.github.io/ObjectNat/
   :alt: Docs

|badge-black| |badge-pypi| |badge-ci| |badge-codecov| |badge-license| |badge-docs|

`РИДМИ (Russian) <https://github.com/IDUclub/ObjectNat/blob/master/README_RU.rst>`__

.. image:: https://raw.githubusercontent.com/IDUclub/ObjectNat/master/docs/_static/ONlogo.svg
   :align: center
   :width: 400
   :alt: ObjectNat logo


**ObjectNat** is an open-source library developed by the **IDU** team
for spatial and network analysis in urban studies.
The library provides tools for analyzing **accessibility**, **visibility**,
**noise propagation**, and **service provision**.
----

Key Features
------------

Each feature includes a **Jupyter Notebook example** and **full documentation**.

1. **Isochrones and Transport Accessibility**  

   Isochrones represent areas reachable from an origin point within a specified time along a transport network.
   This feature allows the analysis of transport accessibility using pedestrian, road,
   public transport, or multimodal graphs.

   The library supports several methods for building isochrones:

   - **Basic isochrones**: display a single zone reachable within a specified time.
   - **Step isochrones**: divide the accessibility area into time intervals (e.g., 3, 5, 10 minutes).


   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/isochrones.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/isochrones.html>`__

2. **Graph Coverage Zones from Points**

   A function for generating **coverage areas** from a set of origin points using a transport network.
   It computes the area reachable from each point by **travel time** or **distance**,
   then builds polygons using **Voronoi diagrams** and clips them by a given boundary if specified.

   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/coverage.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/coverage.html>`__

3. **Service Provision Analysis**  

   A function to evaluate how well residential buildings and their populations are provided
   with services (e.g., schools, clinics) that have limited **capacity**
   and a defined **accessibility threshold** (in minutes or meters).
   The function models the **balance between supply and demand**,
   assessing how well services meet the needs of nearby buildings within an acceptable time.

   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/provision.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/provision.html>`__

4. **Visibility Analysis**  

   A function for evaluating visibility from a given point or set of points to nearby buildings within a given radius.
   It is used to assess visual accessibility in urban environments.
   A module is also implemented for computing **visibility coverage zones**
   using a dense observer grid (recommended ~1000 points with a 10–20 m spacing).
   Points can be generated along the transport network and distributed across its edges.

   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/visibility.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/visibility.html>`__

5. **Noise Simulation & Noise Frame**

   Simulation of noise propagation from sources, taking into account **obstacles**, **vegetation**,
   and **environmental factors**.

   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/noise.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/noise.html>`__
   🧠 `Detailed theory <https://github.com/DDonnyy/ObjectNat/wiki/Noise-simulation>`__

6. **Point Clusterization**  

   A function for constructing **cluster polygons** based on a set of points using:

   - Minimum **distance** between points.
   - Minimum **number of points** in a cluster.

   The function can also compute the **ratio of service types** in each cluster
   for spatial analysis of service composition.

   📘 `Example <https://iduclub.github.io/ObjectNat/methods/examples/clustering.html>`__
   🔗 `Documentation <https://iduclub.github.io/ObjectNat/methods/clustering.html>`__

----

City Graphs via *IduEdu*
------------------------

For optimal performance, **ObjectNat** is recommended to be used with graphs
created by the `IduEdu <https://github.com/IDUclub/IduEdu>`_ library.

**IduEdu** is an open-source Python library designed for building and processing
complex urban networks based on OpenStreetMap data.


**IduEdu** can be installed via ``pip``::

    pip install IduEdu

Example usage::

    from iduedu import get_4326_boundary, get_intermodal_graph

    poly = get_4326_boundary(osm_id=1114252)
    G_intermodal = get_intermodal_graph(territory=poly, clip_by_territory=True)

----

Installation
------------

**ObjectNat** can be installed via ``pip``::

    pip install ObjectNat

----

Configuration
-------------

You can adjust logging and progress bar output using the config module::

    from objectnat import config

    config.change_logger_lvl("INFO")   # mute debug logs
    config.set_enable_tqdm(False)      # disable tqdm progress bars

----

Contacts
--------

- `NCCR <https://actcognitive.org/>`_ — National Center for Cognitive Research  
- `IDU <https://idu.itmo.ru/>`_ — Institute of Design and Urban Studies  
- `Natalya Chichkova <https://t.me/nancy_nat>`_ — Project Manager  
- `Danila Oleynikov (Donny) <https://t.me/ddonny_dd>`_ — Lead Software Engineer

----

Publications
------------

Coming soon.

