{ "info": { "author": "Harinath Selvaraj", "author_email": "harinath.selvaraj@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# py-geo-nearby Package\n\nThis uses geopy package to identify the distance between two geo co-ordinates and arrange it based on the nearest distances.\n\ne.g) Consider the below case,\n\nA is the starting point \\\nDistance between A and B = 3 Kms \\\nDistance between A and C = 2 Kms \\\nDistance between B and C = 3 kms \\\nDistance between B and D = 4 kms \\\nDistance between C and D = 2 kms\n\nAll the places ie) B, C and D has to be visited from A. However, the nearest place from A has to be visited first followed by the nearest place from the first visited place and so on..\n\nIn the above example, \\\nFrom A, C is the nearest location. \\\nFrom C, D is the nearest location. \\\nFrom D, B is the nearest location.\n\nTherefore the sequence based on nearest distance is A -> C -> D -> B \\\nTotal Distance = 2 + 2 + 4 = 8 kms\n\n## Installation\n\n```\npip install geopy\npip install py-geo-nearby\n```\n\n## Declare\n\n```\nimport py_geo_nearby.py_geo_nearby as pygn\n```\n\n## Parameters\n\nParameter | Meaning | Sample Values\n----------|---------|--------\nlist | python variable containing the list of locations | any variable name\n\nNOTE: Each list entry should have exactly 3 values namely latitude, longitude and location Name. The 1st entry of the list will be considered as the starting location.\n\n## Usage Example\n\n#### Code \n\n```\nimport py_geo_nearby.py_geo_nearby as pygn\n\nrows = [\n ['12.92509', '80.10087', 'Tambaram,Chennai'],\n ['12.95601', '80.14353', 'Saravana Stores,Chromepet, Chennai'],\n ['12.92264', '80.131151', 'Selaiyur,Chennai'],\n ['12.90885', '80.09903', 'Perungalathur,Chennai'],\n ['12.93675', '80.16917', 'Hasthinapuram, Chennai'],\n ['12.86956', '80.16775', 'Sholinganallur, Chennai'],\n ['12.96829', '80.0962', 'Thirumudivakkam, Chennai']\n]\nplaces,totalDistance = pygn.nearby(rows)\nprint(places,totalDistance)\n```\n#### Output\n\n```\n(['Tambaram,Chennai',\n 'Perungalathur,Chennai',\n 'Selaiyur,Chennai',\n 'Saravana Stores,Chromepet, Chennai',\n 'Hasthinapuram, Chennai',\n 'Sholinganallur, Chennai',\n 'Thirumudivakkam, Chennai'],\n 33.881469236248286)\n```\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/harinathselvaraj/py_geo_nearby", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "py-geo-nearby", "package_url": "https://pypi.org/project/py-geo-nearby/", "platform": "", "project_url": "https://pypi.org/project/py-geo-nearby/", "project_urls": { "Homepage": "https://github.com/harinathselvaraj/py_geo_nearby" }, "release_url": "https://pypi.org/project/py-geo-nearby/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Python library to arrange geo locations by nearest distance", "version": "0.0.3" }, "last_serial": 4557596, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d23f2527892bd1d903ba0a76f074de0e", "sha256": "ba107cf4275bdb0c354b6dd5cf1e8f62eb261a7cdf28bcb96c3a52888d772cf7" }, "downloads": -1, "filename": "py_geo_nearby-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d23f2527892bd1d903ba0a76f074de0e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2044, "upload_time": "2018-12-03T21:51:26", "url": "https://files.pythonhosted.org/packages/93/6e/f94a0dc2b19d2ef27ef17c2636c2907b3a44707294300c93b37414281bdc/py_geo_nearby-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e4d194eadf6ea8a75047f28624ef736", "sha256": "49c0738c06ba676a6b1f70f5d663c3bd4b6b90923963cde8e8824b0bc8837f5c" }, "downloads": -1, "filename": "py_geo_nearby-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4e4d194eadf6ea8a75047f28624ef736", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2022, "upload_time": "2018-12-03T21:51:28", "url": "https://files.pythonhosted.org/packages/40/e0/1a04d9f2ba7c62c89791aff03f73ab22d44ce1f18d7b8a09121d91128429/py_geo_nearby-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "bd391ee9405543ec5c3a9ec8ac7c2f48", "sha256": "38eea2be8ccd1f7a98e086e52fff38a802eaba8b0dd4fa23624a49a0ffe0f312" }, "downloads": -1, "filename": "py_geo_nearby-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bd391ee9405543ec5c3a9ec8ac7c2f48", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2870, "upload_time": "2018-12-03T22:01:33", "url": "https://files.pythonhosted.org/packages/48/8b/471f06cfd3aea60c98a12afa4858ec521a126be7cd41872479f9458ccd58/py_geo_nearby-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d987042dae5c188d414df988d8b51569", "sha256": "ef57a2f9362f3c72494625964a6cdf55d57f98d51839f7e0f5e65aa2014df087" }, "downloads": -1, "filename": "py_geo_nearby-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d987042dae5c188d414df988d8b51569", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2024, "upload_time": "2018-12-03T22:01:34", "url": "https://files.pythonhosted.org/packages/3a/9b/a2089413c6541d2153844c5303f57049ca3de13488de57ab5174f7af0380/py_geo_nearby-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "abc22a2e649008c79d74511a11b42eb0", "sha256": "f6a281bc87a5cea9d8ccd25fe8d999e4c7acdbd84212f849818ae26dd4d2f0af" }, "downloads": -1, "filename": "py_geo_nearby-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "abc22a2e649008c79d74511a11b42eb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2875, "upload_time": "2018-12-03T22:37:49", "url": "https://files.pythonhosted.org/packages/44/62/0b21187dc4eb0a298faadbc4356b5e658a4b426e895ebb7869ce1b642363/py_geo_nearby-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "502083a7044abeb691fc9b56c341599d", "sha256": "89b820044d1034b2a875efca15d125e9c726d3d65e2c4c8a52df0aacc67ebc04" }, "downloads": -1, "filename": "py_geo_nearby-0.0.3.tar.gz", "has_sig": false, "md5_digest": "502083a7044abeb691fc9b56c341599d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025, "upload_time": "2018-12-03T22:37:51", "url": "https://files.pythonhosted.org/packages/b3/1a/c0ace2fa7d0d4bfbc4e3b8e5da315ea544f43f7e065888359b837435270c/py_geo_nearby-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "abc22a2e649008c79d74511a11b42eb0", "sha256": "f6a281bc87a5cea9d8ccd25fe8d999e4c7acdbd84212f849818ae26dd4d2f0af" }, "downloads": -1, "filename": "py_geo_nearby-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "abc22a2e649008c79d74511a11b42eb0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2875, "upload_time": "2018-12-03T22:37:49", "url": "https://files.pythonhosted.org/packages/44/62/0b21187dc4eb0a298faadbc4356b5e658a4b426e895ebb7869ce1b642363/py_geo_nearby-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "502083a7044abeb691fc9b56c341599d", "sha256": "89b820044d1034b2a875efca15d125e9c726d3d65e2c4c8a52df0aacc67ebc04" }, "downloads": -1, "filename": "py_geo_nearby-0.0.3.tar.gz", "has_sig": false, "md5_digest": "502083a7044abeb691fc9b56c341599d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2025, "upload_time": "2018-12-03T22:37:51", "url": "https://files.pythonhosted.org/packages/b3/1a/c0ace2fa7d0d4bfbc4e3b8e5da315ea544f43f7e065888359b837435270c/py_geo_nearby-0.0.3.tar.gz" } ] }