Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2014
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. GPSTracker.java
  2. /**
  3.      * Function to get latitude
  4.      * */
  5.     public double getLatitude(){
  6.         if(location != null){
  7.             latitude = location.getLatitude();
  8.         }
  9.          
  10.         // return latitude
  11.         return latitude;
  12.     }
  13.      
  14.     /**
  15.      * Function to get longitude
  16.      * */
  17.     public double getLongitude(){
  18.         if(location != null){
  19.             longitude = location.getLongitude();
  20.         }
  21.          
  22.         // return longitude
  23.         return longitude;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement