// Path: lib/src/main/java/com/miguelbcr/io/rx_gps_service/lib/entities/LatLong.java
// @AutoValue public abstract class LatLong {
//   public abstract double latitude();
// 
//   public abstract double longitude();
// 
//   public abstract float altitude();
// 
//   public abstract boolean isCheckPoint();
// 
//   public static LatLong create(double latitude, double longitude) {
//     return create(latitude, longitude, 0, false);
//   }
// 
//   public static LatLong create(double latitude, double longitude, float altitude,
//       boolean isCheckPoint) {
//     return new AutoValue_LatLong(latitude, longitude, altitude, isCheckPoint);
//   }
// }


import android.location.Location;
import com.miguelbcr.io.rx_gps_service.lib.entities.LatLong;
import java.util.Locale;
import rx.Observable;
/*
 * Copyright 2016 miguelbcr
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.miguelbcr.io.rx_gps_service.lib;


class Utilities {

  Utilities() {
  }

// Path: lib/src/main/java/com/miguelbcr/io/rx_gps_service/lib/entities/LatLong.java
// @AutoValue public abstract class LatLong {
//   public abstract double latitude();
// 
//   public abstract double longitude();
// 
//   public abstract float altitude();
// 
//   public abstract boolean isCheckPoint();
// 
//   public static LatLong create(double latitude, double longitude) {
//     return create(latitude, longitude, 0, false);
//   }
// 
//   public static LatLong create(double latitude, double longitude, float altitude,
//       boolean isCheckPoint) {
//     return new AutoValue_LatLong(latitude, longitude, altitude, isCheckPoint);
//   }
// }


// Path: lib/src/main/java/com/miguelbcr/io/rx_gps_service/lib/Utilities.java
import android.location.Location;
import com.miguelbcr.io.rx_gps_service.lib.entities.LatLong;
import java.util.Locale;
import rx.Observable;

/*
 * Copyright 2016 miguelbcr
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.miguelbcr.io.rx_gps_service.lib;


class Utilities {

  Utilities() {
  }

  Observable<Float> getDistanceFromTo(LatLong fromLatLong, LatLong toLatLong) {