Class GoogleMapProvider
java.lang.Object
com.streamwide.smartms.lib.template.map.MapProvider
com.streamwide.smartms.lib.googlemap.GoogleMapProvider
public class GoogleMapProvider
extends com.streamwide.smartms.lib.template.map.MapProvider
-
Field Summary
FieldsFields inherited from class com.streamwide.smartms.lib.template.map.MapProvider
ADDRESS_FIELD, CITY_FIELD, COUNTRY_FIELD, STATE_FIELD, ZIP_CODE_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionGoogleMapProvider(IMapApiKeyCallback iMapApiKeyCallback, IGoogleMapProviderCallBack<List<com.streamwide.smartms.lib.template.location.PositionItem>> mGoogleMapProviderCallBack) GoogleMapProvider(IGoogleMapProviderCallBack<List<com.streamwide.smartms.lib.template.location.PositionItem>> mGoogleMapProviderCallBack) -
Method Summary
Modifier and TypeMethodDescriptiondownloadAttachmentLocation(android.content.Context context, double latitude, double longitude, String markerColor, boolean addMarker) voidgetCountryCode(android.content.Context context, double lat, double lng, com.streamwide.smartms.lib.template.map.ISearchLocation listener) static StringgetGoogleMapsPlaceDetailsURL(String placeId) static StringgetGoogleNearByPlacesURL(com.streamwide.smartms.lib.template.map.Position position) getLocationThumbnailUrl(android.content.Context context, String latitude, String longitude, String colorMarker, boolean addMarker) getSearchPlacesURL(android.content.Context context, String search) voidhandleAddressFromLocation(android.content.Context context, double lat, double lng, com.streamwide.smartms.lib.template.map.ISearchLocation listener) voidhandleDetailedAddressFromLocation(android.content.Context context, double lat, double lng, com.streamwide.smartms.lib.template.map.ISearchLocation listener) handleParseGeoCoderCountryCode(String response) List<com.streamwide.smartms.lib.template.location.PositionItem>handleParsePlaces(String jsonResult) voidsearchForPlace(android.content.Context context, String query, com.streamwide.smartms.lib.template.map.ISearchLocation listener)
-
Field Details
-
CLASS_NAME
- See Also:
-
-
Constructor Details
-
GoogleMapProvider
public GoogleMapProvider(@NonNull IGoogleMapProviderCallBack<List<com.streamwide.smartms.lib.template.location.PositionItem>> mGoogleMapProviderCallBack) -
GoogleMapProvider
public GoogleMapProvider(@Nullable IMapApiKeyCallback iMapApiKeyCallback, @NonNull IGoogleMapProviderCallBack<List<com.streamwide.smartms.lib.template.location.PositionItem>> mGoogleMapProviderCallBack)
-
-
Method Details
-
searchForPlace
public void searchForPlace(@NonNull android.content.Context context, @NonNull String query, @Nullable com.streamwide.smartms.lib.template.map.ISearchLocation listener) - Overrides:
searchForPlacein classcom.streamwide.smartms.lib.template.map.MapProvider
-
getCountryCode
public void getCountryCode(@NonNull android.content.Context context, double lat, double lng, @Nullable com.streamwide.smartms.lib.template.map.ISearchLocation listener) - Overrides:
getCountryCodein classcom.streamwide.smartms.lib.template.map.MapProvider
-
downloadAttachmentLocation
@WorkerThread @Nullable public String downloadAttachmentLocation(@NonNull android.content.Context context, double latitude, double longitude, @NonNull String markerColor, boolean addMarker) - Overrides:
downloadAttachmentLocationin classcom.streamwide.smartms.lib.template.map.MapProvider
-
getSearchPlacesURL
@Nullable public String getSearchPlacesURL(@NonNull android.content.Context context, @NonNull String search) - Specified by:
getSearchPlacesURLin classcom.streamwide.smartms.lib.template.map.MapProvider
-
getLocationThumbnailUrl
@NonNull public String getLocationThumbnailUrl(@NonNull android.content.Context context, @NonNull String latitude, @NonNull String longitude, @Nullable String colorMarker, boolean addMarker) - Specified by:
getLocationThumbnailUrlin classcom.streamwide.smartms.lib.template.map.MapProvider
-
handleParseGeoCoderCountryCode
- Specified by:
handleParseGeoCoderCountryCodein classcom.streamwide.smartms.lib.template.map.MapProvider
-
handleParsePlaces
@Nullable public List<com.streamwide.smartms.lib.template.location.PositionItem> handleParsePlaces(@Nullable String jsonResult) - Specified by:
handleParsePlacesin classcom.streamwide.smartms.lib.template.map.MapProvider
-
handleAddressFromLocation
public void handleAddressFromLocation(@NonNull android.content.Context context, double lat, double lng, @Nullable com.streamwide.smartms.lib.template.map.ISearchLocation listener) - Specified by:
handleAddressFromLocationin classcom.streamwide.smartms.lib.template.map.MapProvider
-
handleDetailedAddressFromLocation
public void handleDetailedAddressFromLocation(@NonNull android.content.Context context, double lat, double lng, @Nullable com.streamwide.smartms.lib.template.map.ISearchLocation listener) - Specified by:
handleDetailedAddressFromLocationin classcom.streamwide.smartms.lib.template.map.MapProvider
-
getGoogleMapsPlaceDetailsURL
-
getGoogleNearByPlacesURL
@Nullable public static String getGoogleNearByPlacesURL(@Nullable com.streamwide.smartms.lib.template.map.Position position) - Parameters:
position-- Returns:
-