I see now. A bound needs 2 coordinates, one southwest and one northeast. So
south, west, north and east are "parts" of coordinates.



Le 22/05/2013 à 08.10, Markus Bachmann <notifications@github.com> a écrit :

In src/Geocoder/Provider/GoogleMapsProvider.php:

> +            // update address components
> +            foreach ($result->address_components as $component) {
> +                foreach ($component->types as $type) {
> +                    $this->updateAddressComponent($resultset, $type, $component);
> +                }
> +            }
> +
> +            // update coordinates
> +            $coordinates = $result->geometry->location;
> +            $resultset['latitude']  = $coordinates->lat;
> +            $resultset['longitude'] = $coordinates->lng;
> +
> +            $resultset['bounds'] = null;
> +            if (isset($result->geometry->bounds)) {
> +                $resultset['bounds'] = array(
> +                    'south' => $result->geometry->bounds->southwest->lat,

I mean that south, east, noth and west should be coordinate (latitude,
longitude), or i'm wrong?

—
Reply to this email directly or view it on
GitHub<https://github.com/willdurand/Geocoder/pull/233/files#r4332599>
.