Class GeoCoderManagerImpl

  • All Implemented Interfaces:
    io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager, GeoCoderManager

    public final class GeoCoderManagerImpl
    extends Object
    implements GeoCoderManager
    Author:
    spoitrenaud
    • Constructor Detail

      • GeoCoderManagerImpl

        @Inject
        public GeoCoderManagerImpl​(GeoCoderPlugin geoCoderPlugin)
        Constructeur.
        Parameters:
        geoCoderPlugin - Plugin de Geocoding
    • Method Detail

      • findLocation

        public GeoLocation findLocation​(String address)
        Geocoding d'une adresse.
        Specified by:
        findLocation in interface GeoCoderManager
        Parameters:
        address - Chaine de caractères représentant une adresse.
        Returns:
        Liste des emplacements (latitude ; longitude) correspondant à l'adresse recherchée.
      • distanceKm

        public double distanceKm​(GeoLocation geoLocation1,
                                 GeoLocation geoLocation2)
        Calcul de distance entre deux points
        Specified by:
        distanceKm in interface GeoCoderManager
        Parameters:
        geoLocation1 - Premier point
        geoLocation2 - Second point
        Returns:
        Distance exprimées en km.