Interface GeolocationResolver
-
- All Known Implementing Classes:
DefaultGeolocationResolver
public interface GeolocationResolver
Interface to resolve the address string of nodes.- Author:
- mvrueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Coordinates
resolve(String addressString)
Resolves the given addressString.Map<Integer,Coordinates>
resolve(Collection<Integer> nodeIds)
Resolve the address string to coordinates for all nodes in nodeIds.Map<Integer,Coordinates>
resolve(Map<Integer,String> nodeIdAddressMap)
Resolves each entry's address to its coordinate.
-
-
-
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.
-
-