Articles

Which is your favorite phone?
Total Votes:
First Vote:
Last Vote:
Responde a las siguiente preguntas solo si has podido instalar la App
Responde las siguientes preguntas solo si has podido instalar la App.    ¿ ha encontrado rutas en tu dispositivo ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:
¿ Sabes si ha podido encontrar rutas en la memoria principal de tu dispositivo ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:
¿ Sabes si ha podido encontrar rutas en la tarjeta SD de tu dispositivo ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:
¿ Has tenido algún problema obteniendo el IBP de los tracks ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:
¿ Has utilizado la opción "ver análisis" ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:
¿ Crees que seguirás utilizando esta App aunque solo sirva para obtener el IBP y ver su análisis ?
  • Votes: (0%)
  • Votes: (0%)
  • Votes: (0%)
Total Votes:
First Vote:
Last Vote:

Supported browers

Google Chrome
Mozilla Firefox
Safari
Opera
Internet Explorer 10 (compatibility mode off)
Internet Explorer 11 or higther

If you are using an unsupported browser you are likely to have trouble analyzing your routes, or some parts of the site may not display correctly.

 

However you can also use the "traditional" form to analyze tracks, located in the "analyze" menu once logged on.


Manual to integrate IBP index in desktop or web applications (PHP)


To get into IBP index from a program or Web you must follow the following steps:
read the file containing the GPS data of the route .
by just getting into the file and reading its contents.

Contact IBP index to obtain the key.

PHP example written by Alex Barros www.gpsia.com
ibp.class.php

<?php
// Class for getting the IBPIndex given a local filename, further information on http://www.ibpindex.com
// By Alex Barros for Gpsia software. License: GNU/GPL v3
// Updated by IBPindexTeam
// Requirements: PHP + Curl

class IBP {
    var $filename; //Source filename
    var $ibp; //Resoult: NN XX (N=number X =alphabetic)
   
    function IBP($filename = false){ //Constructor
        if(!empty($filename)) $this->getIBP($filename);
    }
    function getIBP($filename) {

        if(file_exists($filename)) {
            //Post fields
            $post_data = array();
            $post_data['fichero'] = "@$filename";
            $post_data['UDO'] = 'your_web_key';  // Your web key, request www.ibpindex.com

            //Select sport modality
            //$post_data['MOD'] = "BYC"; // Forced Cycling
            //$post_data['MOD'] = "HKG"; // Forced Hiking
            //$post_data['MOD'] = "RNG"; // Forced Running
            //$post_data['MOD'] = "AUT"; // Autodetect

 
           //Deprecated sports modalities
            //$post_data['MOD'] = "MTB"; // Deprecated
            //$post_data['MOD'] = "RDB"; // Deprecated
            //$post_data['MOD'] = "BTT"; // Deprecated

            //Curl connection
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, "http://www.ibpindex.com/esp/ibpresponse.php" );   //<---------------- new URL
            curl_setopt($ch, CURLOPT_POST, 1 );
            curl_setopt($ch, CURLOPT_HEADER, 0);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); //Needed because redirection is used on the app
            curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            $postResult = curl_exec($ch); //return result
           
            if (curl_errno($ch)) {
                die(curl_error($ch)); //this stops the execution under a Curl failure
            }
           
            curl_close($ch); //close connection
           
            $this->ibp = $postResult;
            return $postResult;
        }
    }
}

# usage: $ibp = new IBP('path/to/file.gpx'); echo $ibp->ibp; //Returns something like 96 BYC

?>

More Articles...

  1. Llamada en PYTHON en


Contact

info@ibpindex.com

  

User Survey: Have you found the IBP index useful?
  • Votes: 0%
  • Votes: 0%
  • Votes: 0%
  • Votes: 0%
Total Votes:
First Vote:
Last Vote:
Top of Page