@@ -0,0 +1,1694 @@
+package com.cocoahero.android.gmaps.addons.util;%0A%0Aimport com.google.android.gms.maps.model.LatLng;%0Aimport com.google.android.gms.maps.model.LatLngBounds;%0Aimport com.google.android.gms.maps.model.PolygonOptions;%0A%0Apublic class LatLngBoundsUtils %7B%0A%0A    /**%0A     * Calculates the center coordinate of a %7B@link LatLngBounds%7D.%0A     * %0A     * @param bounds A %7B@link LatLngBounds%7D instance.%0A     * @return the center coordinate of the given bounds.%0A     */%0A    public static LatLng getCenter(LatLngBounds bounds) %7B%0A        double n = bounds.northeast.latitude;%0A        double e = bounds.northeast.longitude;%0A        double s = bounds.southwest.latitude;%0A        double w = bounds.southwest.longitude;%0A%0A        double lat = ((n + s) / 2.0);%0A        double lon = ((e + w) / 2.0);%0A%0A        return new LatLng(lat, lon);%0A    %7D%0A%0A    /**%0A     * Creates a %7B@link PolygonOptions%7D instance configured to visualize a%0A     * %7B@link LatLngBounds%7D.%0A     * %0A     * @param bounds A %7B@link LatLngBounds%7D instance.%0A     * @return a %7B@link PolygonOptions%7D instance configured to visualize a%0A     *         %7B@link LatLngBounds%7D.%0A     */%0A    public static PolygonOptions toPolygonOptions(LatLngBounds bounds) %7B%0A        double n = bounds.northeast.latitude;%0A        double e = bounds.northeast.longitude;%0A        double s = bounds.southwest.latitude;%0A        double w = bounds.southwest.longitude;%0A%0A        LatLng ne = new LatLng(n, e);%0A        LatLng nw = new LatLng(n, w);%0A        LatLng sw = new LatLng(s, w);%0A        LatLng se = new LatLng(s, e);%0A%0A        PolygonOptions opts = new PolygonOptions();%0A%0A        opts.add(ne);%0A        opts.add(nw);%0A        opts.add(sw);%0A        opts.add(se);%0A%0A        return opts;%0A    %7D%0A%0A%7D%0A

Add LatLngBoundsUtils