- 1 Concepts
- 2 Ideal Device
- 3 Palm
- 4 iPhone
- 4.1 Contacts
- 4.2 Pocket Queries
- 4.3 Preparing Pocket Query GPX files for iPhone Contacts
- 4.4 Filemaker Pro 9 Advanced and FMtouch
- 4.5 Groundspeak's iPhone Geocaching Application
- In the game of geocaching, internet access is essential. A player needs to log onto the Geocaching website in order discover area geocaches, then retrieve geocache GPS coordinates and description in order to set out and find the cache and finally, after his hunt, to log the results of his search. However, ubiquitous internet access isn't a reality. There are time when geocache information must be carried with the player on his hunt and a player must return to an internet connection.
- Geocache GPS coordinates loaded into a GPS unit points players to where a particualar geocache is located.
- Geocache description holds all the pertinent information about the particular geocache and how to find it.
Traditionally, players have printed out the geocache's description page directly from the Geocaching website and carried the paper with them on their hunts. Geocache information in a paper format makes geocaching a very planned activity. With paper, a player cannot spontaneously decide to do some geocaching in a new area. He is limited to the papers he is carrying with him at the time.
With a small portable electronic device with access to the geocaching data, a player can play the game at anytime and anywhere in the course of his travels. With his device, he can quickly access, search and filter the geocaching data to offer him good geocaching options based upon his criteria of the moment. On the player's person, he has everything needed to have a successful day geocaching.
- Internet Connectivity
- Full web browser
- Email client
- Built-in GPS
- Built-in Camera
<flickr>1298565478|frame|m|left|Geocache Contact Details</flickr>
There is a open source software package called gpsbabel, which allows you to convert waypoints, tracks and route files from one file format to another.
Geocaching.com uses a very widely common file format called GPX to store a cache's information, which are then uploaded into your GPS. However, there is more information than waypoint name, cache name and coordinates used by your average GPS stored in the GPX file. Other juicy information tidbits included such things as:
- Cache description
- Past log entries
- Travel bugs in the cache
Though nice when combined with an iPod, it is incredible in conjunction with the iPhone's data network services. One easily can open geocache's Geocaching.com page with Mobile Safari directly from the geocache's contact URL field, or one can display a geocache's location in the Google Maps widget directly from the coordinates stored geocache's address field.
Homepage URL Field
When the vCards, or Contacts, converted with gpsbabel, are loaded onto the iPhone, an user can scroll through the "cache" contacts, select one, tap on the "cache" contact's homepage and bring up the cache's Geocaching.com's web page.
<flickr>1297698815|frame|m|Click on the Geocache Address and Google has problems finding the cache on the map</flickr> Also if you store the cache's waypoint coordinates in the address field of the "cache" contact, an iPhone user can then tap on the "cache" contact's address, and the cache's location will be mapped out on the iPhone's Google Maps widget.
For some reason or another, Google Maps does not like one to search for locations on its mapping services in the following format: latitude, longitude country. When you do so, Google Maps returns "No search results found". However, if you remove the country from the end of your search, Google Maps will plot the point on the map.
The iPhone, when you tap on a contact's address, will automatically add the contact's country to the end of the address. If no country is specified, it defaults the country to the United States. There is no way of turning this off. Therefore, when you tap on the "cache" contact's address field, the Google Maps widget will return "No search results found."
If you manually delete the country from your search query and enter in only the GPS coordinates, the Google Maps widget will plot your cache's location.
|frame|none|m|Go to the search field</flickr>||frame|none|m|Delete the state and country</flickr>||frame|none|m|Cache now displayed</flickr>|
As everyone knows, the iPhone comes with a built-in digital camera and allows you to add images taken with that camera to your contact picture field. To commemorate our geocaching finds, I will snap a quick digital image o our find and save the image in the contact picture field.
Preparing Pocket Query GPX files for iPhone Contacts
- Run the GPX through my custom XLST
- Because my GPS to VCF XSLT isn't complete, I still need to perform some manual find and replace tasks for HTML tags on the resulting VCF file, using TextWrangler. They are:
<br> and replace with \\n (new line)
<br /> and replace with \\n (new line)
<p> and replace with \\n (new line)
<li> and replace with \\n * (new line, followed by an asterisk)
<.+?> (all other HTML tags using GREP) and replace with nothing
A Eureka Moment
When I first tried to replace the HTML tag for line break ( <br> ) with \n in TextWrangler, TextWrangler would add an actual line break in my file, not the literal text string "\n". This corrupted my resulting VCF file, and the file could not, in turn, be properly imported into my Address Book and then eventually into my iPhone.
I was beating my head as I plowed my way through thousands of Google search results, trying to found out how I could insert the literal text string "\n" instead of an actual line break. I searched under:
<br> with \n using grep
- insert \n as a string not a new line
- insert \n as a string not a new line textwrangler
- insert \n as literal string grep
Then in the Textwrangler user manual, I found my answer, add an additional escape character ("\") in front of "\n".
Since I use Filemaker Pro 9 Advanced on a regular basis, I immediately purchased FMTouch for my iPhone as soon as it was released. Then I began thinking about the possibilities of leverage my Filemaker knowledge to further my paperless geocaching quest.
Why Filemaker? Why Not Just Use the Contacts?
Though both applications are essentially the same, databases, Filemaker and its iPhone counterpart FMTouch would offer greater flexibility in searches and custom fields.
- The iPhone's Contacts application really slows down with several hundred contacts.
- FMTouch allows greater search capacability
$9.99 from the iTunes Store
When the Geocaching application first begins, it asks for permission to use your iPhone's current location. When you choose yes, it utilizes your iPhone GPS coordinates to fetch a list of nearby caches.
On this main screen, you can:
Find Caches Screen
You have the option of finding nearby caches by:
Search Results Screen
Find Trackables Screen
Saved Items Screen
You can set: