Skip to content
Using Google Maps API to add locations and calculate the shortest route by Traveling Salesman Algorithm
C++ Other
  1. C++ 99.0%
  2. Other 1.0%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
configuration.cpp
configuration.h
distancematrix.cpp
distancematrix.h
exportcollectionhistory.cpp
exportcollectionhistory.h
form.cpp
form.h
form.ui
geocode_data_manager.cpp
geocode_data_manager.h
globalfunctions.cpp
globalfunctions.h
infoophaalpunt.cpp
infoophaalpunt.h
kiesgedaneophaling.cpp
kiesgedaneophaling.h
kiesophaalpunten.cpp
kiesophaalpunten.h
levering.cpp
levering.h
listofophaalpuntentocontact.cpp
listofophaalpuntentocontact.h
listofophaalpuntentocontactsortfilterproxymodel.cpp
listofophaalpuntentocontactsortfilterproxymodel.h
main.cpp
mylineedit.cpp
mylineedit.h
mysortfilterproxymodel.cpp
mysortfilterproxymodel.h
nieuweaanmelding.cpp
nieuweaanmelding.h
opgehaaldehoeveelheid.cpp
opgehaaldehoeveelheid.h
ophaalhistoriekdialog.cpp
ophaalhistoriekdialog.h
ophaalhistoriekdialog.ui
ophaalhistoriekdialogsortfilterproxymodel.cpp
ophaalhistoriekdialogsortfilterproxymodel.h
ophaalpuntenwidget.cpp
ophaalpuntenwidget.h
ophaalpuntenwidgetsortfilterproxymodel.cpp
ophaalpuntenwidgetsortfilterproxymodel.h
routetool.cpp
routetool.h
routetool.pro
routetool.ui
slevering.h
smarker.h
sophaalpunt.h
transportationlistdocumentwriter.cpp
transportationlistdocumentwriter.h
transportationlistwriter.cpp
transportationlistwriter.h

README.md

routetool

Using Google Maps API to add locations and calculate the shortest route by Traveling Salesman Algorithm

prerequisites

see the information at https://code.google.com/p/qt-google-maps/w/list .

QJSON

On QJSON: all I get is a textfile containing The project has been moved to github: https://github.com/flavio/qjson/ git config remote.origin.url git://github.com/flavio/qjson.git

so I simply ran "git clone git://github.com/flavio/qjson.git" instead of the above mentioned 'gitorious'-link .

Afterwards, apparently my CMake version was not the right version (I use a Debian 6 which apparently has a CMake 2.8.2), this QJson requires CMake 2.8.8 or higher. I downloaded the Linux binary from http://www.cmake.org/cmake/resources/software.html and ran that straight as "cmake" following the README.md instructions from QJson.

Now, building qt-google-maps was not a problem, but running it required me to copy the files "libqjson.so" and "libqjson.so.0" (from ...../qjson/build/lib/ ) to /usr/lib/ .

All two folders: routetool and qjson must be in the same directory.

Then you need to compile qjson library first. We count that qjson library is in the qjson/build/lib directory.

Then the qt-google-maps project will be compiled OK. To run it you need to adjust LD_LIBRARY_PATH on Linux (or PATH on Windows) so that variable points to the qjson/build/lib directory.

GOOGLE MAPS API KEY

Just as the 'qt-google-maps' example from https://code.google.com/p/qt-google-maps/ , routetool uses Google Maps API v3. To use API you need to register your own application on Google. Do not worry: the procedure is very simple.

Details:

You need to login to Google, so first you need to create simple Google account. Then you can visit the page https://code.google.com/apis/console

there you can create your application. You need to check access to Google Maps API v3 in tab "Services".

Then you need create client ID in tab "API Access".

Create the file routetool.ini and add the line apiKey=.............. where the dots resemble the key given to you by the Google Api Console.

After that you can compile and run routetool.

Any problem? Please contact me directly.

<<< on MarkDown markup, see https://help.github.com/articles/writing-on-github and http://daringfireball.net/linked/2014/01/08/markdown-extension >>>

You can’t perform that action at this time.