Android Open Source - android-google-places-master Place






From Project

Back to project page android-google-places-master.

License

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.

Java Source Code

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;
    }
    


}




Java Source Code List

com.a2plab.googleplaces.GooglePlaces.java
com.a2plab.googleplaces.models.Event.java
com.a2plab.googleplaces.models.GooglePlaceBase.java
com.a2plab.googleplaces.models.Photo.java
com.a2plab.googleplaces.models.PlaceDetails.java
com.a2plab.googleplaces.models.Place.java
com.a2plab.googleplaces.models.Review.java
com.a2plab.googleplaces.query.DetailsQuery.java
com.a2plab.googleplaces.query.NearbySearchQuery.java
com.a2plab.googleplaces.query.PhotoQuery.java
com.a2plab.googleplaces.query.QueryBuilder.java
com.a2plab.googleplaces.query.Query.java
com.a2plab.googleplaces.query.RadarSearch.java
com.a2plab.googleplaces.query.SearchQuery.java
com.a2plab.googleplaces.query.TextSearchQuery.java
com.a2plab.googleplaces.result.PhotoResult.java
com.a2plab.googleplaces.result.PlaceDetailsResult.java
com.a2plab.googleplaces.result.PlacesResult.java
com.a2plab.googleplaces.result.Result.java