LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Finding paths between two GPS coordinates on Google maps, embedded in a Qt widget (https://www.linuxquestions.org/questions/programming-9/finding-paths-between-two-gps-coordinates-on-google-maps-embedded-in-a-qt-widget-881534/)

Aquarius_Girl 05-19-2011 12:31 AM

Finding paths between two GPS coordinates on Google maps, embedded in a Qt widget
 
QtMobility 1.2

Is this the class that does the trick: http://apidocs.meego.com/1.2-preview...ngmanager.html ?

Or there are some other ways of doing the same?

--Anisha

markush 05-20-2011 09:46 AM

Hi,

well, I'm not a programmer, but since I searched a long time for programs for Linux which support my GPS-device (I need it for Geocaching), I've some overview about the software. I'd recommend to look at the sources of "QLandkarteGT" http://www.qlandkarte.org/index.php?...&id=3&Itemid=4. at least GeoMath.cpp within this sources looks promising.

Markus

Aquarius_Girl 05-24-2011 04:57 AM

Bad news
 
Quote:

Originally Posted by Anisha Kaul (Post 4360586)
Is this the class that does the trick: http://apidocs.meego.com/1.2-preview...ngmanager.html ?

Or there are some other ways of doing the same?

Well, that class is NOT the right thing for the Google maps. QtMobility's calculateRoute function allows only the Nokia provider.

Quote:

Originally Posted by markush (Post 4361950)
I'd recommend to look at the sources of "QLandkarteGT" http://www.qlandkarte.org/index.php?...&id=3&Itemid=4. at least GeoMath.cpp within this sources looks promising.

Thanks for responding,

I peeked at your link, and couldn't find answers to:
1. What are GPS maps?
2. Does it support Google map tiles, since that's the most descriptive map I ve found. I don't want Openstreet Maps.
3. I couldn't find any link towards this project's API.

I haven't yet downloaded its source, but I will soon and see if what's in GeoMath.cpp.

markush 05-24-2011 08:07 AM

Hi Anisha,

I'm using QLandkarteGT with Openstreetmaps ;).

GPS-maps (as I understand) are routable maps which one can install on GPS-devices. I'm using Openstreetmaps on a Garmin-device.

I did not really understand what you want to do. I know that one can get coordinates by clicking into a google-map. How do you generate the coordinates? automatically (via a script)?

And if you have the coordinates of two points, what exactly is the path between them? a mathmatical "line"?, a part of the spherical surface? or the route which one can go/drive from one point to the other via the streets?

Maybe I can help if I understand more of the real problem.

Markus


All times are GMT -5. The time now is 09:36 AM.