Android Open Source - android-async-google-places Response






From Project

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

License

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.

Java Source Code

package io.github.axxiss.places;
// w  w w  .j a va  2  s .c  o  m
import io.github.axxiss.places.model.Place;

/**
 * The response obtained from Google's servers.
 *
 * @author Axxiss
 */
public class Response {
    private static final String TAG = "Response";
    private String[] html_attributions;
    private Place[] results;
    private String status;
    private String next_page_token;

    /**
     * Returns an array of Places, with information about each. See Nearby Search Results for
     * information about these results. The Places API returns up to 20 establishment results per
     * query. Additionally, political results may be returned which serve to identify the area of
     * the request.
     *
     * @return
     */
    public Place[] getResults() {
        return results;
    }

    /**
     * Returns metadata on the request.
     *
     * @return the status code
     */
    public String getStatus() {
        return status;
    }

    /**
     * Returns a set of attributions about this listing which must be displayed to the user.
     *
     * @return the html attributes.
     */
    public String[] getHtmlAttributions() {
        return html_attributions;
    }

    /**
     * Contains a token that can be used to return up to 20 additional results. A next_page_token
     * will not be returned if there are no additional results to display. The maximum number of
     * results that can be returned is 60. There is a short delay between when a next_page_token is
     * issued, and when it will become valid.
     *
     * @return
     */
    public String getNextPageToken() {
        return next_page_token;
    }
}




Java Source Code List

io.github.axxis.places.sample.MainActivity.java
io.github.axxis.places.sample.PlaceActivity.java
io.github.axxiss.places.PlacesSettings.java
io.github.axxiss.places.Response.java
io.github.axxiss.places.callback.PhotoCallback.java
io.github.axxiss.places.callback.PlacesCallback.java
io.github.axxiss.places.enums.Params.java
io.github.axxiss.places.enums.PlaceType.java
io.github.axxiss.places.enums.Price.java
io.github.axxiss.places.enums.RankBy.java
io.github.axxiss.places.enums.Request.java
io.github.axxiss.places.enums.Status.java
io.github.axxiss.places.exception.ApiPlacesException.java
io.github.axxiss.places.listeners.OnPlaceClickListener.java
io.github.axxiss.places.model.AddressComponent.java
io.github.axxiss.places.model.AspectRating.java
io.github.axxiss.places.model.Event.java
io.github.axxiss.places.model.Geometry.java
io.github.axxiss.places.model.Location.java
io.github.axxiss.places.model.OpeningHours.java
io.github.axxiss.places.model.PeriodData.java
io.github.axxiss.places.model.Period.java
io.github.axxiss.places.model.Photo.java
io.github.axxiss.places.model.Place.java
io.github.axxiss.places.model.Review.java
io.github.axxiss.places.request.BaseSearch.java
io.github.axxiss.places.request.NearbySearch.java
io.github.axxiss.places.request.PlaceDetails.java
io.github.axxiss.places.request.PlaceParams.java
io.github.axxiss.places.request.PlacePhotos.java
io.github.axxiss.places.request.PlaceSearch.java
io.github.axxiss.places.request.PlacesClient.java
io.github.axxiss.places.request.RadarSearch.java
io.github.axxiss.places.request.TextSearch.java