PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2013-04-15 (4 years ago) RSS 2.0 feedStarStarStarStar 63%Total: 1,789 This week: 2All time: 2,134 This week: 403Up
Version License PHP version Categories
google-directions 1.0GNU General Publi...5.2.0PHP 5, Web services, Geography
Description Author

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.

Recommendations

Traffic simulation with Maps
Perform traffic simulation with Google Maps

Innovation Award
PHP Programming Innovation award winner
May 2013
Winner


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
  Performance   Level  
Name: Marcus Brasizza <contact>
Classes: 6 packages by
Country: Brazil Brazil
Age: 30
All time rank: 66050 in Brazil Brazil
Week rank: 268 Up21 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Screenshots  
  • 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  
 0%
Total:1,789
This week:2
All time:2,134
This week:403Up
User Ratings User Comments (1)
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:894
 
Pointing google map was too dark.
3 years ago (Arun Signit)
70%StarStarStarStar