public class

GooglePlaces

extends Object
java.lang.Object
   ↳ com.c2call.sdk.pub.richmessage.places.GooglePlaces

Summary

Constants
String API_KEY
String PLACES_DETAILS_URL
String PLACES_SEARCH_URL
Public Constructors
GooglePlaces()
Public Methods
static String getAddressByReference(String reference)
static GooglePlaceDetailResponse getDetails(String refernce)
static Bitmap getLocationBitmap(SCStringLocation location, int width, int height, Out<String> outUrl)
static Bitmap getLocationBitmap(double latitude, double longitude, int width, int height, Out<String> outUrl)
static String getLocationBitmapUrl(String locKey, int width, int height)
static String getLocationBitmapUrl(SCStringLocation location, int width, int height)
static GooglePlacesResponse getPlaces(double latitude, double longitude, int radius)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String API_KEY

Constant Value: "AIzaSyCRHl14P4mUezDcF2hy3ClzExfzTMd1o7U"

public static final String PLACES_DETAILS_URL

Constant Value: "https://maps.googleapis.com/maps/api/place/details/json?key=%s&reference=%s&sensor=%b"

public static final String PLACES_SEARCH_URL

Constant Value: "https://maps.googleapis.com/maps/api/place/search/json?key=%s&location=%s&radius=%d&sensor=%b"

Public Constructors

public GooglePlaces ()

Public Methods

public static String getAddressByReference (String reference)

Throws
IOException

public static GooglePlaceDetailResponse getDetails (String refernce)

public static Bitmap getLocationBitmap (SCStringLocation location, int width, int height, Out<String> outUrl)

public static Bitmap getLocationBitmap (double latitude, double longitude, int width, int height, Out<String> outUrl)

public static String getLocationBitmapUrl (String locKey, int width, int height)

public static String getLocationBitmapUrl (SCStringLocation location, int width, int height)

public static GooglePlacesResponse getPlaces (double latitude, double longitude, int radius)