PHP Classes

PHP Google Driving Directions: Get driving directions using Google Maps API

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 1,928 All time: 2,039 This week: 404Up
Version License PHP version Categories
google-directions 1.0GNU General Publi...5.2.0PHP 5, Web services, Geography


This class can get driving directions using Google Maps API.

It takes the addresses of two locations and sends a HTTP request to Google Maps API to retrieve driving directions to go from one location to the other.

The class may also retrieve the driving directions drawn in an image of the map that includes both locations.

The map image is stored in a given file in either JPEG or PNG formats. The scale level of the map is also configurable.


Traffic simulation with Maps
Perform traffic simulation with Google Maps

Innovation Award
PHP Programming Innovation award winner
May 2013

Prize: One copy of the Zend Studio
The Google Maps API provides several useful services besides showing maps, like for instance providing driving directions to go from one location to another.

This class provides a PHP interface to obtain driving directions between two locations using the Google Maps API.

Manuel Lemos
Picture of Marcus Brasizza
  Performance   Level  
Name: Marcus Brasizza <contact>
Classes: 6 packages by
Country: Brazil Brazil
Age: 36
All time rank: 63847 in Brazil Brazil
Week rank: 578 Up44 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  • oututmap
  Files folder image Files  
File Role Description
Plain text file googleApiClass.php Class the api class to connect with de google maps
Accessible without login Plain text file showimage.php Aux. Auxiliar data to show the image created with the google api
Accessible without login Plain text file test.php Example Test script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,039
This week:404Up
User Ratings User Comments (1)
 All time
Pointing google map was too dark.
10 years ago (Arun Signit)