From 4c7463851b6b2e30c6402e823a027acfec0a7e87 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Thu, 29 Jun 2017 13:31:02 -0700 Subject: [PATCH] fix atlas URL --- lib/helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers.php b/lib/helpers.php index 507020d..b7cdb54 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -69,7 +69,7 @@ function parse_geo_uri($uri) { function get_timezone($lat, $lng) { try { $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, 'http://atlas.p3k.io/api/timezone?latitude='.$lat.'&longitude='.$lng); + curl_setopt($ch, CURLOPT_URL, 'https://atlas.p3k.io/api/timezone?latitude='.$lat.'&longitude='.$lng); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $tz = @json_decode($response); @@ -201,7 +201,7 @@ function build_static_map_url($latitude, $longitude, $height, $width, $zoom) { } function static_map_service($query) { - return 'http://atlas.dev/map/img?' . $query; + return 'https://atlas.p3k.io/map/img?' . $query; } function relative_time($date) {