Class GeolocListenerServiceImpl

java.lang.Object
ch.tocco.nice2.optional.geolocation.impl.GeolocListenerServiceImpl
All Implemented Interfaces:
GeolocListenerService

@Component public class GeolocListenerServiceImpl extends Object implements GeolocListenerService
  • Field Details

  • Constructor Details

  • Method Details

    • runGeoLocationService

      public void runGeoLocationService(Entity entity, String geoLocQuery)
      Runs the geocoding service to retrive geographical location information for the given address query and sets the received position (latitude/longitude) and the search result status on the given target entity.
      Specified by:
      runGeoLocationService in interface GeolocListenerService
      Parameters:
      entity - the source entity where the location informations will be set
      geoLocQuery - the specified address query
    • clearGeolocation

      public void clearGeolocation(Entity entity)
      Description copied from interface: GeolocListenerService
      Clear the location information.
      Specified by:
      clearGeolocation in interface GeolocListenerService
      Parameters:
      entity - the source entity where the location information will be cleared
    • clearGeolocation

      public void clearGeolocation(Entity entity, @Nullable @Nullable String statusId)