Wordpress Plugin to integrate Travel Data from Polarsteps within a widget.
Polarsteps.com offers a great way of logging your travel experiences. The app does record GPS Locations “Steps”. The user can add images and texts for them. However, for multiple reasons, a lot of travelers are having WordPress travel blogs up and running. If they still want to use Polarsteps and show their last location in their WordPress instance, this plugin offers basic integration between both worlds.
While being on my round the world trip, I was looking into several options how to communicate back home from my journey. In the end, I thought a combination of a traditional blogging platform used to write posts and an app like Polarsteps offers the most flexibility for me while traveling. If my girlfriend or I want to write an article what happened in the last days (for multiple locations) we can do so. If it’s just about letting everyone know where I was, I use polarsteps travel tracker. Still, for the audience it is important to have all in one place – and have a single point of knowledge.
This plugin does the first approach to caching the “Steps” on WordPress-side and giving to the users a brief information within a widget where and when the last location within polarsteps was set.
See the Github-Repo here: https://github.com/npersonn/integrate-polarsteps
As I’m not part of the company behind Polarsteps and just developed the plugin for personal purposes, I reached out to them, in order to check, if they might support the plugin officially. Mainly due to business and UX reasons, they responded they could not officially support my approach. This means the APIs on their side could change from one day to another. In this case, the plugin would stop getting new steps from your Polarsteps profile.
polarsteps-integration
directory to the /wp-content/plugins/
Cronjob Scheduler
polarsteps_update_steps
whenever needed e.g. hourlyYou registered with a unique Username on Polarsteps. This Username is used in the Polarsteps Settings.
Currently, the plugin only supports having profiles with one trip. For now enter “0” here.
Check the Settings (Settings > Polarsteps Settings), if the username is correctly set.
If the username is correct, on save the data is fetched. Afterwards, last step is shown in a notice.
Make sure that either WP-cron is activated or a Cronjob plugin is successfully triggering the action polarsteps_update_steps
.
Furthermore, the polarsteps account needs to have public trips. If the user exists but no trip nor steps, naturally the plugin cannot show your recent location.
Feel free to edit the CSS-classes polarsteps_widget
, polarsteps_location_name_href
, polarsteps_start_time
and polarsteps_country_flag
to your needs.
users
endpoint