About:

Hexagonal geo-coding system / Original mapping project
GeoHex/ GEOHEX devide whole target area into honeycomb geometry regions.
Instead of the "Red-Pin", hexagonal geocoding system makes your world so cool.
It's honeycomb geometry shape matches for geogames’ world view, with protection for individual location privacy.
It's coordinate system makes it easy to search around, calculate distance, save data strage with short code, and makes progress in search performance. 

What's new:

  • The latest version of GeoHex is "V3.2".
  • core library: http://geohex.net/src/script/hex_v3.2_core.js
  • test case (http://geohex.net/testcase/v3.2.html)
  • rect search library: http://geohex.net/src/script/getXYListByRect.js
        method --> getXYListByRect(sw.lat(), sw.lng(), ne.lat(), ne.lng(), level , buffer);
        response -->  list[n]={"x":a, "y":b}

Feature:

  • Geo-spacial Searches

    You can search easily within flexible levels of zone size.

  • Privacy Protection

    GeoHex allows for different levels of precision; so, you can protect your privacy when sharing your location.

  • Easy Distance Calculation

    Each zone is the same distance from any of its neighbors within the same level.

    Therefore, it is easy to calculate steps between zones.

  • Smaller Data Footprint

    One GeoHex zone ID uses from two to 17 bytes--more for smaller zones.

  • Single-query Searching

    GeoHex is very compatible with cloud-based key-value stores.

  • Similarity to Video Game Worlds

    Maps with GeoHex look like game worlds. Cool!

License:

 You can use GeoHex under the creative commons license within the specific condition below,
  - Any one can access your services from internet.
  - Use hex-visual on map.
  - Creative commons badge and links must be shown on map or within the same page.


 GeoHex by @sa2da(http://geohex.net) is licensed under a Creative Commons BY-SA 2.1 License.

 You can use GeoHex for services with hex visualization on maps.
 If you use GeoHex only for background-operation, you should be licensed under extra-license from GEOHEX Inc.


MIT License

Copyright (c) 2009 @sa2da (http://twitter.com/sa2da)
http://www.geohex.org

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.


Ported Libraries:

GeoHex library have been porting to many languages. 
  • Perl (V1/V2/V3).
  • Ruby (V1/V2/V3).
  • Java (V1/V2/V3).
  • PHP (V1/V2/V3).
  • AS3 (V1/V2/V3).
  • Objective-C (V1/V2/V3).
  • Scala (V1/V2/V3).
  • OpenLayers (V1/V2/V3)
  • Python (V3.2)

    V1: only for Japan
    V2: for world
    V3: for world, prefix matching (Beta)
Test-case