Browse Source

use https for arcgis geocoder

main
Aaron Parecki 3 years ago
committed by GitHub
parent
commit
82c4fb44cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      p3k/Geocoder.php

+ 1
- 1
p3k/Geocoder.php View File

@ -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);

Loading…
Cancel
Save