Skip to content

Commit

Permalink
Merge branch 'smalldata'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Winterstein committed Aug 9, 2016
2 parents c22e15c + 94262f1 commit d8bb928
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/com/winterwell/jgeoplanet/GeoCodeQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ public boolean isEmpty() {
public GeoCodeQuery setReqLocn(boolean reqLocn) {
this.reqLocn = reqLocn;
return this;
}

public GeoCodeQuery setLatitudeLongitude(double lat, double lng) {
this.locn = new Location(lat, lng);
return this;
}

}
4 changes: 3 additions & 1 deletion src/com/winterwell/jgeoplanet/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ public String toSimpleCoords(){
return latitude + "," + longitude;
}

// NB: will not pick up a trailing . See bug #9788
/**
* Latitude, Longitude
* NB: will not pick up a trailing . See bug #9788 */
public static final Pattern latLongLocn = Pattern.compile(
"(\\S+:)?\\s*(-?[\\d\\.]*\\d),\\s*(-?[\\d\\.]*\\d)\\.?\\s*");

Expand Down
2 changes: 1 addition & 1 deletion test/winterwell/jtwitter/TwitterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import org.junit.Test;

import winterwell.utils.Printer;
import com.winterwell.utils.Printer;

import winterwell.json.JSONException;
import winterwell.json.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion test/winterwell/jtwitter/UserStreamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import org.junit.Test;

import winterwell.utils.Printer;
import com.winterwell.utils.Printer;

import winterwell.jtwitter.AStream.IListen;
import winterwell.jtwitter.Twitter.ITweet;
Expand Down

0 comments on commit d8bb928

Please sign in to comment.