Question: I am using Yii2 2amigos/google maps.
Could someone explain how this works?

I am getting the following error:
Class 'vendor\dosamigos\google\maps\LatLng' not found

I thought the file path to latLng would be what is above, however the file path in my vendor is:
vendor/2amigos/yii2-google-maps-library/latlng

Not sure about the error displayed

Edit: Thanks gmc for your help

```
use yii\helpers\Html;
use yii\widgets\DetailView;
use backend\models\House;
use dosamigos\google\maps\LatLng;
use dosamigos\google\maps\services\DirectionsWayPoint;
use dosamigos\google\maps\services\TravelMode;
use dosamigos\google\maps\overlays\PolylineOptions;
use dosamigos\google\maps\services\DirectionsRenderer;
use dosamigos\google\maps\services\DirectionsService;
use dosamigos\google\maps\overlays\InfoWindow;
use dosamigos\google\maps\overlays\Marker;
use dosamigos\google\maps\Map;
use dosamigos\google\maps\services\DirectionsRequest;
use dosamigos\google\maps\overlays\Polygon;
use dosamigos\google\maps\layers\BicyclingLayer;

    $coord = new LatLng(['lat' => 39.720089311812094, 'lng' =>     2.91165944519042]);
$map = new Map([
'center' => $coord,
'zoom' => 14,
]);

// Display the map -finally :)
echo $map->display(); 

```

Edit 2:
Problem was that guzzlehttp 4 ,updated to guzzlehttp 6 and it works.
Thanks for the help gmc and touqeer.

Answer: 
Please Install composer first from yii2 site then hit the following code in the command prompt in your www basic/advance template directory.

make sure you have the use dosamigos code in your site view file 

use dosamigos\google\maps\LatLng;
i.e 

```
C:\> composer require "2amigos/yii2-google-maps-library" "*"

```
This is how I solved the problem under the vendor folder go to the yii2soft folder and open the extensions.php file and add the following code:

```
  '2amigos/yii2-google-maps-library' => 
   array (
       'name' => '2amigos/yii2-google-maps-library',
       'version' => '9999999-dev',
       'alias' => 
            array (
                 '@dosamigos/google/maps' => $vendorDir . '/2amigos/yii2-google-maps-library',
            ),
   ),

```