Back to project page android-async-google-places.
The source code is released under:
Apache License
If you think the Android project android-async-google-places listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.github.axxiss.places.model; /*from w w w. jav a 2 s .co m*/ import android.os.Parcel; import android.os.Parcelable; /** * @author Axxiss */ public class Location implements Parcelable { private double lat; private double lng; public double getLat() { return lat; } public double getLng() { return lng; } public Location() { } protected Location(Parcel in) { lat = in.readDouble(); lng = in.readDouble(); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { dest.writeDouble(lat); dest.writeDouble(lng); } public static final Parcelable.Creator<Location> CREATOR = new Parcelable.Creator<Location>() { public Location createFromParcel(Parcel in) { return new Location(in); } public Location[] newArray(int size) { return new Location[size]; } }; }