Interface GeolocationResolver

  • All Known Implementing Classes:
    DefaultGeolocationResolver

    public interface GeolocationResolver
    Interface to resolve the address string of nodes.
    Author:
    mvrueden
    • Method Detail

      • resolve

        Map<Integer,​Coordinates> resolve​(Collection<Integer> nodeIds)
        Resolve the address string to coordinates for all nodes in nodeIds.
        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

        Map<Integer,​Coordinates> resolve​(Map<Integer,​String> nodeIdAddressMap)
        Resolves each entry's address to its coordinate.
        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

        Coordinates resolve​(String addressString)
        Resolves the given addressString.
        Parameters:
        addressString - The address to resolve to coordinates.
        Returns:
        The resolved coordinates.