@Test public final void testPOIWithAccesNoOffsets() { LocationReferenceHolder encLocRef = null; try { PoiAccessLocation inputLocation = td.getPOIWithAccessNoOffset(); encLocRef = encodeLocation(inputLocation); assertTrue(encLocRef.isValid()); RawLocationReference rawData = encLocRef .getRawLocationReferenceData(); GeoCoordinates inputPoi = inputLocation.getPointLocation(); GeoCoordinates coords = rawData.getGeoCoordinates(); assertEquals(coords.getLatitudeDeg(), inputPoi.getLatitudeDeg()); assertEquals(coords.getLongitudeDeg(), inputPoi.getLongitudeDeg()); Offsets offsets = rawData.getOffsets(); assertTrue(offsets.getPositiveOffset(0) <= 0); assertTrue(offsets.getNegativeOffset(0) <= 0); } catch (InvalidMapDataException e) { Assert.fail("Unexpected exception", e); } }
@Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); } }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  static List<PhysicalEncoder> getPhysicalEncoderServices(); @Override List<LocationReferenceHolder> encodeLocations(
            final OpenLREncoderParameter parameter, final List<Location> loc); @Override LocationReferenceHolder encodeLocation(
            final OpenLREncoderParameter parameter, final Location loc); @Override String getMajorVersion(); @Override String getMinorVersion(); @Override String getPatchVersion(); @Override String getVersion(); }
OpenLREncoder implements openlr.OpenLREncoder { @Override public LocationReferenceHolder encodeLocation( final OpenLREncoderParameter parameter, final Location loc) throws OpenLRProcessingException { return encodeLocation(parameter, new OpenLREncoderProperties(parameter.getConfiguration(), parameter.getPhysicalEncoders()), loc); }  static List<PhysicalEncoder> getPhysicalEncoderServices(); @Override List<LocationReferenceHolder> encodeLocations(
            final OpenLREncoderParameter parameter, final List<Location> loc); @Override LocationReferenceHolder encodeLocation(
            final OpenLREncoderParameter parameter, final Location loc); @Override String getMajorVersion(); @Override String getMinorVersion(); @Override String getPatchVersion(); @Override String getVersion();  }