GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - uber/h3-java: Java bindings for H3, a hierarchical hexagonal geospatial indexing system

BranchesTags
Open more actions menu

Latest commit

 

History

351 Commits
351 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
gradle
gradle
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
h3version.properties
h3version.properties
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

H3 Logo

H3-Java

tests Coverage Status License Maven Central H3 Version

This library provides Java bindings for the H3 Core Library. For API reference, please see the H3 Documentation.

Usage

Add it to your pom.xml:

<dependency>
    <groupId>com.uber</groupId>
    <artifactId>h3</artifactId>
    <version>4.5.1</version>
</dependency>

Or, using Gradle:

compile("com.uber:h3:4.5.1")

Encode a location into a hexagon address:

H3Core h3 = H3Core.newInstance();

double lat = 37.775938728915946;
double lng = -122.41795063018799;
int res = 9;

String hexAddr = h3.latLngToCellAddress(lat, lng, res);

Decode a hexagon address into coordinates:

List<LatLng> LatLngs = h3.cellToGeoBoundary(hexAddr);

Supported Operating Systems

H3-Java provides bindings to the H3 library, which is written in C. The built artifact supports the following:

Operating System Architectures
Linux x64, x86, ARM64, ARMv5, ARMv7, PPC64LE, s390x
Windows x64, x86
Darwin (Mac OSX) x64, ARM64
FreeBSD x64
Android ARM, ARM64

You may be able to build H3-Java locally if you need to use an operating system or architecture not listed above.

Development

Building the library requires a JDK, Gradle, CMake, and a C compiler. To build:

./gradlew assemble test -Ph3UseDocker=false

Additional information on how the build process works is available in the build process documentaiton.

Building on FreeBSD

# To install build dependencies
sudo pkg install openjdk11 cmake bash
# Ensure /usr/local/openjdk11/bin is on your path

Javadocs

To build Javadocs documentation:

./gradlew javadoc -Ph3UseDocker=false

Then open the file build/docs/javadoc/index.html.

Benchmarking

To run benchmarks, either execute them from IntelliJ or run the following from shell:

./gradlew benchmark -Ph3UseDocker=false

Contributing

Pull requests and Github issues are welcome. Please see our contributing guide for more information.

Before we can merge your changes, you must agree to the Uber Contributor License Agreement.

Legal and Licensing

H3-Java is licensed under the Apache 2.0 License.

DGGRID Copyright (c) 2015 Southern Oregon University

About

Java bindings for H3, a hierarchical hexagonal geospatial indexing system

h3geo.org/

Topics

geospatialh3hexagonjavaspatial-indexinguber

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

338 stars

Watchers

14 watching

Forks

71 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.