Scenario
Use a configuration to build a geocoder.
Sample
public SimpleGeocodeWrapper() throws GeocodingException {
GeocodingAPI geocoder = new GeocoderBuilder()
// ggs.home - "{directory}/ggs-dist-{version}"
// resources - directory containsing GGS runtime resource "{directory}/ggs-dist-{version}/resources"
// location where ggs configuration can be found {ggs.home}/resources
.withConfiguration(new ConfigurationBuilder()
.withResourcesPath(Paths.get("{directory}/ggs-dist-{version}/resources"))
.build())
// default preferences, if none defined it will
// use the defaults defined in {ggs.home}/resources/config/addressing.yaml location
.withPreferences(new GeocoderPreferences())
.build();
}
Note:
Paths.get("{directory}/someOtherData"), ...) // this will only be used if resources location already does not contain any data info