egeloen / ivory-google-map

Google Map API v3 integration for PHP 5.6+.
MIT License
325 stars 185 forks source link

Where do I put APP_KEY when i use DistanceMatrixRequest #273

Open spmsupun opened 6 years ago

spmsupun commented 6 years ago

There are no place to put my google app_key when i use DistanceMatrixRequest

sirio3mil commented 6 years ago

You have something like this

$distanceMatrix = new DistanceMatrixService(new Client(), new GuzzleMessageFactory());

Then you can set it here

$distanceMatrix->setKey('API-KEY');