From 82c4fb44cfe387f56d36ea277cb8fe086a16882a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 30 Sep 2020 06:44:43 -0700 Subject: [PATCH] use https for arcgis geocoder --- p3k/Geocoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);