Found in Release:
get-latitude-v1-0.2-alpha
Platform information (OS, Browser, GWT version). Does the issue exist on
other platforms?
OS X 10.7, OmniWeb, GWT 2.4
Give a Detailed description of the problem. If possible, please include
some code that reproduces the problem and a verbatim copy of any error
messages you can find.
When using the ListRequest and setting list.getGranularity to "best" I get the
correct timestamp and locationKind but the getLatitude, getLatitude and
getgetAccuracy all produce null. Here is the code that shows the problem.
private void testLatitude(){
Latitude.LocationContext latitudeContext = latitude.location();
Latitude.LocationContext.ListRequest list = latitudeContext.list();
list.setGranularity("best");
list.setMaxResults("5");
list.to(new Receiver<LocationFeed>(){
@Override
public void onSuccess(LocationFeed response) {
String contents="";
for (Location location: response.getItems()) {
contents += "[kind:" + location.getKind() + ",tstamp:" + location.getTimestampMs() + ",lat:"+ location.getLatitude() + ", lon:" + location.getLongitude() + ", acc:" + location.getAccuracy()+"]";
}
latitudeOutput.setContents(contents);
}
@Override
public void onFailure(ServerFailure error) {
Window.alert("Error getting locations\n" + error.getMessage());
}
});
list.fire();
}
Here is the output:
[kind:latitude#location,tstamp:1326913375408,lat:null, lon:null, acc:null]
[kind:latitude#location,tstamp:1326913314239,lat:null, lon:null, acc:null]
[kind:latitude#location,tstamp:1326909690808,lat:null, lon:null, acc:null]
[kind:latitude#location,tstamp:1326909508852,lat:null, lon:null, acc:null]
[kind:latitude#location,tstamp:1326909389969,lat:null, lon:null, acc:null]
Original issue reported on code.google.com by vids.sam...@gmail.com on 18 Jan 2012 at 7:47
Original issue reported on code.google.com by
vids.sam...@gmail.com
on 18 Jan 2012 at 7:47