Metadata-Version: 2.4
Name: geopapyrus
Version: 0.1.1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Typing :: Typed
Classifier: Intended Audience :: Developers
License-File: LICENSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# GeoPapyrus

Small python project, that binds 2 functions from rust library [geo](https://github.com/georust/geo): 
- distance_haversine_m
- distance_geodesic_m

### Usage
Install: `pip install geopapyrus`

```python
import geopapyrus

res = geopapyrus.distance_haversine_m(
    55.793246, 37.799445, 55.803140, 37.798920
)

assert res == 1100.3792724609375

res = geopapyrus.distance_geodesic_m(
    55.793246, 37.799445, 53.361012, 58.958361
)

assert res == 1388998.3696851355
```

### Performance
[Source code](https://github.com/TeaDove/geopapyrus/blob/master/pytests/test_distance.py#L53)
```shell 
python 0.525 ns
rust_haversine 0.135 ns
rust_geodesic 0.135 ns
```
