public class GeocoderService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ApiEndpoints |
_endpoints |
protected EnvironmentSettings |
_settings |
| Constructor and Description |
|---|
GeocoderService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
Do not use this.
|
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.RequestBody |
createJsonBody(Object body) |
protected <T extends ApiResponse<?>> |
executeRequest(okhttp3.Request apiRequest,
Class<T> classOfT,
String requestBody) |
GeocodeJobResponse |
geocode(ParsedJob job,
Address address,
GeocodeCredentials geocodeCredentials)
Use this if you would like to provide an address for geocoding instead of using the one in the parsed
job.
|
GeocodeJobResponse |
geocode(ParsedJob job,
GeocodeCredentials geocodeCredentials)
Uses the address in the job (if present) to look up geocoordinates and add them into the ParsedJob object.
|
GeocodeResumeResponse |
geocode(ParsedResume resume,
Address address,
GeocodeCredentials geocodeCredentials)
Use this if you would like to provide an address for geocoding instead of using the one in the parsed
resume.
|
GeocodeResumeResponse |
geocode(ParsedResume resume,
GeocodeCredentials geocodeCredentials)
Uses the address in the resume (if present) to look up geocoordinates and add them into the ParsedResume object.
|
GeocodeAndIndexJobResponse |
geocodeAndIndex(ParsedJob job,
IndexingOptionsGeneric indexingOptions,
Address address,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Use this if you would like to provide an address for geocoding instead of using the one in the parsed
rjobesume.
|
GeocodeAndIndexJobResponse |
geocodeAndIndex(ParsedJob job,
IndexingOptionsGeneric indexingOptions,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Uses the address in the job (if present) to look up geocoordinates and add them into the ParsedJob object.
|
GeocodeAndIndexJobResponse |
geocodeAndIndex(ParsedJob job,
IndexingOptionsGeneric indexingOptions,
GeoCoordinates coordinates,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Use this if you already have latitude/longitude coordinates and simply wish to add them to your parsed job.
|
GeocodeAndIndexResumeResponse |
geocodeAndIndex(ParsedResume resume,
IndexingOptionsGeneric indexingOptions,
Address address,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Use this if you would like to provide an address for geocoding instead of using the one in the parsed
resume.
|
GeocodeAndIndexResumeResponse |
geocodeAndIndex(ParsedResume resume,
IndexingOptionsGeneric indexingOptions,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Uses the address in the resume (if present) to look up geocoordinates and add them into the ParsedResume object.
|
GeocodeAndIndexResumeResponse |
geocodeAndIndex(ParsedResume resume,
IndexingOptionsGeneric indexingOptions,
GeoCoordinates coordinates,
boolean indexIfGeocodeFails,
GeocodeCredentials geocodeCredentials)
Use this if you already have latitude/longitude coordinates and simply wish to add them to your parsed resume.
|
protected void |
setEnvironment(IndexingOptionsGeneric options) |
protected final EnvironmentSettings _settings
protected final ApiEndpoints _endpoints
public GeocoderService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
TxClient.geocoder()httpClient - The http client for API callssettings - environment settingspublic GeocodeResumeResponse geocode(ParsedResume resume, GeocodeCredentials geocodeCredentials) throws TxException
resume - The resume to insert the geocoordinates (from the address) intogeocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeResumeResponse geocode(ParsedResume resume, Address address, GeocodeCredentials geocodeCredentials) throws TxException
resume - The resume to insert the geocoordinates (from the address) intoaddress - The address to use to retrieve geocoordinatesgeocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeJobResponse geocode(ParsedJob job, GeocodeCredentials geocodeCredentials) throws TxException
job - The job to insert the geocoordinates (from the address) intogeocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeJobResponse geocode(ParsedJob job, Address address, GeocodeCredentials geocodeCredentials) throws TxException
job - The job to insert the geocoordinates (from the address) intoaddress - The address to use to retrieve geocoordinatesgeocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexResumeResponse geocodeAndIndex(ParsedResume resume, IndexingOptionsGeneric indexingOptions, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
resume - The resume to geocodeindexingOptions - What index/document id to use to index the document after geocodingindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexResumeResponse geocodeAndIndex(ParsedResume resume, IndexingOptionsGeneric indexingOptions, Address address, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
resume - The resume to insert the geocoordinates (from the address) intoindexingOptions - What index/document id to use to index the document after geocodingaddress - The address to use to retrieve geocoordinatesindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexResumeResponse geocodeAndIndex(ParsedResume resume, IndexingOptionsGeneric indexingOptions, GeoCoordinates coordinates, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
resume - The resume to insert the geocoordinates intoindexingOptions - What index/document id to use to index the document after geocodingcoordinates - The geocoordinates to useindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexJobResponse geocodeAndIndex(ParsedJob job, IndexingOptionsGeneric indexingOptions, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
job - The job to geocodeindexingOptions - What index/document id to use to index the document after geocodingindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexJobResponse geocodeAndIndex(ParsedJob job, IndexingOptionsGeneric indexingOptions, Address address, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
job - The job to insert the geocoordinates (from the address) intoindexingOptions - What index/document id to use to index the document after geocodingaddress - The address to use to retrieve geocoordinatesindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredpublic GeocodeAndIndexJobResponse geocodeAndIndex(ParsedJob job, IndexingOptionsGeneric indexingOptions, GeoCoordinates coordinates, boolean indexIfGeocodeFails, GeocodeCredentials geocodeCredentials) throws TxException
job - The job to insert the geocoordinates intoindexingOptions - What index/document id to use to index the document after geocodingcoordinates - The geocoordinates to useindexIfGeocodeFails - Indicates whether or not the document should still be added to the index if the geocode request fails.geocodeCredentials - - The credentials you want to use for geocoding (use null for built-in credentials)TxException - Thrown when an API error occurredprotected void setEnvironment(IndexingOptionsGeneric options)
protected okhttp3.RequestBody createJsonBody(Object body)
protected <T extends ApiResponse<?>> HttpResponse<T> executeRequest(okhttp3.Request apiRequest, Class<T> classOfT, String requestBody) throws TxException
TxExceptionCopyright © 2025. All rights reserved.