Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:59:49+00:00 2026-06-05T22:59:49+00:00

I want to display on my WordPress website using MapMyFitness’s API. It needs to

  • 0

I want to display on my WordPress website using MapMyFitness’s API. It needs to be in a friendly format for my readers so I am thinking it can be converted into posts. Should I write a script that would directly pull this data from their servers (during each page refresh) or should I create and schedule a cron job for it? I do like the idea of creating a cron job for it (since my site will need to keep track of ratings and comments for each route), but I am not sure where to start for it.

Here’s a URL I would be using to grab data from:

http://api.mapmyfitness.com/3.1/routes/get_route?&o=xml&r=&route_key=&route_id=15219484&created_date=&old_json=&loc=

There API does support JSON, so the &o= parameter can be set to “&o=Json”.

Here’s a link to the API I am using: api.mapmyfitness.com/3.1/

And here’s a link to the Routes method which is being used in the link above. It shows how you can manipulate the data: api.mapmyfitness.com/3.1/routes/get_route?doc

Please let me know if I should provide anymore details about what I am trying to accomplish.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:59:50+00:00Added an answer on June 5, 2026 at 10:59 pm

    there’s a few ways you could go about this..

    but to keep it simple you could just use a XML parser to read the xml returned from the API,
    this xml file, you can do what you want with it, adding pages/posts for each route?

    are you using, google maps to display the route points?

    heres a little code block that you could use in your wordpress sidebar.

    open sidebar.php

    pop this little code snippet in there.

    $url = "http://api.mapmyfitness.com/3.1/routes/get_route?&o=xml&r=&route_key=&route_id=15219484&created_date=&old_json=&loc=";
    $xml= simplexml_load_file($url);
    
    foreach($xml->output as $output){
       echo "User: ".$output->user->username."<br/>";
       echo "RouteName: ".$output->route_name;
       echo "<ul>";
       //loop through each point
       foreach($output->points as $point){
           echo "<li>Lat: ".$point->point->lat." Long: ".$point->point->lng."</li>";
       }
       echo "</ul>";
    }
    

    this should produce a list
    User: mm75 RouteName: All PANTHER TRACE – Riverview FL Mar 31, 2010 1:14 PM

    • Lat: 27.81178 Long: -82.330725
    • Lat: 27.81178 Long: -82.330725

    etc..etc..etc..

    hopefully this puts you on track, 🙂

    Marty

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having magento ecommerce website & wordpress blog site. I want to display recent
I'm currently using 'wp_list_pages' to display child pages within my wordpress website. Here is
Im using wordpress to develop a site ... I want to display everything in
I installed the JSON API Plug-In for my wordpress site. I want to display
I am customising the Wordpress plugin, JSON API . I want to output: Display
I'm using Wordpress to manage posts in my website, but I don't want to
I want to Display Google Map into my wordpress site. I have used below
I have a WordPress installation on my site, and I want to display WP
I want to display character's names over their heads in my first person game(using
I am developing wordpress website where i display the latest 3 posts items (based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.