private String replaceBoundingBox ( String url , BoundingBox boundingBox ) { url = url . replaceAll ( MIN_LAT_VARIABLE , String . valueOf ( boundingBox . getMinLatitude ( ) ) ) ; url = url . replaceAll ( MAX_LAT_VARIABLE , String . valueOf ( boundingBox . getMaxLatitude ( ) ) ) ; url = url . replaceAll ( MIN_LON_VARIABLE , String . valueOf ( boundingBox . getMinLongitude ( ) ) ) ; url = url . replaceAll ( MAX_LON_VARIABLE , String . valueOf ( boundingBox . getMaxLongitude ( ) ) ) ; return url ; }
Replace the url parts with the bounding box