Search in sources :

Example 1 with AddressInfo

use of org.opennms.features.geolocation.api.AddressInfo in project opennms by OpenNMS.

the class DefaultGeolocationService method toAddressInfo.

private static AddressInfo toAddressInfo(OnmsGeolocation input) {
    if (input != null) {
        AddressInfo addressInfo = new AddressInfo();
        addressInfo.setAddress1(input.getAddress1());
        addressInfo.setAddress2(input.getAddress2());
        addressInfo.setCity(input.getCity());
        addressInfo.setCountry(input.getCountry());
        addressInfo.setState(input.getState());
        addressInfo.setZip(input.getZip());
        return addressInfo;
    }
    return null;
}
Also used : AddressInfo(org.opennms.features.geolocation.api.AddressInfo)

Aggregations

AddressInfo (org.opennms.features.geolocation.api.AddressInfo)1