Name | stmeasures JSON |
Version |
0.0.1.1
JSON |
| download |
home_page | None |
Summary | A library for measuring trajectory similarities. |
upload_time | 2024-12-11 05:42:57 |
maintainer | None |
docs_url | None |
author | Amilcar Meneses, Erika Hernandez |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 TT2024-B106 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
geojson
measurement similarities
mobile devices
mobility patterns
trajectory similarities
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Similar Trajectories Measurements (`stmeasures`)
`stmeasures` is a Python library designed to provide researchers in Geographic Information Systems (GIS) and related fields with simple and efficient tools for measuring the similarity between trajectories. This library supports a variety of use cases, scenarios, and contexts, depending on where, how, and why the trajectories were collected or analyzed.
## Installation
Install it through PyPI:
```sh
pip install stmeasures
```
## Usage
Once installed you can use all functionalites provided by this package.
```py
import stmeasures
dataset = stmeasures.read_file("trajectories.json")
spad_metric = stmeasures.distance(dataset[4], dataset[53]) # Will get you the Spatial Assembling Distance between trajectories
```
### Visualization
Data can be visualized using [`geojsonio`](https://github.com/jwass/geojsonio.py) package.
```py
import stmeasures
import geojsonio
dataset = stmeasures.read_file("trajectories.json")
geojsonio.display(geojsonio.display(stmeasures.geojsonio_contents(trajectories=dataset[50:56]))) # Will display a map with the given trajectories in geojson.io
```
## Key Features
- **Diverse Algorithms:** Includes multiple algorithms such as Hausdorff, Frechet, DTW, LCSS, Euclidean, and SPAD to suit different similarity measurement needs.
- **Flexible Integration:** Offers modular functions and customizable parameters for specific trajectory analysis tasks.
- **Scalable Design:** Suitable for individual comparisons, clustering, and pattern discovery in trajectory datasets.
## Library Overview
The following diagram illustrates the structure and main components of the library:
![Library Structure](https://github.com/user-attachments/assets/cff1f913-684e-4fdb-9ca1-68eb275b6594)
## Use Cases
`stmeasures` can be used in a variety of applications, including:
1. **Trajectory Clustering:** Grouping similar movement patterns, such as vehicle paths or animal migrations.
2. **Outlier Detection:** Identifying unusual trajectories in a dataset.
3. **Pattern Matching:** Finding trajectories that follow a specific path or trend.
4. **Path Optimization Analysis:** Comparing planned and actual paths to optimize logistics or urban planning.
## About the Project
This project is part of a final bachelor's degree research initiative at IPN University (Mexico City, 2024). It aims to support GIS and data science communities with tools for trajectory similarity analysis. While still under development, the library is designed with extensibility and research-focused applications in mind.
Raw data
{
"_id": null,
"home_page": null,
"name": "stmeasures",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Eduardo Mendoza <emendozam1501@alumno.ipn.mx>, Javier Munguia <fmunguiag1400@alumno.ipn.mx>, Marco Ortega <mortegaf1500@alumno.ipn.mx>",
"keywords": "geojson, measurement similarities, mobile devices, mobility patterns, trajectory similarities",
"author": "Amilcar Meneses, Erika Hernandez",
"author_email": "Eduardo Mendoza <emendozam1501@alumno.ipn.mx>, Javier Munguia <fmunguiag1400@alumno.ipn.mx>, Marco Ortega <mortegaf1500@alumno.ipn.mx>",
"download_url": "https://files.pythonhosted.org/packages/86/29/02796fb97a7776ac0c9f6f31f14e3524c0a772ec0228ddf5197d21d0c087/stmeasures-0.0.1.1.tar.gz",
"platform": null,
"description": "# Similar Trajectories Measurements (`stmeasures`)\n\n`stmeasures` is a Python library designed to provide researchers in Geographic Information Systems (GIS) and related fields with simple and efficient tools for measuring the similarity between trajectories. This library supports a variety of use cases, scenarios, and contexts, depending on where, how, and why the trajectories were collected or analyzed.\n\n## Installation\n\nInstall it through PyPI:\n\n```sh\npip install stmeasures\n```\n\n## Usage\n\nOnce installed you can use all functionalites provided by this package.\n\n```py\nimport stmeasures\n\ndataset = stmeasures.read_file(\"trajectories.json\")\nspad_metric = stmeasures.distance(dataset[4], dataset[53]) # Will get you the Spatial Assembling Distance between trajectories\n```\n\n### Visualization\n\nData can be visualized using [`geojsonio`](https://github.com/jwass/geojsonio.py) package.\n\n```py\nimport stmeasures\nimport geojsonio\n\ndataset = stmeasures.read_file(\"trajectories.json\")\ngeojsonio.display(geojsonio.display(stmeasures.geojsonio_contents(trajectories=dataset[50:56]))) # Will display a map with the given trajectories in geojson.io\n```\n\n## Key Features\n\n- **Diverse Algorithms:** Includes multiple algorithms such as Hausdorff, Frechet, DTW, LCSS, Euclidean, and SPAD to suit different similarity measurement needs.\n- **Flexible Integration:** Offers modular functions and customizable parameters for specific trajectory analysis tasks.\n- **Scalable Design:** Suitable for individual comparisons, clustering, and pattern discovery in trajectory datasets.\n\n## Library Overview\n\nThe following diagram illustrates the structure and main components of the library:\n\n![Library Structure](https://github.com/user-attachments/assets/cff1f913-684e-4fdb-9ca1-68eb275b6594)\n\n## Use Cases\n\n`stmeasures` can be used in a variety of applications, including:\n\n1. **Trajectory Clustering:** Grouping similar movement patterns, such as vehicle paths or animal migrations.\n2. **Outlier Detection:** Identifying unusual trajectories in a dataset.\n3. **Pattern Matching:** Finding trajectories that follow a specific path or trend.\n4. **Path Optimization Analysis:** Comparing planned and actual paths to optimize logistics or urban planning.\n\n## About the Project\n\nThis project is part of a final bachelor's degree research initiative at IPN University (Mexico City, 2024). It aims to support GIS and data science communities with tools for trajectory similarity analysis. While still under development, the library is designed with extensibility and research-focused applications in mind.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 TT2024-B106 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A library for measuring trajectory similarities.",
"version": "0.0.1.1",
"project_urls": {
"Documentation": "https://stmeasures.readthedocs.io/en/latest/",
"Issues": "https://github.com/TT2024-B106/stmeasures/issues",
"Repository": "https://github.com/TT2024-B106/stmeasures.git"
},
"split_keywords": [
"geojson",
" measurement similarities",
" mobile devices",
" mobility patterns",
" trajectory similarities"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "aeeb21271784205996a5381732f0a4911e66941f61f612f4691b40e0a0fecbc6",
"md5": "d49cc13f21f991f3fceb0722033451df",
"sha256": "44692a012079183be17fb902c7363e240e5e9baa99a0e9520b29a11dfa843613"
},
"downloads": -1,
"filename": "stmeasures-0.0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d49cc13f21f991f3fceb0722033451df",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 63415,
"upload_time": "2024-12-11T05:42:55",
"upload_time_iso_8601": "2024-12-11T05:42:55.184788Z",
"url": "https://files.pythonhosted.org/packages/ae/eb/21271784205996a5381732f0a4911e66941f61f612f4691b40e0a0fecbc6/stmeasures-0.0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "862902796fb97a7776ac0c9f6f31f14e3524c0a772ec0228ddf5197d21d0c087",
"md5": "95cd5217941fe892756c3c15703a0559",
"sha256": "d9044da1ec2e3843067598332c115e2ab977117f61b7e04f2f9c93c790693699"
},
"downloads": -1,
"filename": "stmeasures-0.0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "95cd5217941fe892756c3c15703a0559",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 58446,
"upload_time": "2024-12-11T05:42:57",
"upload_time_iso_8601": "2024-12-11T05:42:57.477332Z",
"url": "https://files.pythonhosted.org/packages/86/29/02796fb97a7776ac0c9f6f31f14e3524c0a772ec0228ddf5197d21d0c087/stmeasures-0.0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-11 05:42:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TT2024-B106",
"github_project": "stmeasures",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "stmeasures"
}