Interface GeolocationProvider


public interface GeolocationProvider

Provide geolocation functionality.

There is no framework implementation of this interface.

To provide geolocation functionality to DefaultGeoCoordinateService, create an implementation of this and register it as a bean. It will be injected into DefaultGeoCoordinateService.

  • Method Summary

    Modifier and Type
    Method
    Description
    getCoordinates(com.broadleafcommerce.fulfillment.common.domain.Address address)
    Get latitude and longitude (as GeoCoordinates) for the given Address.
  • Method Details

    • getCoordinates

      GeoCoordinates getCoordinates(com.broadleafcommerce.fulfillment.common.domain.Address address)
      Get latitude and longitude (as GeoCoordinates) for the given Address.
      Parameters:
      address - The Address to look up.
      Returns:
      The latitude and longitude (as GeoCoordinates) for the given Address.