Code example for Location

Methods: setLatitudesetLongitude

0
        mLocation = location;
    } 
 
    public Stop(String name, double latitude, double longitude) {
        setName(name);
        mLocation = new Location("sthlmtraveling");
        mLocation.setLatitude(latitude);
        mLocation.setLongitude(longitude);
    } 
 
    public Stop(Parcel parcel) {
        mName = parcel.readString();
        mLocation = parcel.readParcelable(null);
        mSiteId = parcel.readInt();
    } 
 
    /** 
     * Create a new Stop that is a copy of the given Stop. 
     * @param stop the stop 
     */ 
    public Stop(Stop stop) {