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)
GeolocationResolverresolve in interface GeolocationResolvernodeIds - The ids to resolve the address string to coordinates.public Map<Integer,Coordinates> resolve(Map<Integer,String> nodeIdAddressMap)
GeolocationResolverresolve in interface GeolocationResolvernodeIdAddressMap - Key: nodeId, Value: Addresspublic Coordinates resolve(String addressString)
GeolocationResolverresolve in interface GeolocationResolveraddressString - The address to resolve to coordinates.Copyright © 2020. All rights reserved.