/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }
/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }
/** * Sets the geo point of the extension passed in. This will first try to * replace any existing point information. If there is no existing point, then * it will simply add the point extension. * * @param ext The extension point to add the Point to. * @param point The new point information. */ public static void setPoint(ExtensionPoint ext, Point point) { Point existing = getPointExtension(ext); if (existing != null) { Double lat = point != null ? point.getLatitude() : null; Double lon = point != null ? point.getLongitude() : null; existing.setGeoLocation(lat, lon); } else if (point != null) { ext.setExtension(point); } }