PHP code example of geocoder-php / azure-maps-provider
1. Go to this page and download the library: Download geocoder-php/azure-maps-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geocoder-php / azure-maps-provider example snippets
$httpClient = new \Http\Discovery\Psr18Client();
// You must provide a subscription key
$provider = new \Geocoder\Provider\AzureMaps\AzureMaps($httpClient, 'your-subscription-key');
$result = $geocoder->geocodeQuery(GeocodeQuery::create('Yehuda Hamaccabi 15, Tel aviv'));