◆ performGeoLookup()
static GeoLookupResult fiftyone.geolocation.core.GeoEngineHelper.performGeoLookup | ( | FlowData | data, |
HttpClient | webClient, | ||
RequestFormatter | requestFormatter | ||
) | throws IOException |
static
Use evidence from the specified FlowData instance to construct a query.
- Parameters
-
- data - the flow data to process
- webClient - the HttpClient to use when making a request to the geo-location service.
- requestFormatter - a formatter that will create a URL that can be used to query a web service based on the supplied GeoEvidence
- Returns
- A new GeoLookupResult instance. If the supplied FlowData contains the required evidence then this will contain the raw response from the web service. If not, it will contain the JavaScript to run on the client device in order to supply the required evidence.