Advertisement
jbjares

randomLocation

May 10th, 2015
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1.     private Location getLocation() {
  2.         String[] result = RandomCountryLatLngDataUtil.choose();
  3.         Location location = new Location();
  4.         location.setCountry(result[0]);
  5.         location.setLat(result[1]);
  6.         location.setLon(result[2]);
  7.         return location;
  8.     }
  9.    
  10. PS.: SourceNamesEnum can be found at http://pastebin.com/dQBJC9e9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement