PHP Classes

PHP Wikiloc: Validate Wikiloc URL pages and extract map IDs

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-13 (8 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 14 All time: 11,360 This week: 560Up
Version License PHP version Categories
wikiloc 1.0GNU General Publi...5PHP 5, Geography, Global
Description 

Author

This package can validate Wikiloc URL pages and extract map IDs.

It provides functions that can take URLs of the Wikiloc site as parameters.

The functions can:

- Validate if a URL is of a valid Wikiloc page

- Validate if a URL is of a valid Wikiloc trail page

- Validate if a URL is of a valid Wikiloc map page

- Extract the map identifier from a Wikiloc map page URL

Innovation Award
PHP Programming Innovation award nominee
January 2024
Number 6
Wikiloc is a site that lets people who like to travel send posts with pictures of them visiting and going to trails.

The Wikiloc site has pages for each person to post their trail records.

This package provides functions that allow developers to validate Wikiloc page URLs and extract identifiers of trail maps.

Manuel Lemos
Picture of Ali YILMAZ
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 16 packages by
Country: Turkey Turkey
Age: ???
All time rank: 249042 in Turkey Turkey
Week rank: 181 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wikiloc.php</title>
</head>
<body>
    <?php
   
   
require_once('src/wikiloc.php');
   
$trailPage = 'https://www.wikiloc.com/hiking-trails/cilingoz-cennet-selaleleri-05-08-2018-27286246';
    if(
isWikilocTrailValidation($trailPage)){
        echo
'<p>This is a wikiloc page.</p>';
    }
    echo
'<p>'.getWikilocTrailId($trailPage).'</p>';


   
$trailMapPage = 'https://www.wikiloc.com/wikiloc/embedv2.do?id=27286246&elevation=off&images=off&maptype=H';
    if(
isWikilocTrailMapValidation($trailMapPage)){
        echo
'<p>This is a Wikiloc map connection.</p>';
    } else {
        echo
'<p>This is not a Wikiloc map connection.</p>';
    }
        echo
'<p>'.getWikilocTrailMapId($trailMapPage).'</p>';
   
?>

</body>
</html>


  Files folder image Files (5)  
File Role Description
Files folder imagesrc (2 files)
Accessible without login Plain text file example.html Example Example page
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text

  Files folder image Files (5)  /  src  
File Role Description
  Accessible without login Plain text file wikiloc.js Data Auxiliary data
  Accessible without login Plain text file wikiloc.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:0
All time:11,360
This week:560Up