src/Event/Parser.php
protected function createLocationEvent(array $data)
    {
        $result = new WxReceiveLocationEvent();
        $this->initReceive($result, $data);

        $result->setLatitude($data['Latitude']);
        $result->setLongitude($data['Longitude']);
        $result->setPrecision($data['Precision']);

        return $result;
    }
protected function createLocationEvent(array $data)
    {
        $result = new WxReceiveLocationEvent();
        $this->initReceive($result, $data);

        $result->setLatitude($data['Latitude']);
        $result->setLongitude($data['Longitude']);
        $result->setPrecision($data['Precision']);

        return $result;
    }
protected function createLocationEvent ( array $ data ) { $ result = new WxReceiveLocationEvent ( ) ; $ this -> initReceive ( $ result , $ data ) ; $ result -> setLatitude ( $ data [ 'Latitude' ] ) ; $ result -> setLongitude ( $ data [ 'Longitude' ] ) ; $ result -> setPrecision ( $ data [ 'Precision' ] ) ; return $ result ; }
create WxReceiveLocationEvent instance

@param array $data
@return WxReceiveLocationEvent
create WxReceiveLocationEvent instance