Earlier this month the Mozilla Foundation announced Geode, an early implementation of a draft W3C specification for browser-based geo-location. The abstract of the draft specification states its mission to define “an API that provides scripted access to geographical location information associated with the hosting device.” A quick read of the draft W3C Geolocation API Specification got me thinking about how else such functionality could be implemented in the browser and used by web services.

The draft defines an API to be made available to any Javascript running in the browser. While the browser itself is responsible for getting the user’s current location from the operating system, it’s client-side Javascript that makes use of this location information. Provided in the draft are examples like the following:

function showMap(position) {
// Show a map centered at (position.latitude, position.longitude);
}
// One-shot position request.
navigator.geolocation.getCurrentPosition(showMap);

Such an interface allows for a high-level of interactivity on the client-side as Javascript controls and has access to all aspects of the client’s location information. However, I feel this comes at the costs of a standardized location format and portability. First, if the client wishes to gather information from a web service using the current location as a parameter, the client-side script must encode and transmit this information to a server. The format in which this information will likely vary greatly. One developer might choose to transmit this information in this manner: http://nearestfood.com/pizza?lat=1.234&long=1.234. Another might transmit this same information another way: http://iamhungry.com/pizza?latlong=1.234,1.234. There is no standard in how the client’s location is represented. Second, the client must support Javascript, which in the case of mobile device clients, is not yet a given.

Read the rest of this entry »

Back by popular demand! I lost the source file for this when my web server drives crapped out over a month ago, but I found a copy on my laptop today. I even updated the icon so it matches the new Google favicon design.

If you missed out on this Firefox search plug-in the first time around, it enables keyboard shortcuts for navigating Google search result pages made available via the Google experimental search features. Using this plug-in you can move through and open search results with the following keys:

  • j: Move to the next result/next page of results.
  • k: Move to the previous result.
  • o: Open the currently selected search result.
  • O: Open currently selected search result in a new tab. (Updated Oct. 21, 2008)
  • /: Focus on the Google search text field at the top of the results page.

To use this search-plugin, you will need browse to this post with Firefox 2 or 3. To install this plug-in click here.