Back to project page android-google-places-master.
The source code is released under:
MIT License
If you think the Android project android-google-places-master 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 com.a2plab.googleplaces.models; //w w w . j a v a 2 s .c o m import java.io.Serializable; //import com.google.android.gms.maps.model.LatLng; import com.google.api.client.util.Key; /** * @author Giuseppe Mastroeni - aka: Kataklisma E-Mail: m.giuseppe@a2plab.com * */ public class Place implements GooglePlaceBase { private static final long serialVersionUID = 1983125240283709545L; @Key protected String id; @Key protected String place_id; @Key protected String name; @Key protected String reference; @Key protected String icon; /** * Use this for Nearby Search instead formatted_address */ @Key protected String vicinity; @Key protected Geometry geometry; @Key protected String formatted_address; @Key protected Double rating; public static class Geometry implements Serializable { private static final long serialVersionUID = 1670272243139023026L; @Key public Location location; } public static class Location implements Serializable { private static final long serialVersionUID = -1932110927792589446L; @Key public double lat; @Key public double lng; } /** * @return the id */ public String getId() { return id; } /** * @return the name */ public String getName() { return name; } /** * @return the reference */ public String getReference() { return reference; } /** * @return the reference */ public String getPlaceId() { return place_id; } /** * @return the icon */ public String getIcon() { return icon; } /** * @return the vicinity */ public String getVicinity() { return vicinity; } /** * @return the geometry */ public Geometry getGeometry() { return geometry; } /** * @return the formatted_address */ public String getFormattedAddress() { return formatted_address; } /** * @return the rating */ public Double getRating() { return rating; } }