Coverage for src/overturetoosm/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-07-22 06:43 -0400

1r"""Convert Overture's `places`, `buildings`, and `addresses` features to OSM tags. 

2 

3`overturetoosm` is a Python package to convert objects tagged in the 

4Overture schema for use in OSM. Only Overture's `places`, `buildings`, 

5and `addresses` layers are currently supported. 

6 

7Links: 

8* [Project GitHub](https://github.com/whubsch/overturetoosm) 

9* [Documentation](https://whubsch.github.io/overturetoosm/) 

10* [PyPI](https://pypi.org/project/overturetoosm/) 

11 

12The package also allows you to use the module directly from the command line. 

13With the `overturemaps` Python package installed, you can download and convert 

14Overture data to OSM in two lines of code. 

15 

16```bash 

17$ python -m overturemaps download --bbox=-71.068,42.353,-71.058,42.363 \\ 

18 -f geojson --type=place -o boston.geojson 

19$ python -m overturetoosm place -i boston.geojson --in-place --confidence 0.9 

20``` 

21""" 

22 

23from . import addresses, buildings, objects, places, resources, segments, utils 

24from .addresses import process_address 

25from .buildings import process_building 

26from .places import process_place 

27from .utils import process_geojson 

28 

29__all__ = [ 

30 "process_place", 

31 "process_building", 

32 "process_address", 

33 "process_geojson", 

34 "places", 

35 "buildings", 

36 "addresses", 

37 "objects", 

38 "segments", 

39 "utils", 

40 "resources", 

41]