A python api to google directions
Project description
Introduction
To access google’s directions api, you call a webservice and google returns a json-like javascript dict. This must be parsed and you may then get all directions-results out of it, as waypoints, total distance, corrected addresses and more.
Copyright / License
GPLv3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Usage
>>> from google.directions import GoogleDirections >>> gd = GoogleDirections('your-google-directions-key') >>> gd.query('berlin','paris').distance 1055351
And remember, these are driving distances, not just beeline ;)
Have fun!
Changelog
0.1 - Unreleased
0.2* - JS Parsers, DOM Parser fully working, Google API is working, but minimal.
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.