public class DefaultGeolocationResolver extends Object implements GeolocationResolver
Constructor and Description |
---|
DefaultGeolocationResolver(GeocoderServiceManager geocoderServiceManager,
NodeDao nodeDao) |
Modifier and Type | Method and Description |
---|---|
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.
|
Coordinates |
resolve(String addressString)
Resolves the given addressString.
|
public DefaultGeolocationResolver(GeocoderServiceManager geocoderServiceManager, NodeDao nodeDao)
public Map<Integer,Coordinates> resolve(Collection<Integer> nodeIds)
GeolocationResolver
resolve
in interface GeolocationResolver
nodeIds
- The ids to resolve the address string to coordinates.public Map<Integer,Coordinates> resolve(Map<Integer,String> nodeIdAddressMap)
GeolocationResolver
resolve
in interface GeolocationResolver
nodeIdAddressMap
- Key: nodeId, Value: Addresspublic Coordinates resolve(String addressString)
GeolocationResolver
resolve
in interface GeolocationResolver
addressString
- The address to resolve to coordinates.Copyright © 2021. All rights reserved.