Skip to content

Commit

Permalink
Updated Garmin request endpoint
Browse files Browse the repository at this point in the history
As the existing one was not working for some users. Thanks to <a href="https://github.com/Lastone17">Lastone17</a> for <a href="https://github.com/morehawes/inreach-mapshare/issues/2">raising this issue</a>.
  • Loading branch information
Joe Hawes committed Jul 30, 2023
1 parent e5fde7b commit b34f7d6
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
7 changes: 4 additions & 3 deletions App/Inreach.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

class InMap_Inreach extends Joe_Class {

private $request_endpoint = 'https://explore.garmin.com/feed/share/';

private $request_data = [];
// private $request_endpoint = 'https://explore.garmin.com/feed/share/';
private $request_endpoint = 'https://share.garmin.com/feed/share/';

private $request_data = [];

private $cache_id = '';
private $cache_response = [];
Expand Down
6 changes: 3 additions & 3 deletions build/inreach-mapshare.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (C) 2022 Joe Hawes
# Copyright (C) 2023 Joe Hawes
# This file is distributed under the same license as the inReach MapShare package.
msgid ""
msgstr ""
"Project-Id-Version: inReach MapShare 1.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/build\n"
"POT-Creation-Date: 2022-10-12 12:33:01+00:00\n"
"POT-Creation-Date: 2023-07-28 16:10:35+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: en\n"
Expand Down
4 changes: 2 additions & 2 deletions inreach-mapshare.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: inReach MapShare
Plugin URI: https://github.com/morehawes/inreach-mapshare
Description: Display inReach MapShare data on your WordPress site. Visit the <a href="options-general.php?page=inreach-mapshare-settings">Settings</a> page to create and customise Shortcodes.
Version: 1.1
Version: 1.2
Text Domain: inreach-mapshare
Author: Joe Hawes
Author URI: https://www.morehawes.co.uk/
Expand Down Expand Up @@ -50,7 +50,7 @@
'plugin_slug' => $plugin_slug,
'plugin_text_domain' => $plugin_slug,
'plugin_name' => $plugin_name,
'plugin_version' => '1.1',
'plugin_version' => '1.2',
'settings_id' => 'inmap_settings',
'settings_default_tab' => 'joe-settings-tab-mapshare',
'site_url' => 'https://github.com/morehawes/inreach-mapshare/',
Expand Down
Binary file modified inreach-mapshare.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"slug": "inreach-mapshare",
"name": "inReach MapShare",
"version": "1.0",
"version": "1.2",
"description": "inReach MapShare for WordPress",
"author": "Joe Hawes",
"main": "Gruntfile.js",
Expand Down
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Requires at least:** 4.6
**Tested up to:** 6.0
**Requires PHP:** 7.4
**Stable tag:** 1.1
**Stable tag:** 1.2
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -112,6 +112,10 @@ This plugin requests data from your MapShare page and embeds it anywhere Shortco

## Changelog ##

### 1.2 ###

Updated Garmin request endpoint, as the existing one was not working for some users. Thanks to <a href="https://github.com/Lastone17">Lastone17</a> for <a href="https://github.com/morehawes/inreach-mapshare/issues/2">raising this issue</a>.

### 1.1 ###

Display your planned route using the Shortcode (URL accessible GeoJSON supported).
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: inreach, mapshare, embed, map, share, location
Requires at least: 4.6
Tested up to: 6.0
Requires PHP: 7.4
Stable tag: 1.1
Stable tag: 1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -100,6 +100,10 @@ This plugin requests data from your MapShare page and embeds it anywhere Shortco

== Changelog ==

= 1.2 =

Updated Garmin request endpoint, as the existing one was not working for some users. Thanks to <a href="https://github.com/Lastone17">Lastone17</a> for <a href="https://github.com/morehawes/inreach-mapshare/issues/2">raising this issue</a>.

= 1.1 =

Display your planned route using the Shortcode (URL accessible GeoJSON supported).
Expand Down

0 comments on commit b34f7d6

Please sign in to comment.