Description
An easy-to-implement library that can assist Java developers in using the GeoHash algorithm in order to create geocodes based on custom latitude and longitude values.
With the help of jGeohash, Java developers will be able to quickly and easily generate a geohash code using user-defined latitude and longitude values. By using the GeoHash algorithm, the space can be divided into multiple grid shapes.
This library is a basic implementation from the GeoHash algorithm written in the java and can be applied to generate from the latitude and longitude a geohash code and reverse.
The library is kept simple and have no dependencies to other libraries.
Jgeohash alternatives and similar libraries
Based on the "Geospatial" category.
Alternatively, view Jgeohash alternatives based on common mentions on social networks and blogs.
-
GraphHopper
Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server. -
JTS Topology Suite
The JTS Topology Suite is a Java library for creating and manipulating vector geometry. -
Apache SIS
Java language library for developing geospatial applications following OGC/ISO standards. -
Geotoolkit.org
Geotoolkit.org (abridged Geotk) is a free software, Java language library for developing geospatial applications. The library can be used for desktop or server applications. Geotk is built on top of Apache SIS and is used as a laboratory for the later.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Jgeohash or a related project?
README
Overview
An easy-to-implement library that can assist Java developers in using the GeoHash algorithm in order to create geocodes based on custom latitude and longitude values.
With the help of jGeohash, Java developers will be able to quickly and easily generate a geohash code using user-defined latitude and longitude values. By using the GeoHash algorithm, the space can be divided into multiple grid shapes.
This library is a basic implementation from the GeoHash algorithm written in the java and can be applied to generate from the latitude and longitude a geohash code and reverse.
The library is kept simple and have no dependencies to other libraries.
Please support this project by simply putting a Github <!-- Place this tag where you want the button to render. --> Star ⭐. Share this library with friends on Twitter and everywhere else you can. If you love this project
Note
No animals were harmed in the making of this library.
Donations
If you like this library, please consider a donation through paypal:
or over bitcoin or bitcoin-cash with:
36JxRRDfRazLNqUV6NsywCw1q7TK38ukpC
or over ether with:
0x588Aa02De98B1Ef70afeDC3ec5290130a3E5e273
or over flattr:
Key features:
- Very small size (<35Kb)
- Can get the adjacent geohash area from the given direction
- Can get the geohash from an ip address
- Can calculate distance between two geohash values in various measuring units like miles, km, meters
- Can get the geohash cells around from the first, second or thrird ring from a given geohash cell
License
The source code comes under the liberal Apache License V2.0, making jgeohash great for all types of applications.
Maven Central
javadoc
Maven dependency
Maven dependency is now on sonatype. Check out sonatype repository for latest snapshots and releases.
You can add the following maven dependencies to your project pom.xml
if you want to import the library.
You can first define the version properties:
<properties>
...
<!-- JGEOHASH version -->
<jgeohash.version>2.5.2</jgeohash.version>
<jgeohash-core.version>${jgeohash.version}</jgeohash-core.version>
<jgeohash-geoip.version>${jgeohash.version}</jgeohash-geoip.version>
...
</properties>
Add the following maven dependency to your project pom.xml
if you want to import the core functionality of jgeohash:
<dependencies>
...
<!-- JGEOHASH-CORE DEPENDENCY -->
<dependency>
<groupId>de.alpharogroup</groupId>
<artifactId>jgeohash-core</artifactId>
<version>${jgeohash-core.version}</version>
</dependency>
</dependencies>
Add the following maven dependency to your project pom.xml
if you want to import the geoip functionality of jgeohash:
<dependencies>
...
<!-- JGEOHASH-GEOIP DEPENDENCY -->
<dependency>
<groupId>de.alpharogroup</groupId>
<artifactId>jgeohash-geoip</artifactId>
<version>${jgeohash-geoip.version}</version>
</dependency>
</dependencies>
Semantic Versioning
The versions of jgeohash are maintained with the Semantic Versioning guidelines.
Release version numbers will be incremented in the following format:
<major>.<minor>.<patch>
For detailed information on versioning for this project you can visit this wiki page.
Want to Help and improve it?
The source code for jGeohash are on GitHub. Please feel free to fork and send pull requests!
Create your own fork of astrapi69/jgeohash/fork
To share your changes, submit a pull request.
Don't forget to add new units tests on your changes.
Contacting the Developer
Do not hesitate to contact the jgeohash developers with your questions, concerns, comments, bug reports, or feature requests.
- Feature requests, questions and bug reports can be reported at the issues page.
Examples
Similar projects
Here is a list of awesome projects that uses geohash:
- geohash-java Another implementation of Geohashes in pure Java.
- geo Geohash utitlies in java
Blogs
Useful links
Change log
The changelog is moved in its own file. It can be found on following page
Credits
Travis CI |
---|
Special thanks to Travis CI for providing a free continuous integration service for open source projects |
Nexus Sonatype repositories |
---|
jgeohash-core |
jgeohash-geoip |
Special thanks to sonatype repository for providing a free maven repository service for open source projects |
coveralls.io |
---|
Special thanks to coveralls.io for providing a free code coverage for open source projects |
javadoc.io |
---|
jgeohash-core |
jgeohash-geoip |
Special thanks to javadoc.io for providing a free javadoc documentation for open source projects |
*Note that all licence references and agreements mentioned in the Jgeohash README section above
are relevant to that project's source code only.