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 Details

  • 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:
      searchForPlace in class com.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:
      getCountryCode in class com.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:
      downloadAttachmentLocation in class com.streamwide.smartms.lib.template.map.MapProvider
    • getSearchPlacesURL

      @Nullable public String getSearchPlacesURL(@NonNull android.content.Context context, @NonNull String search)
      Specified by:
      getSearchPlacesURL in class com.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:
      getLocationThumbnailUrl in class com.streamwide.smartms.lib.template.map.MapProvider
    • handleParseGeoCoderCountryCode

      @Nullable public String handleParseGeoCoderCountryCode(@Nullable String response)
      Specified by:
      handleParseGeoCoderCountryCode in class com.streamwide.smartms.lib.template.map.MapProvider
    • handleParsePlaces

      @Nullable public List<com.streamwide.smartms.lib.template.location.PositionItem> handleParsePlaces(@Nullable String jsonResult)
      Specified by:
      handleParsePlaces in class com.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:
      handleAddressFromLocation in class com.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:
      handleDetailedAddressFromLocation in class com.streamwide.smartms.lib.template.map.MapProvider
    • getGoogleMapsPlaceDetailsURL

      @Nullable public static String getGoogleMapsPlaceDetailsURL(@NonNull String placeId)
    • getGoogleNearByPlacesURL

      @Nullable public static String getGoogleNearByPlacesURL(@Nullable com.streamwide.smartms.lib.template.map.Position position)
      Parameters:
      position -
      Returns: