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.query; /*w w w .j a va2 s .c o m*/ /** * @author Giuseppe Mastroeni - aka: Kataklisma E-Mail: m.giuseppe@a2plab.com * */ public class DetailsQuery extends Query { /** * @param apiKey * @param reference */ public DetailsQuery(String apiKey, String placeid) { super(apiKey); setPlaceid(placeid); } /** * @param reference */ public DetailsQuery setReference(String reference) { queryBuilder.addParameter("reference", reference); return this; } /** * @param reference */ public DetailsQuery setPlaceid(String placeid) { queryBuilder.addParameter("placeid", placeid); return this; } /** * @param value * @return */ public DetailsQuery setOpenNow(boolean value) { queryBuilder.addParameter("opennow", Boolean.toString(value)); return this; } /** * Experimental for google. not use this! * * @param value */ protected DetailsQuery setExtensions(String value) { queryBuilder.addParameter("extensions", value); return this; } /** * */ public DetailsQuery setExtensions() { queryBuilder.addParameter("extensions", "review_summary"); return this; } /* * (non-Javadoc) * * @see com.a2plab.googleplaces.query.Query#getUrl() */ @Override public String getUrl() { return "https://maps.googleapis.com/maps/api/place/details/json?"; } }