Class DefaultGeolocationResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Coordinates resolve​(java.lang.String addressString)
      Resolves the given addressString.
      java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Collection<java.lang.Integer> nodeIds)
      Resolve the address string to coordinates for all nodes in nodeIds.
      java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Map<java.lang.Integer,​java.lang.String> nodeIdAddressMap)
      Resolves each entry's address to its coordinate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolve

        public java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Collection<java.lang.Integer> nodeIds)
        Description copied from interface: GeolocationResolver
        Resolve the address string to coordinates for all nodes in nodeIds.
        Specified by:
        resolve in interface GeolocationResolver
        Parameters:
        nodeIds - The ids to resolve the address string to coordinates.
        Returns:
        A Map (nodeId -> Coordinate) for all nodes in nodeIds which have a address defined.
      • resolve

        public java.util.Map<java.lang.Integer,​Coordinates> resolve​(java.util.Map<java.lang.Integer,​java.lang.String> nodeIdAddressMap)
        Description copied from interface: GeolocationResolver
        Resolves each entry's address to its coordinate.
        Specified by:
        resolve in interface GeolocationResolver
        Parameters:
        nodeIdAddressMap - Key: nodeId, Value: Address
        Returns:
        A Map (nodeId -> Coordinates) for all nodes which id matches the keys of the map and have an address defined and
      • resolve

        public Coordinates resolve​(java.lang.String addressString)
        Description copied from interface: GeolocationResolver
        Resolves the given addressString.
        Specified by:
        resolve in interface GeolocationResolver
        Parameters:
        addressString - The address to resolve to coordinates.
        Returns:
        The resolved coordinates.