Friday, February 29, 2008

GPS waypoint data from W54T to Google Maps

au's Toshiba W54T is a cellphone with GPS, and a BREW application that can get location data and save to disk is preinstalled. I took this data to show the path on Google Maps.

auw54t-kml.jpg

Here is how:

Application name is "地図ビューアー". Click on "簡易ハンディGPS" and location data will be displayed. Click on "アプリ設定" , then select "あしあと設定" then use menu "あしあと保存" to save GPS data taken up to that point. The data is like this:
本ファイルは、地図ビューアーにより出力されたGPS情報ファイルです。

出力日時:2008/02/28 11:49:51 +0900

+++GPSログ+++
888234473,130.682362,33.660194
888234490,130.682271,33.659990
888234502,130.682474,33.659684
888234510,130.682458,33.659749
888234522,130.682501,33.659808
888234529,130.682389,33.659781
888234540,130.682265,33.659781
888234552,130.682120,33.659845
888234560,130.681890,33.660124
888234572,130.681890,33.660027
888234580,130.681745,33.660027
888234592,130.681804,33.659968

In order to display this as path on Google Maps, this data needs to be converted to KML. GPSBabel, which also has Mac binary, is said to be able to do this. But, it always failed to convert the above formatted file for unknown reasons. When the above file is opened from GPSBabel, it is recognized as "DeLorme XMap/SAHH 2006 Native .TXT" but GPSBabel tried to read the first item as latitude not timestamp. Websites mentioned that the above format is "NMEA 0183 sentences", so I tried converting it to KML and conversion finished, but resulting file does not contain any coordinate. Finally I manually converted it to KML by putting the latitudes and longitudes in between as follows:


ff0000ff
5

#myStyle

130.682362,33.660194
130.682271,33.659990
130.682474,33.659684
130.682458,33.659749
130.682501,33.659808
130.682389,33.659781
130.682265,33.659781
130.682120,33.659845
130.681890,33.660124
130.681890,33.660027
130.681745,33.660027
130.681804,33.659968

This KML file can be opened from Google Earth for viewing, or put somewhere and feed the URL to Google Maps, e.g., as follows:

http://maps.google.co.jp/maps?q=http://bp.maltech.jp/gpstest/2008_0228_134831.kml

No comments: