Route Planner Class (Miscellaneous)

Creative Navigatr is a simple class that uses the TomTom API to calculate the quickest route between point A and point B.

Implementation example

<?php // The UTF-8 charset will fix some unusual characters
header('Content-Type:text/html; charset=UTF-8');

// include the classes that creative navigatr needs to work
include './creativedc.helper.class.php';
include './creativedc.class.php';

// call the class
$dc = new CreativeDC();

/* setup and run the Creative Navigatr
* 1st parameter: starting point
* 2nd parameter: destination
*/
$dc?>distance('Wierden', 'Hengelo, Gieterij 200, NL');

print_r($dc->dc_data);

Updates

Version 1.0.1.3

  • Added the possibility to add a time and day to your direction lookup;
  • Better documentation

Download Route Planner Class (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *