The widespread availability of inexpensive Global Positioning System (GPS) equipment combined with the easy-to-use GPS Intermediate Driver introduced in Windows Mobile 5.0 provide developers with the opportunity to easily location-enabled their applications. Historically, the challenge with location-enabled applications has been finding a good way to test them. Windows Mobile 6.0 solves this problem, through the FakeGPS utility.
The FakeGPS utility allows you to easily test your location-enabled applications without requiring access to an active GPS device or active GPS feed. Instead, you create a simple text file containing a list of GPS NMEA messages, copy the text file to the \Program Files\FakeGPS\GPS folder on your device, and then enable FakeGPS. The following is a portion of a sample FakeGPS input file.
$GPGLL,4738.0173,N,12211.1874,W,191934.767,A*21
$GPGSA,A,3,08,27,10,28,13,19,,,,,,,2.6,1.4,2.3*3E
$GPGSV,3,1,9,8,71,307,43,27,78,59,41,3,21,47,0,10,26,283,40*77
$GPGSV,3,2,9,29,13,317,0,28,37,226,37,13,32,155,36,19,37,79,42*42
$GPGSV,3,3,9,134,0,0,0*46
$GPRMC,191934.767,A,4738.0173,N,12211.1874,W,0.109623,12.14,291004,,*21
$GPGGA,191935.767,4738.0172,N,12211.1874,W,1,06,1.4,32.9,M,-17.2,M,0.0,0000*75
$GPGLL,4738.0172,N,12211.1874,W,191935.767,A*21
$GPGSA,A,3,08,27,10,28,13,19,,,,,,,2.6,1.4,2.3*3E
$GPRMC,191935.767,A,4738.0172,N,12211.1874,W,0.081611,15.81,291004,,*2A
Working in conjunction with the GPS Intermediate Driver, FakeGPS routes the messages from the text file to any applications reading the GPS feed. Because the FakeGPS utility works directly with the GPS Intermediate Driver, you can use it to test your applications on both real devices and the Device Emulator without making any modifications to your program. To activate the FakeGPS data feed, use the FakeGPS utility to select the desired input file and choose the Enable option as shown in figure 7.