(→‎Converting tangogps's POI into OSM xml files(importable into JOSM): change to GPLv2+ in order to be compatible with foxtrot-gps license)

(25 intermediate revisions by 11 users not shown)

Line 1:

Line 1:

{{Languages|tangoGPS}}

{{Languages|tangoGPS}}

{{Application|tangoGPS}}

{{Application|tangoGPS}}

+

+

{{ApplicationBox|

+

Name=[[TangoGPS]]|

+

Description= TangoGPS is a map application which can utilize Neo's built-in GPS to show your current location. It automatically downloads maps from http://openstreetmap.com and you can download map tiles for offline use too. There is also a fork of TangoGPS - [[FoxtrotGPS]], which can be alternatively installed and has more open development. The feature sets are quite close.|

+

Screenshot=TangoGPS1.jpg|

+

Homepage=http://www.tangogps.org|

+

TestedOn=Om 2008.8|

+

PackageName=tangogps

+

}}

+

__TOC__

__TOC__

Line 60:

Line 70:

=== FSO Milestone 3 ([[OpenmokoFramework]]) ===

=== FSO Milestone 3 ([[OpenmokoFramework]]) ===

−

There are two various GPS interfaces -- (1) one provided with default gpsd and (2) the other provided by ogpsd (part of the frameworkd). tangoGPS requires the ad 1 and it obtains information from gps from the dbus interface provided by gpsd.

+

There are two various GPS interfaces -- (1) one provided with default [[gpsd]] and (2) the other provided by [[ogpsd]] (part of the frameworkd). tangoGPS requires the ad 1 and it obtains information from gps from the [[dbus]] interface provided by gpsd.

−

On FSO milestone 3, there is tangoGPS pre-installed as well as both gpsd and ogpsd (see <code>/etc/frameworkd.conf</code>, section <code>ogpsd</code>). As mentioned above, there also exists a fso-gpsd package, that converts from ad 2 to ad 1 (unfortunately fso-gpsd is not in default image and must be installed with <code>opkg install fso-gpsd</code>).

+

On FSO milestone 3, there is [[tangoGPS]] pre-installed as well as both gpsd and ogpsd (see <code>/etc/frameworkd.conf</code>, section <code>ogpsd</code>). As mentioned above, there also exists a fso-gpsd package, that converts from ad 2 to ad 1 (unfortunately fso-gpsd is not in default image and must be installed with <code>opkg install fso-gpsd</code>).

You cannot have both "providers" (ad 1 & ad 2) running, but you can have ad 2 (recommended for FSO) and "convertor" (fso-gpsd) providing the ad 1. To get usable tangoGPS on FreeRunner, one has to:

You cannot have both "providers" (ad 1 & ad 2) running, but you can have ad 2 (recommended for FSO) and "convertor" (fso-gpsd) providing the ad 1. To get usable tangoGPS on FreeRunner, one has to:

Line 70:

Line 80:

# check that gpsd is not running -- <code>/etc/init.d/gpsd stop</code>

# check that gpsd is not running -- <code>/etc/init.d/gpsd stop</code>

# finally start up the tangoGPS and locate the gps signal; it should be up in a few minutes.

# finally start up the tangoGPS and locate the gps signal; it should be up in a few minutes.

Line 76:

Line 86:

Note 2: You can automate the process -- (1) remove the startup script for gpsd (<code>update-rc.d -f gpsd remove</code>) and (2) create a simple startup scipt for fso-gpsd (you can use current script for gpsd as a skeleton)

Note 2: You can automate the process -- (1) remove the startup script for gpsd (<code>update-rc.d -f gpsd remove</code>) and (2) create a simple startup scipt for fso-gpsd (you can use current script for gpsd as a skeleton)

−

== Downloading Maps ==

== Downloading Maps ==

=== pre-load for offline use ===

=== pre-load for offline use ===

−

tangoGPS can bunch-download the map images so you don't need an internet connection while walking around. By default tangoGPS stores downloaded maps to /tmp/. This folder is lost every time you reboot the device. But you can use the "Config" tab within tangoGPS to change the "Cache Dir" location to , for example, /osm/ . So downloaded maps will be kept in the Neos flash, also after reboot. Note that the map files can take up large amounts of space, so you may want to store them on your sd card, e.g. in /media/card/osm or /media/mmcblk0p2/data/maps.

+

tangoGPS can bunch-download the map images so you don't need an internet connection while walking around. They are stored in ~/maps folder, this can be changed in settings. Note that the map files can take up large amounts of space, so you may want to store them on your sd card, e.g. in /media/card/osm or /media/mmcblk0p2/data/maps.

If you find that TangoGPS does not remember configuration changes that you make to it, be sure to run it from the touchscreen, and not an SSH session. TangoGPS uses gconf to store its settings, and cannot access gconf when run via SSH.

If you find that TangoGPS does not remember configuration changes that you make to it, be sure to run it from the touchscreen, and not an SSH session. TangoGPS uses gconf to store its settings, and cannot access gconf when run via SSH.

−

An alternative way to setup the configuration is through the command line. having /media/mmcblk0p2/data/maps as your data directory you could do the follwing:

+

An alternative way to setup the configuration is through the command line. having /media/mmcblk0p2/data/maps as your data directory you could do the following:

Once you have set the location to a non-volatile path, you can connect your Neo to the internet by USB or WiFi at home and start downloading the maps of your area. Tap the map screen and select "map download". Now on-the-road tangoGPS will be able to show you maps in different zoom levels even though you are not connected to the internet.

Once you have set the location to a non-volatile path, you can connect your Neo to the internet by USB or WiFi at home and start downloading the maps of your area. Tap the map screen and select "map download". Now on-the-road tangoGPS will be able to show you maps in different zoom levels even though you are not connected to the internet.

Line 108:

Line 123:

== Using tangoGPS for OpenStreetMap.org ==

== Using tangoGPS for OpenStreetMap.org ==

=== creating tracks ===

=== creating tracks ===

+

Step by step guide to use TangoGPS for contributing to OSM can be found here: [http://www.tangogps.org/gps/articles/13-Howto-contribute-to-OpenStreetMap.html]

+

tangoGPS works fine to create track for Openstreetmap. However, it records and stores a track in its native format, use [http://www.tangogps.org/downloads/convert2gpx.pl convert2gpx.pl] (see also: [http://psung.blogspot.com/2008/07/sharing-gps-tracks-from-tangogps-on.html tools])(you can also use [http://minucci.net/file/convert2gpx.py convert2gpx.py]) to convert the track to GPX (i.e to import into JOSM):

tangoGPS works fine to create track for Openstreetmap. However, it records and stores a track in its native format, use [http://www.tangogps.org/downloads/convert2gpx.pl convert2gpx.pl] (see also: [http://psung.blogspot.com/2008/07/sharing-gps-tracks-from-tangogps-on.html tools])(you can also use [http://minucci.net/file/convert2gpx.py convert2gpx.py]) to convert the track to GPX (i.e to import into JOSM):

Line 122:

Line 139:

== Importing Tracks into tangoGPS ==

== Importing Tracks into tangoGPS ==

−

tangoGPS does not support the import of tracks directly, however the following xslt style sheet can be used to convert gpx tracks to tangogps log files, which can then be imported<br>

+

tangoGPS does not support the import of tracks directly. However the following xslt style sheet can be used to convert gpx tracks - e.g from routing software such as maps.cloudmade.com - to tangogps log files, which can then be imported<br>

−

<nowiki>

+

=== XSLT ===

+

At present this style sheet will only convert tracks which make use of the 'wpt' (waypoint) tag. Some software uses the 'trkpt' (trackpoint) tag. This will be incorporated into the stylesheet at some point. In the meantime, it can be used on the latter type of gpx file by changing 'wpt' to 'trkpt' on line 6.

move output_file.log to the tangogps traces directory, and use the 'Load...' button on the 'Track' tab to overlay it on the map

−

and use the 'Load...' button on the 'Track' tab of tangogps to overlay it on the map

+

Note: this stylesheet was thrown together in a short time, and makes at least one shortcut - namely, the use of 'dummy' variables for various details, such as the altitude, date, etc. Feel free to improve this if required, although it has no bearing on the display of the track

−

Note: this stylesheet was thrown together in a short time, and makes at least one shortcut - namely, the use of 'dummy' variables for various details, such as the altitude, date, etc. feel free to improve

+

=== python ===

+

+

This small python script will convert GPX tracks and routes to tangogps file format.

You may help yourself by using [http://relet.net/frog/archives/68 this tool] to import GPX trackpoints as a series of POIs directly into the sqlite database which tangoGPS uses to store POIs.

You may help yourself by using [http://relet.net/frog/archives/68 this tool] to import GPX trackpoints as a series of POIs directly into the sqlite database which tangoGPS uses to store POIs.

Line 181:

Line 235:

If you would like to import GeoRSS feeds from Google maps or elsewhere as points of interest (POI), read this [http://bonedaddy.net/pabs3/log/2009/05/28/georss-tangogps/ blog post]. Hopefully TangoGPS upstream will include the script soon, but until then and if you aren't using Debian, download this [http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=georss-to-tangogps-poi.py;att=1;bug=530718 script] from the Debian bug tracker.

If you would like to import GeoRSS feeds from Google maps or elsewhere as points of interest (POI), read this [http://bonedaddy.net/pabs3/log/2009/05/28/georss-tangogps/ blog post]. Hopefully TangoGPS upstream will include the script soon, but until then and if you aren't using Debian, download this [http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=georss-to-tangogps-poi.py;att=1;bug=530718 script] from the Debian bug tracker.

'''Generalization:''' The above 'Maps' URL isn't the current one anymore, also. Google changes the URL layout sometimes. To find out the current scheme open maps.google.com and view the page source. Search for http:// until you find sth similar to the above URL. This way I found

'''Generalization:''' The above 'Maps' URL isn't the current one anymore, also. Google changes the URL layout sometimes. To find out the current scheme open maps.google.com and view the page source. Search for http:// until you find sth similar to the above URL. This way I found

As mentioned in the thread http://lists.openmoko.org/pipermail/community/2009-November/thread.html#57478 it is possible to update to the latest version by doing the following steps:

−

Description= TangoGPS is a map application which can utilize Neo's built-in GPS to show your current location. It automatically downloads maps from http://openstreetmap.com and you can download map tiles for offline use too.|

+

−

Screenshot=TangoGPS1.jpg|

+

* cd /tmp

−

Homepage=http://www.tangogps.org|

+

* wget http://www.tangogps.org/downloads/tangogps_0.9.8-1_armel.deb

−

TestedOn=Om 2008.8|

+

* ar -x tangogps_0.9.8-1_armel.deb

−

PackageName=tangogps

+

* tar xfvz data.tar.gz

−

}}

+

* scp /tmp/usr/bin/tangogps to_your_phone

−

</onlyinclude>

+

+

or more easy:

+

+

* nano /etc/opkg/arch.conf

+

+

add 'arch armel 36' (without the quotes) to the bottom of the file and exit and save (CTRL-X, Y, Enter)

tangoGPS is one of the applications that runs on the Openmoko Phones. For a list of all applications, visit Applications

TangoGPS

TangoGPS is a map application which can utilize Neo's built-in GPS to show your current location. It automatically downloads maps from http://openstreetmap.com and you can download map tiles for offline use too. There is also a fork of TangoGPS - FoxtrotGPS, which can be alternatively installed and has more open development. The feature sets are quite close.

To get gpsd working on the FreeRunner you have to change the configuration according to Gpsd#GPS_on_GTA02.
Then start gpsd by:

/etc/init.d/gpsd start

If you get an error about no GPS device in /etc/default/gpsd execute:

echo "GPS_DEV=\"/dev/ttySAC1\"" > /etc/default/gpsd

Now you must power up the GPS-chip by opening the "Settings" application and setting the GPS entry to "on". Now you can run tangoGPS and wait until it get's a GPS fix. This can take up to a few minutes.

It depends on gpsd which conflicts with frameworkd in fso-frameworkd, but there is a package available that provides
the gpsd interface to clients while using the services of the FSO frameworkd daemon, fso-gpsd. The install.sh script for the Debian distribution on the OpenMoko already installs it. To add tangogps run

apt-get install tangogps

The gps device will be started automatically upon the invocation of tangogps or another gps application, e.g. like the one in Zhone. For the records, one can manually turn on the gps device using

There are two various GPS interfaces -- (1) one provided with default gpsd and (2) the other provided by ogpsd (part of the frameworkd). tangoGPS requires the ad 1 and it obtains information from gps from the dbus interface provided by gpsd.

On FSO milestone 3, there is tangoGPS pre-installed as well as both gpsd and ogpsd (see /etc/frameworkd.conf, section ogpsd). As mentioned above, there also exists a fso-gpsd package, that converts from ad 2 to ad 1 (unfortunately fso-gpsd is not in default image and must be installed with opkg install fso-gpsd).

You cannot have both "providers" (ad 1 & ad 2) running, but you can have ad 2 (recommended for FSO) and "convertor" (fso-gpsd) providing the ad 1. To get usable tangoGPS on FreeRunner, one has to:

check that /etc/frameworkd.conf, section ogpsd reads GPS data from the right device (/dev/ttySAC1)

if changes were made to configuration, one should restart the frameworkd -- /etc/init.d/frameworkd stop && /etc/init.d/frameworkd start

finally start up the tangoGPS and locate the gps signal; it should be up in a few minutes.

Note 1: handy application for testing the gps (and gps signal strength) is openmoko-agpsui, see general gps info at Gps

Note 2: You can automate the process -- (1) remove the startup script for gpsd (update-rc.d -f gpsd remove) and (2) create a simple startup scipt for fso-gpsd (you can use current script for gpsd as a skeleton)

tangoGPS can bunch-download the map images so you don't need an internet connection while walking around. They are stored in ~/maps folder, this can be changed in settings. Note that the map files can take up large amounts of space, so you may want to store them on your sd card, e.g. in /media/card/osm or /media/mmcblk0p2/data/maps.

If you find that TangoGPS does not remember configuration changes that you make to it, be sure to run it from the touchscreen, and not an SSH session. TangoGPS uses gconf to store its settings, and cannot access gconf when run via SSH.

An alternative way to setup the configuration is through the command line. having /media/mmcblk0p2/data/maps as your data directory you could do the following:

Once you have set the location to a non-volatile path, you can connect your Neo to the internet by USB or WiFi at home and start downloading the maps of your area. Tap the map screen and select "map download". Now on-the-road tangoGPS will be able to show you maps in different zoom levels even though you are not connected to the internet.

There are steps included in those instructions to improve GPS performance. The great thing is that once you get GPRS working, you can roam with TangoGPS running and have it download maps as needed over the GPRS connection!

If you have many maps already downloaded, updateMaps.pl is a perl script to bring you up-to-date. It's made to work for OSM maps only, but can be adapted to work with any map dataset. See also: Yaouh!.

Step by step guide to use TangoGPS for contributing to OSM can be found here: [1]

tangoGPS works fine to create track for Openstreetmap. However, it records and stores a track in its native format, use convert2gpx.pl (see also: tools)(you can also use convert2gpx.py) to convert the track to GPX (i.e to import into JOSM):

tangoGPS does not support the import of tracks directly. However the following xslt style sheet can be used to convert gpx tracks - e.g from routing software such as maps.cloudmade.com - to tangogps log files, which can then be imported

At present this style sheet will only convert tracks which make use of the 'wpt' (waypoint) tag. Some software uses the 'trkpt' (trackpoint) tag. This will be incorporated into the stylesheet at some point. In the meantime, it can be used on the latter type of gpx file by changing 'wpt' to 'trkpt' on line 6.

move output_file.log to the tangogps traces directory, and use the 'Load...' button on the 'Track' tab to overlay it on the map

Note: this stylesheet was thrown together in a short time, and makes at least one shortcut - namely, the use of 'dummy' variables for various details, such as the altitude, date, etc. Feel free to improve this if required, although it has no bearing on the display of the track

If you would like to import GeoRSS feeds from Google maps or elsewhere as points of interest (POI), read this blog post. Hopefully TangoGPS upstream will include the script soon, but until then and if you aren't using Debian, download this script from the Debian bug tracker.

Generalization: The above 'Maps' URL isn't the current one anymore, also. Google changes the URL layout sometimes. To find out the current scheme open maps.google.com and view the page source. Search for http:// until you find sth similar to the above URL. This way I found

http://mt0.google.com/vt/lyrs=m@120&hl=en&x=%d&y=%d&z=%d&;s=Galileo

Now you could tweak your configuration unsing the above link (delete the 'amp;' tokens and replace every number with '%d'), for example with

To get gpsd working on the FreeRunner you have to change the configuration according to Gpsd#GPS_on_GTA02.
Then start gpsd by:

/etc/init.d/gpsd start

If you get an error about no GPS device in /etc/default/gpsd execute:

echo "GPS_DEV=\"/dev/ttySAC1\"" > /etc/default/gpsd

Now you must power up the GPS-chip by opening the "Settings" application and setting the GPS entry to "on". Now you can run tangoGPS and wait until it get's a GPS fix. This can take up to a few minutes.

It depends on gpsd which conflicts with frameworkd in fso-frameworkd, but there is a package available that provides
the gpsd interface to clients while using the services of the FSO frameworkd daemon, fso-gpsd. The install.sh script for the Debian distribution on the OpenMoko already installs it. To add tangogps run

apt-get install tangogps

The gps device will be started automatically upon the invocation of tangogps or another gps application, e.g. like the one in Zhone. For the records, one can manually turn on the gps device using

There are two various GPS interfaces -- (1) one provided with default gpsd and (2) the other provided by ogpsd (part of the frameworkd). tangoGPS requires the ad 1 and it obtains information from gps from the dbus interface provided by gpsd.

On FSO milestone 3, there is tangoGPS pre-installed as well as both gpsd and ogpsd (see /etc/frameworkd.conf, section ogpsd). As mentioned above, there also exists a fso-gpsd package, that converts from ad 2 to ad 1 (unfortunately fso-gpsd is not in default image and must be installed with opkg install fso-gpsd).

You cannot have both "providers" (ad 1 & ad 2) running, but you can have ad 2 (recommended for FSO) and "convertor" (fso-gpsd) providing the ad 1. To get usable tangoGPS on FreeRunner, one has to:

check that /etc/frameworkd.conf, section ogpsd reads GPS data from the right device (/dev/ttySAC1)

if changes were made to configuration, one should restart the frameworkd -- /etc/init.d/frameworkd stop && /etc/init.d/frameworkd start

finally start up the tangoGPS and locate the gps signal; it should be up in a few minutes.

Note 1: handy application for testing the gps (and gps signal strength) is openmoko-agpsui, see general gps info at Gps

Note 2: You can automate the process -- (1) remove the startup script for gpsd (update-rc.d -f gpsd remove) and (2) create a simple startup scipt for fso-gpsd (you can use current script for gpsd as a skeleton)

Downloading Maps

pre-load for offline use

tangoGPS can bunch-download the map images so you don't need an internet connection while walking around. By default tangoGPS stores downloaded maps to /tmp/. This folder is lost every time you reboot the device. But you can use the "Config" tab within tangoGPS to change the "Cache Dir" location to , for example, /osm/ . So downloaded maps will be kept in the Neos flash, also after reboot. Note that the map files can take up large amounts of space, so you may want to store them on your sd card, e.g. in /media/card/osm or /media/mmcblk0p2/data/maps.

If you find that TangoGPS does not remember configuration changes that you make to it, be sure to run it from the touchscreen, and not an SSH session. TangoGPS uses gconf to store its settings, and cannot access gconf when run via SSH.

An alternative way to setup the configuration is through the command line. having /media/mmcblk0p2/data/maps as your data directory you could do the follwing:

Once you have set the location to a non-volatile path, you can connect your Neo to the internet by USB or WiFi at home and start downloading the maps of your area. Tap the map screen and select "map download". Now on-the-road tangoGPS will be able to show you maps in different zoom levels even though you are not connected to the internet.

Downloading Maps via GPRS

There are steps included in those instructions to improve GPS performance. The great thing is that once you get GPRS working, you can roam with TangoGPS running and have it download maps as needed over the GPRS connection!

Updating pre-downloaded maps

If you have many maps already downloaded, updateMaps.pl is a perl script to bring you up-to-date. It's made to work for OSM maps only, but can be adapted to work with any map dataset. See also: Yaouh!.

Using tangoGPS for OpenStreetMap.org

creating tracks

tangoGPS works fine to create track for Openstreetmap. However, it records and stores a track in its native format, use convert2gpx.pl (see also: tools)(you can also use convert2gpx.py) to convert the track to GPX (i.e to import into JOSM):

and use the 'Load...' button on the 'Track' tab of tangogps to overlay it on the map

Note: this stylesheet was thrown together in a short time, and makes at least one shortcut - namely, the use of 'dummy' variables for various details, such as the altitude, date, etc. feel free to improve

You may help yourself by using this tool to import GPX trackpoints as a series of POIs directly into the sqlite database which tangoGPS uses to store POIs.

Using the TangoGPS logs

You can convert the logfiles from TangoGPS to other formats using gpsbabel and this style-file:

Save this as tangogps.style and you can use gpsbabel to for instance convert to google-earth files like this:

gpsbabel -i xcsv,style=tangogps.style -o kml -f file.log -F file.kml

Add POI from address

You can use gtkaddpoi for searching the destination address and add it as a POI.

Add POI from GeoRSS feed

If you would like to import GeoRSS feeds from Google maps or elsewhere as points of interest (POI), read this blog post. Hopefully TangoGPS upstream will include the script soon, but until then and if you aren't using Debian, download this script from the Debian bug tracker.

Generalization: The above 'Maps' URL isn't the current one anymore, also. Google changes the URL layout sometimes. To find out the current scheme open maps.google.com and view the page source. Search for http:// until you find sth similar to the above URL. This way I found

http://mt1.google.com/mt/v=w2.92&hl=en&x=3&y=5&z=4&s=Galile

Now you could tweak your configuration unsing the above link (delete the 'amp;' tokens and replace every number with '%d'), for example with

TangoGPS is a map application which can utilize Neo's built-in GPS to show your current location. It automatically downloads maps from http://openstreetmap.com and you can download map tiles for offline use too.