geo-mapper-api 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/PKG-INFO +14 -8
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/README.md +14 -8
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/pyproject.toml +1 -1
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/PKG-INFO +14 -8
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/setup.cfg +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api/__init__.py +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api/converters.py +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api/filters.py +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api/inrix_to_osm.py +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/SOURCES.txt +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/dependency_links.txt +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/requires.txt +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/top_level.txt +0 -0
- {geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/tests/test_run.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: geo_mapper_api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A simple API for matching geospatial data to OSM IDs
|
|
5
5
|
Author-email: JP Talusan <jptalusan@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/jptalusan/geospatial_mapper
|
|
@@ -16,9 +16,10 @@ Provides-Extra: dev
|
|
|
16
16
|
Requires-Dist: pytest; extra == "dev"
|
|
17
17
|
|
|
18
18
|
# Setup
|
|
19
|
-
This requires `python>=3.9` but pretty specific versions of packages.
|
|
19
|
+
This requires `python>=3.9` but pretty specific versions of packages.
|
|
20
|
+
> If this fails, try to create a new virtual environment with python 3.9 specifically for this package.
|
|
20
21
|
```
|
|
21
|
-
pip install
|
|
22
|
+
pip install geo_mapper_api
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
# Requirements
|
|
@@ -69,11 +70,16 @@ While the `geojson` data should have the following features:
|
|
|
69
70
|
# Usage
|
|
70
71
|
As long as you have both the maprelease-osmconflation and maprelease-geojson for a particular area, then it should just work. It requires the county name.
|
|
71
72
|
```bash
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
from geo_mapper_api import inrix_to_osm
|
|
74
|
+
|
|
75
|
+
DATA_DIR = "./data"
|
|
76
|
+
geojson_path = os.path.join(DATA_DIR, 'USA_Tennessee.geojson')
|
|
77
|
+
csv_path = os.path.join(DATA_DIR, 'USA_Tennessee.csv')
|
|
78
|
+
county_name = ['WILLIAMSON']
|
|
79
|
+
|
|
80
|
+
if __name__ == '__main__':
|
|
81
|
+
df = inrix_to_osm.parallel(geojson_path, csv_path, county_name, threshold_distance=25)
|
|
82
|
+
df.to_csv(f"{DATA_DIR}/williamson_county_tn_inrix_osm.csv", index=False)
|
|
77
83
|
```
|
|
78
84
|
`df` should have a column named county for each of the specified county and then the mapping, see the following example.
|
|
79
85
|
| Feature | Type | Example |
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Setup
|
|
2
|
-
This requires `python>=3.9` but pretty specific versions of packages.
|
|
2
|
+
This requires `python>=3.9` but pretty specific versions of packages.
|
|
3
|
+
> If this fails, try to create a new virtual environment with python 3.9 specifically for this package.
|
|
3
4
|
```
|
|
4
|
-
pip install
|
|
5
|
+
pip install geo_mapper_api
|
|
5
6
|
```
|
|
6
7
|
|
|
7
8
|
# Requirements
|
|
@@ -52,11 +53,16 @@ While the `geojson` data should have the following features:
|
|
|
52
53
|
# Usage
|
|
53
54
|
As long as you have both the maprelease-osmconflation and maprelease-geojson for a particular area, then it should just work. It requires the county name.
|
|
54
55
|
```bash
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
from geo_mapper_api import inrix_to_osm
|
|
57
|
+
|
|
58
|
+
DATA_DIR = "./data"
|
|
59
|
+
geojson_path = os.path.join(DATA_DIR, 'USA_Tennessee.geojson')
|
|
60
|
+
csv_path = os.path.join(DATA_DIR, 'USA_Tennessee.csv')
|
|
61
|
+
county_name = ['WILLIAMSON']
|
|
62
|
+
|
|
63
|
+
if __name__ == '__main__':
|
|
64
|
+
df = inrix_to_osm.parallel(geojson_path, csv_path, county_name, threshold_distance=25)
|
|
65
|
+
df.to_csv(f"{DATA_DIR}/williamson_county_tn_inrix_osm.csv", index=False)
|
|
60
66
|
```
|
|
61
67
|
`df` should have a column named county for each of the specified county and then the mapping, see the following example.
|
|
62
68
|
| Feature | Type | Example |
|
|
@@ -73,4 +79,4 @@ As long as you have both the maprelease-osmconflation and maprelease-geojson for
|
|
|
73
79
|
|
|
74
80
|
# Development
|
|
75
81
|
Test data might be proprietary but these are just the maprelease data from Inrix.
|
|
76
|
-
Please the csv and geojson in the `tests/data` folder and name them `test.csv` and `test.geojson`. Pytest should succeed.
|
|
82
|
+
Please the csv and geojson in the `tests/data` folder and name them `test.csv` and `test.geojson`. Pytest should succeed.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "geo_mapper_api"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "A simple API for matching geospatial data to OSM IDs"
|
|
9
9
|
authors = [{ name="JP Talusan", email="jptalusan@gmail.com" }]
|
|
10
10
|
readme = "README.md"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: geo_mapper_api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A simple API for matching geospatial data to OSM IDs
|
|
5
5
|
Author-email: JP Talusan <jptalusan@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/jptalusan/geospatial_mapper
|
|
@@ -16,9 +16,10 @@ Provides-Extra: dev
|
|
|
16
16
|
Requires-Dist: pytest; extra == "dev"
|
|
17
17
|
|
|
18
18
|
# Setup
|
|
19
|
-
This requires `python>=3.9` but pretty specific versions of packages.
|
|
19
|
+
This requires `python>=3.9` but pretty specific versions of packages.
|
|
20
|
+
> If this fails, try to create a new virtual environment with python 3.9 specifically for this package.
|
|
20
21
|
```
|
|
21
|
-
pip install
|
|
22
|
+
pip install geo_mapper_api
|
|
22
23
|
```
|
|
23
24
|
|
|
24
25
|
# Requirements
|
|
@@ -69,11 +70,16 @@ While the `geojson` data should have the following features:
|
|
|
69
70
|
# Usage
|
|
70
71
|
As long as you have both the maprelease-osmconflation and maprelease-geojson for a particular area, then it should just work. It requires the county name.
|
|
71
72
|
```bash
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
from geo_mapper_api import inrix_to_osm
|
|
74
|
+
|
|
75
|
+
DATA_DIR = "./data"
|
|
76
|
+
geojson_path = os.path.join(DATA_DIR, 'USA_Tennessee.geojson')
|
|
77
|
+
csv_path = os.path.join(DATA_DIR, 'USA_Tennessee.csv')
|
|
78
|
+
county_name = ['WILLIAMSON']
|
|
79
|
+
|
|
80
|
+
if __name__ == '__main__':
|
|
81
|
+
df = inrix_to_osm.parallel(geojson_path, csv_path, county_name, threshold_distance=25)
|
|
82
|
+
df.to_csv(f"{DATA_DIR}/williamson_county_tn_inrix_osm.csv", index=False)
|
|
77
83
|
```
|
|
78
84
|
`df` should have a column named county for each of the specified county and then the mapping, see the following example.
|
|
79
85
|
| Feature | Type | Example |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{geo_mapper_api-0.1.1 → geo_mapper_api-0.1.2}/src/geo_mapper_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|