Add a helper method to convert REST Locations to Android Locations

master
DjBushido 2014-04-08 19:44:00 -04:00
parent 9bc972fe64
commit 6d6c369e2c
1 changed files with 7 additions and 0 deletions

View File

@ -38,4 +38,11 @@ public class Location {
public void setLocationLat(double locationLat) {
this.locationLat = locationLat;
}
public android.location.Location getAndroidLocation() {
android.location.Location mLocation = new android.location.Location("NinerFinderServer");
mLocation.setLatitude(getLocationLat());
mLocation.setLongitude(getLocationLong());
return mLocation;
}
}