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.request;
/*fromwww.java2s.com*//**
* The Google Places API allows you to query for place information on a variety of categories, such
* as: establishments, prominent points of interest, geographic locations, and more. You can search
* for places either by proximity or a text string. A Place Search returns a list of Places along
* with summary information about each Place; additional information is available via a Place
* Details query.
* <p/>
* Before starting with the requests, {@link io.github.axxiss.places.PlacesSettings#setApiKey(String)}
* must be called.
* <p/>
*
* @author Axxiss
*/publicclass PlaceSearch {
publicstatic TextSearch textSearch(final String query, finaldouble lat, finaldouble lng, int radius) {
returnnew TextSearch(query, lat, lng, radius);
}
publicstatic RadarSearch radarSearch(finaldouble lat, finaldouble lng, int radius) {
returnnew RadarSearch(lat, lng, radius);
}
publicstatic NearbySearch nearbySearch(finaldouble lat, finaldouble lng, int radius) {
returnnew NearbySearch(lat, lng, radius);
}
publicstatic NearbySearch nearbySearch(finaldouble lat, finaldouble lng) {
returnnew NearbySearch(lat, lng);
}
}