Browse Source

fix atlas URL

pull/10/head
Aaron Parecki 4 years ago
parent
commit
4c7463851b
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/helpers.php

+ 2
- 2
lib/helpers.php View File

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

Loading…
Cancel
Save