Geocoding API: Building a geocoder (Java) - geo_addressing_sdk - 5.0

Geo Addressing SDK Developer Guide

Product type
Software
Portfolio
Locate
Product family
Geo Addressing
Product
Geo Addressing SDK
Version
5.0
Language
English
Product name
Geo Addressing SDK
Title
Geo Addressing SDK Developer Guide
Copyright
2023
First publish date
2007
Last updated
2024-11-14
Published on
2024-11-14T12:57:29.533342

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