diff --git a/p3k/Geocoder.php b/p3k/Geocoder.php index 9f5c8e9..0c75d58 100644 --- a/p3k/Geocoder.php +++ b/p3k/Geocoder.php @@ -84,7 +84,7 @@ class Geocoder { private static function _reverse($lat, $lng) { $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, 'http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location='.$lng.'%2C'.$lat.'&outSR=4326&f=json&distance=10000'); + curl_setopt($ch, CURLOPT_URL, 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location='.$lng.'%2C'.$lat.'&outSR=4326&f=json&distance=10000'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // curl_setopt($ch, CURLOPT_USERAGENT, ''); curl_setopt($ch, CURLOPT_TIMEOUT, 5);