{ "info": { "author": "Henrik Ankersoe", "author_email": "henrik@diblo.dk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Diblo Geo\r\n__________\r\n\r\nDiblo Geo is a Python 2 api for developer.\r\n\r\nDiblo Geo makes it easy for Python developers to calculate coordinates and bearing across the globe.\r\n\r\nDiblo Geo is tested against CPython 2.7.\r\n\r\n`Development site `__.\r\n\r\n\u00a9 Diblo Geo contributors 2016 under the `The GNU General Public License v3.0 `__.\r\n\r\nInstallation\r\n-----------------------------\r\n\r\nInstall using `pip `__ with:\r\n\r\n pip install diblogeo\r\n\r\nOr, `download a wheel or source archive from PyPI `__.\r\n\r\nMeasuring Distances\r\n-----------------------------\r\nExample 1:\r\n\r\n >>> from diblogeo import Geo\r\n >>> distance = Geo((55.3303636516, 10.4466164796)) \\\r\n ... .distance((55.3706593849, 10.469825563))\r\n >>> print(distance)\r\n 4.70941600331\r\n >>> print(distance.kilometers)\r\n 4.71\r\n >>> print(distance.feet)\r\n 15450.84\r\n\r\nExample 2 (*Altitude 11.34 meters*):\r\n\r\n >>> from diblogeo import Geo\r\n >>> distance = Geo((55.3303636516, 10.4466164796, 11.34)) \\\r\n ... .distance((55.3706593849, 10.469825563, 11.34))\r\n >>> print(distance)\r\n 4.71780808395\r\n >>> print(distance.kilometers)\r\n 4.72\r\n >>> print(distance.feet)\r\n 15478.37\r\n\r\nMeasuring Angles\r\n-----------------------------\r\n >>> from diblogeo import Geo\r\n >>> bearing = Geo((55.3303636516, 10.4466164796)) \\\r\n ... .bearing((55.3706593849, 10.469825563))\r\n >>> print(bearing)\r\n 18.1225041609\r\n >>> print(bearing.degrees)\r\n 18.12\r\n >>> print(bearing.radians)\r\n 0.316297366315\r\n\r\nProjecting Destinations\r\n-----------------------------\r\nExample 1:\r\n\r\n >>> from diblogeo import Geo\r\n >>> point = Geo((55.3303636516, 10.4466164796))\r\n >>> point.destination(37.2, 3.2)\r\n (55.3533088458, 10.4772564424, 0)\r\n >>> point.destination(bearing=37.2, kilometers=3.2)\r\n (55.3533088458, 10.4772564424, 0)\r\n >>> point.destination(37.2, meters=3200)\r\n (55.3533088458, 10.4772564424, 0)\r\n\r\nExample 2 (*Altitude 11.34 meters*):\r\n\r\n >>> from diblogeo import Geo\r\n >>> point = Geo((55.3303636516, 10.4466164796, 11.34))\r\n >>> point.destination(37.2, 3.2)\r\n (55.3532680374, 10.4772019082, 11.34)\r\n >>> point.destination(bearing=37.2, kilometers=3.2)\r\n (55.3532680374, 10.4772019082, 11.34)\r\n >>> point.destination(37.2, meters=3200)\r\n (55.3532680374, 10.4772019082, 11.34)\r\n\r\nCalculate Earth's Radius\r\n-----------------------------\r\n >>> from diblogeo import calc_earth_radius\r\n >>> earth_radius = calc_earth_radius((55.3303636516, 10.4466164796, 11.34))\r\n >>> print(earth_radius)\r\n 6375.05118755\r\n >>> print(earth_radius.kilometers)\r\n 6375.05\r\n >>> print(earth_radius.miles)\r\n 3961.27\r\n\r\nMore input and output methods\r\n--------------------------------\r\n >>> from diblogeo import Geo\r\n >>> location = Geo((\"55\u00b0 19' 49.31\\\"\", \"10\u00b0 26' 47.82\\\"\", 11.34)) \\\r\n ... .destination(37.2, miles=3.2)\r\n >>> print(location.latitude, location.longitude, location.altitude)\r\n (55.367221177288684, 10.495856496671713, 11.34)\r\n >>> print(location[0], location[1], location[2])\r\n (55.367221177288684, 10.495856496671713, 11.34)\r\n >>> print(location.dms)\r\n ((55, 22, 1.99624, 'N'), (10, 29, 45.08339, 'E'), 11.34)\r\n >>> print(location.dms.latitude, location.dms.longitude, location.altitude)\r\n ((55, 22, 1.99624, 'N'), (10, 29, 45.08339, 'E'), 11.34)\r\n\r\nLocations/ Points Attributes\r\n-----------------------------\r\nThe attributes can be used with `Geo` and `destination`.\r\n\r\nDecimal Degrees:\r\n\r\n* location, loc, dd\r\n* latitude, lat\r\n* longitude, lon\r\n* elevations, altitude, alt\r\n\r\n`location`, `loc` and `dd` return an instance of `_Point`\r\n\r\n* [_Point].latitude, [_Point].lat\r\n* [_Point].longitude, [_Point].lon\r\n* [_Point].elevations, [_Point].altitude, [_Point].alt\r\n\r\nDegrees Minutes Seconds:\r\n\r\n* dms\r\n* dms.latitude, dms.lat\r\n* dms.longitude, dms.lon\r\n* dms.elevations, dms.altitude, dms.alt\r\n\r\nUnit of measurement\r\n-----------------------------\r\nThe attributes can be used with `distance` and `calc_earth_radius`.\r\n`Destination` supports all the units as distance argument.\r\n\r\n* kilometers, km\r\n* meters, m\r\n* cm\r\n* miles, mi\r\n* feet, ft\r\n* nautical, nm, nmi\r\n\r\nAngle Units\r\n-----------------------------\r\nThe attributes can be used with `bearing`.\r\n\r\n* degrees, deg\r\n* radians, rad\r\n\r\n\r\n", "description_content_type": null, "docs_url": "https://pythonhosted.org/diblogeo/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pypi.python.org/pypi/diblogeo", "keywords": "geocode geocoding geographical maps earth distance bearing", "license": "GPL v3", "maintainer": "", "maintainer_email": "", "name": "diblogeo", "package_url": "https://pypi.org/project/diblogeo/", "platform": "", "project_url": "https://pypi.org/project/diblogeo/", "project_urls": { "Homepage": "https://pypi.python.org/pypi/diblogeo" }, "release_url": "https://pypi.org/project/diblogeo/0.1.0rc3/", "requires_dist": null, "requires_python": "", "summary": "Python Geolocation API", "version": "0.1.0rc3" }, "last_serial": 2549080, "releases": { "0.1.0rc1": [ { "comment_text": "", "digests": { "md5": "2ccf025e6f5e218c47ea40b8e5c5cd66", "sha256": "9fca7a20e9d277f5685522dd3a56afc481fe3e9659a56a75c7c2499d5206cc39" }, "downloads": -1, "filename": "diblogeo-0.1.0rc1-py2-none-any.whl", "has_sig": false, "md5_digest": "2ccf025e6f5e218c47ea40b8e5c5cd66", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8694, "upload_time": "2016-12-12T03:57:18", "url": "https://files.pythonhosted.org/packages/6e/79/6412785e724f718b04e69a98d9955e464df94f98aca847f23b0cb7fb59d0/diblogeo-0.1.0rc1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ac712dacec54ded5a5e78616b4a6d468", "sha256": "5cccbddc022e83b918fd8243be54073454e73517d852de9f88a0c0da9f747339" }, "downloads": -1, "filename": "diblogeo-0.1.0rc1.tar.gz", "has_sig": false, "md5_digest": "ac712dacec54ded5a5e78616b4a6d468", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24812, "upload_time": "2016-12-12T03:57:20", "url": "https://files.pythonhosted.org/packages/c3/27/255740a26d073b1a908499b302cb8f9aa3a901087390f867bb63185c3bb6/diblogeo-0.1.0rc1.tar.gz" } ], "0.1.0rc2": [ { "comment_text": "", "digests": { "md5": "4b1fae917e862c00c8283fd73db3a74b", "sha256": "646ed70fd0922b1bc81afad3c010eb2826e7ec6df9133a261f21ab6ba222be39" }, "downloads": -1, "filename": "diblogeo-0.1.0rc2-py2-none-any.whl", "has_sig": false, "md5_digest": "4b1fae917e862c00c8283fd73db3a74b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8767, "upload_time": "2017-01-02T00:35:04", "url": "https://files.pythonhosted.org/packages/18/7a/6ac278340366beba28495ab22cae27f73a2536885e4c9fd398b6f20ca973/diblogeo-0.1.0rc2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d95090a4bdb60216bd5d36f10f5a8938", "sha256": "61f4a4bb7362781221350de7a3377592b80f6c2b1067f233865d21a1e4dc6ad2" }, "downloads": -1, "filename": "diblogeo-0.1.0rc2.tar.gz", "has_sig": false, "md5_digest": "d95090a4bdb60216bd5d36f10f5a8938", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20073, "upload_time": "2017-01-02T00:35:06", "url": "https://files.pythonhosted.org/packages/19/cc/234043dd19452897cbf2cf2460d41d75b636575e45794727dce48d70cf8e/diblogeo-0.1.0rc2.tar.gz" } ], "0.1.0rc3": [ { "comment_text": "", "digests": { "md5": "34b95cc92be553be2527b505910e5bff", "sha256": "dba8bc0ab80bcccabbf8e5268d4f54d4da22700ca71838eeb9d95bb677fd8d06" }, "downloads": -1, "filename": "diblogeo-0.1.0rc3-py2-none-any.whl", "has_sig": false, "md5_digest": "34b95cc92be553be2527b505910e5bff", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8764, "upload_time": "2017-01-02T01:50:31", "url": "https://files.pythonhosted.org/packages/58/70/d975f92c393bccfb2a83f2c2685660be78b83370b2b5a1fa74d7892c590c/diblogeo-0.1.0rc3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30775e98693bf43a11d3eaaa5ce74901", "sha256": "1fb6c222ddbfd9569337ebf7f7acfb384642728ff4753ffd03f723967bf85f55" }, "downloads": -1, "filename": "diblogeo-0.1.0rc3.tar.gz", "has_sig": false, "md5_digest": "30775e98693bf43a11d3eaaa5ce74901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20065, "upload_time": "2017-01-02T01:50:32", "url": "https://files.pythonhosted.org/packages/e7/7a/34593afa6d3779f23f33183451de2b8d14c20add25557de4c4385c0d5811/diblogeo-0.1.0rc3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "34b95cc92be553be2527b505910e5bff", "sha256": "dba8bc0ab80bcccabbf8e5268d4f54d4da22700ca71838eeb9d95bb677fd8d06" }, "downloads": -1, "filename": "diblogeo-0.1.0rc3-py2-none-any.whl", "has_sig": false, "md5_digest": "34b95cc92be553be2527b505910e5bff", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8764, "upload_time": "2017-01-02T01:50:31", "url": "https://files.pythonhosted.org/packages/58/70/d975f92c393bccfb2a83f2c2685660be78b83370b2b5a1fa74d7892c590c/diblogeo-0.1.0rc3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30775e98693bf43a11d3eaaa5ce74901", "sha256": "1fb6c222ddbfd9569337ebf7f7acfb384642728ff4753ffd03f723967bf85f55" }, "downloads": -1, "filename": "diblogeo-0.1.0rc3.tar.gz", "has_sig": false, "md5_digest": "30775e98693bf43a11d3eaaa5ce74901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20065, "upload_time": "2017-01-02T01:50:32", "url": "https://files.pythonhosted.org/packages/e7/7a/34593afa6d3779f23f33183451de2b8d14c20add25557de4c4385c0d5811/diblogeo-0.1.0rc3.tar.gz" } ] }