{ "info": { "author": "Uber Technologies", "author_email": "Niel Hu ", "bugtrack_url": null, "classifiers": [], "description": "H3-Python\n=========\n\n|Build Status| |Build Status Appveyor| |H3 Version| |License|\n\nThis library provides Python bindings for the `H3 Core\nLibrary `__. For API reference, please see\nthe `H3 Documentation `__.\n\nInstalling\n==========\n\nYou need to have ``cc``, ``make``, and ``cmake`` in your ``$PATH`` when installing this\npackage:\n\n.. code:: sh\n\n which cc\n /usr/bin/cc\n which make\n /usr/bin/make\n which cmake\n /usr/bin/cmake\n\n.. code:: sh\n\n pip install h3\n\nDevelopment\n===========\n\n.. code:: sh\n\n git clone https://github.com/uber/h3-py.git && cd h3-py\n virtualenv env \n source env/bin/activate\n pip install -r requirements-dev.txt\n fab bootstrap\n\nUsage\n=====\n\nThe following visualizations are achieved with\n`folium `__.\n\n.. code:: python\n\n from h3 import h3\n\nConvert lat/lng to hexagon address\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n h3_address = h3.geo_to_h3(37.3615593, -122.0553238, 5) # lat, lng, hex resolution\n hex_center_coordinates = h3.h3_to_geo(h3_address) # array of [lat, lng]\n hex_boundary = h3.h3_to_geo_boundary(h3_address) # array of arrays of [lat, lng]\n\n.. image:: docs/source/Hexagon.png\n\t :scale: 50%\n\n \nGet KRings of hexagon\n~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n h3.k_ring_distances(h3_address, 4) # array of 4 rings with size [1, 6, 12, 18]\n h3.k_ring(h3_address, 4) # a collection of hexagons within kring sizes from 0 to 3\n\n.. image:: docs/source/KRings.png\n\t :scale: 50%\n\n \nPolyfill a Geo Json with hexagons\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n geoJson = {'type': 'Polygon',\n 'coordinates': [[[37.813318999983238, -122.4089866999972145], \n [ 37.7866302000007224, -122.3805436999997056 ], \n [37.7198061999978478, -122.3544736999993603], \n [ 37.7076131999975672, -122.5123436999983966 ], \n [37.7835871999971715, -122.5247187000021967], \n [37.8151571999998453, -122.4798767000009008]]] }\n hexagons = list(h3.polyfill(geoJson, 8)) # resolution 8\n\n.. image:: docs/source/Polyfill.png\n\t :scale: 50%\n\n \nFor more API reference, please see the `H3\nDocumentation `__.\n\n.. |Build Status| image:: https://travis-ci.org/uber/h3-py.svg?branch=master\n :target: https://travis-ci.org/uber/h3-py\n.. |Build Status Appveyor| image:: https://ci.appveyor.com/api/projects/status/eaa11gfwmr0gtr5y/branch/master?svg=true\n :target: https://ci.appveyor.com/project/Uber/h3-py/branch/master\n.. |H3 Version| image:: https://img.shields.io/badge/h3-v3.4.2-blue.svg\n :target: https://github.com/uber/h3/releases/tag/v3.4.2\n.. |License| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n :target: LICENSE", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/uber/h3-py.git", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "h3", "package_url": "https://pypi.org/project/h3/", "platform": "", "project_url": "https://pypi.org/project/h3/", "project_urls": { "Homepage": "https://github.com/uber/h3-py.git" }, "release_url": "https://pypi.org/project/h3/3.4.3/", "requires_dist": null, "requires_python": "", "summary": "Python bindings for H3, a hierarchical hexagonal geospatial indexing system developed by Uber Technologies", "version": "3.4.3" }, "last_serial": 5178657, "releases": { "2.9": [ { "comment_text": "", "digests": { "md5": "35b9feb289038bc7b0dad60b8f47c94a", "sha256": "f4c98f8110c96fe50983aef50999f213664e0d4f7aa55291a839baa0312c5ca4" }, "downloads": -1, "filename": "h3-2.9.tar.gz", "has_sig": false, "md5_digest": "35b9feb289038bc7b0dad60b8f47c94a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8862, "upload_time": "2018-07-31T20:37:47", "url": "https://files.pythonhosted.org/packages/f0/71/d95c0470b084f5c74bf2e5840b3adac521d7173bc9262a2c4b23c60d917a/h3-2.9.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "2f99421e40f651e1a18ff6bd4d73954c", "sha256": "bead557805673e75e4180be3286dd08e0706180381ed6c98acae072a33e8c5cd" }, "downloads": -1, "filename": "h3-3.0.0.tar.gz", "has_sig": false, "md5_digest": "2f99421e40f651e1a18ff6bd4d73954c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8863, "upload_time": "2018-07-31T20:41:59", "url": "https://files.pythonhosted.org/packages/34/d4/6f308d821bffe97d3b44562f8c90c1f4d858660727d127b935555f3b7877/h3-3.0.0.tar.gz" } ], "3.0.9": [ { "comment_text": "", "digests": { "md5": "ed826a727bab059575b937e141648d82", "sha256": "e0614d48297c5476403c4080dbb0ca18153a5898c780e44dd3b95612ba59c554" }, "downloads": -1, "filename": "h3-3.0.9.tar.gz", "has_sig": false, "md5_digest": "ed826a727bab059575b937e141648d82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9119, "upload_time": "2018-09-07T00:24:47", "url": "https://files.pythonhosted.org/packages/0e/22/3c2cc7c9ecaf5b5b8f7987392d532b477278a074b4baa75da6ac3f5118df/h3-3.0.9.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "4a9613c2a4acbe37df74f9377004f1c6", "sha256": "b06b25bb2f55ddb50ede514e725772a820efb56e55db00107a58dd7aeef8d629" }, "downloads": -1, "filename": "h3-3.1.0.tar.gz", "has_sig": false, "md5_digest": "4a9613c2a4acbe37df74f9377004f1c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9115, "upload_time": "2018-09-07T01:16:40", "url": "https://files.pythonhosted.org/packages/6c/ed/726ddc6560d09255996f7c19a3d81afbcb5ec76eb28514373edff0c25ce6/h3-3.1.0.tar.gz" } ], "3.4.1": [ { "comment_text": "", "digests": { "md5": "46c875c90a4595a398c7c4786c3162e7", "sha256": "3779ace64f5fbbccabfeb80aebdc92e21cf91afb0b17aa87d921eaad7577620e" }, "downloads": -1, "filename": "h3-3.4.1.tar.gz", "has_sig": false, "md5_digest": "46c875c90a4595a398c7c4786c3162e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10152, "upload_time": "2019-02-21T19:50:27", "url": "https://files.pythonhosted.org/packages/62/10/e5713d483948112e64f1b1ace3d2e50a6586f5fab4f46a6a59308d94d08b/h3-3.4.1.tar.gz" } ], "3.4.2": [ { "comment_text": "", "digests": { "md5": "d965937bb031e4fdeb833441207c080c", "sha256": "ccc676a09db38a10f76c0948bb2a238fa21ba42174875409c8ed74291bff36e3" }, "downloads": -1, "filename": "h3-3.4.2.tar.gz", "has_sig": false, "md5_digest": "d965937bb031e4fdeb833441207c080c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10194, "upload_time": "2019-03-05T08:22:17", "url": "https://files.pythonhosted.org/packages/f3/ee/9fc225d259538f73f08d21b52aa9c64d6e911d2a358866d5c1c860c2f7c8/h3-3.4.2.tar.gz" } ], "3.4.3": [ { "comment_text": "", "digests": { "md5": "93041792ddec94280e6f11fb21ea2aa2", "sha256": "a292a5a63bcf535f0137141019f3defd21ad2fbd258dc8de587f921cf2c5b41d" }, "downloads": -1, "filename": "h3-3.4.3.tar.gz", "has_sig": false, "md5_digest": "93041792ddec94280e6f11fb21ea2aa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10624, "upload_time": "2019-04-23T18:13:45", "url": "https://files.pythonhosted.org/packages/98/2a/704b2db80465ce3a412d6c94f1c1658cffbbb4e76c5c03bb133f588cc131/h3-3.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "93041792ddec94280e6f11fb21ea2aa2", "sha256": "a292a5a63bcf535f0137141019f3defd21ad2fbd258dc8de587f921cf2c5b41d" }, "downloads": -1, "filename": "h3-3.4.3.tar.gz", "has_sig": false, "md5_digest": "93041792ddec94280e6f11fb21ea2aa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10624, "upload_time": "2019-04-23T18:13:45", "url": "https://files.pythonhosted.org/packages/98/2a/704b2db80465ce3a412d6c94f1c1658cffbbb4e76c5c03bb133f588cc131/h3-3.4.3.tar.gz" } ] }