All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartcar.sdk.data.VehicleLocation Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
package com.smartcar.sdk.data;

/** POJO for Smartcar /location endpodouble */
public class VehicleLocation extends ApiData {
  private double latitude;
  private double longitude;

  /**
   * Returns the latitude of the vehicle
   *
   * @return latitude of the vehicle
   */
  public double getLatitude() {
    return this.latitude;
  }

  /**
   * Returns the longitude of the vehicle
   *
   * @return longitude of the vehicle
   */
  public double getLongitude() {
    return this.longitude;
  }

  /** @return a stringified representation of VehicleLocation */
  @Override
  public String toString() {
    return this.getClass().getName()
        + "{"
        + "latitude="
        + latitude
        + ", longitude="
        + longitude
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy