Visitar URL original
Updated README and pom.xml to reflect the changes. · mscode/geohash-java@890565f · GitHub
Skip to content

Commit 890565f

Browse files
author
Silvio Heuberger
committed
Updated README and pom.xml to reflect the changes.
1 parent d249dd0 commit 890565f

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎README‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,46 @@ You can however also encode Geohashes down to the full available precision of a
1111
Building/Testing the code
1212
-------------------------
1313

14-
The geohash-java code can be built using Apache Ant.
15-
Following targets are available:
14+
The geohash-java code can be built using Apache Ant or Apache Maven.
15+
Ant targets that are available:
1616

1717
- clean # wash dishes.
1818
- compile # compile the main source code.
1919
- test # (default) run the unit tests.
2020
- jar # pack a jar archive with the compiled class files.
2121
- zip # pack a zip archive with the compiled binaries, source code and all other files.
2222

23+
Maven targets are the usual suspects.
24+
25+
- compile
26+
- test
27+
- package
2328

2429
TODO
2530
----
2631

2732
Current development involves getting the following things to run:
2833

2934
- a method to find the n closest hashes to any given point.
30-
- find all hashes within a bounding box (possibly including false positives)
3135

3236

3337
Last important changes
3438
----------------------
3539

36-
- Fixed issue #2 from Github:
40+
Version 1.0.2
41+
-------------
42+
43+
- Merged Kevins [ktcorby] code that yields all the geohashes in a bounding box, at a given resolution.
44+
- Merged Chris' [cchandler] code to encode and decode geohashes from a binary string.
45+
46+
Version 1.0.1
47+
-------------
48+
49+
- Fixed issue #2 from Github:
3750
- Neighbouring hashes can be calculated by using the getAdjacent() method, which yields a hashes 8 neighbors.
3851
- northern, eastern, western and southern neighbours can be determined using the respective methods.
3952

40-
- Fixed issue #1 from Github:
53+
- Fixed issue #1 from Github:
4154
- A bug caused different hashes to be yielded sometimes.
4255

4356

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>ch.hsr</groupId>
55
<artifactId>ch.hsr.geohash</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.1</version>
7+
<version>1.0.2</version>
88
<name>geohash-java</name>
99
<dependencies>
1010
<dependency>

‎src/test/java/ch/hsr/geohash/util/BoundingBoxGeoHashIteratorTest.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ public void testIter2() {
4343
hashes.add(iter.next());
4444
}
4545
GeoHash prev = null;
46-
int idx = 0;
47-
//System.out.println("idx,lat,lon");
4846
for (GeoHash gh : hashes) {
4947
if (prev != null) Assert.assertTrue(prev.compareTo(gh) < 0);
5048
Assert.assertTrue(newBox.contains(gh.getPoint()));
51-
System.out.println(idx++ + "," + gh.getPoint().getLatitude() + "," + gh.getPoint().getLongitude());
5249
prev = gh;
5350
}
5451

0 commit comments

Comments
 (0)