» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with mapping + geo

GeoNames Web Service Documentation

GeoNames is mainly using REST webservices. Important: * Don't forget to url encode string parameters containing special characters or spaces. (Faq entry on url encoding) * Use the JSON services if you want to use GeoNames from javascript, as most browsers do not allow to call xml services from ANOTHER server. * all web services on one table. * client libraries * Service Level Agreement is available for our commercial web services.

json: del.icio.us/tag/json

GeoNames Web Service Documentation

GeoNames is mainly using REST webservices. Important: * Don't forget to url encode string parameters containing special characters or spaces. (Faq entry on url encoding) * Use the JSON services if you want to use GeoNames from javascript, as most browsers do not allow to call xml services from ANOTHER server. * all web services on one table. * client libraries * Service Level Agreement is available for our commercial web services.

XML: del.icio.us/tag/xml

TileCache, from MetaCarta Labs

TileCache provides a Python-based WMS-C/TMS server, with pluggable caching mechanisms and rendering backends.

opensource: del.icio.us tag/opensource

Mozilla Labs " Blog Archive " Introducing Geode

You pull out your laptop, fire up Firefox, and go to your favorite review site. It automatically deduces your location, and serves up some delicious suggestions a couple blocks away and plots directions there. In order for this to be a possibility, your browser needs to know where you are. To do this, future versions of Firefox plan on supporting the new W3C Geolocation Specification, which adds the native ability for Web sites to request, and you to optionally grant access to, your location.

W3C: Del.icio.us W3C Tags

Whrrl: The people you know. The places they go.

See where friends are, share experiences, and discover places and events. Works on the Web and on any mobile phone, including iPhone and BlackBerry.

iphone: deli.cio.us/tags/iphone

OpenStreetMap

OpenStreetMap is a free editable map of the whole world. It is made by people like you. OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.

opensource: del.icio.us tag/opensource

navigator.geolocation: Using the W3C Geolocation API today

Last week I wrote a simple WhereAreYou? application that used the Google Ajax APIs ClientLocation API to access your location via your IP address.

At the same time, we announced support for the Gears Geolocation API that can calculate your address using a GPS device, WiFi info, cell tower ids, and IP address lookups.

Add to all of that, the W3C Geolocation API that Andrei Popescu of the Gears team is editing. You will notice that it looks similar to the Gears API, with subtle differences. The ClientLocation API is quite different.

To make life easier, I decided to put together a shim called GeoMeta that give you the W3C Geolocation API, and happens to use the other APIs under the hood.

If you have the Geolocation API native in your browser (no one does yet, future proof!) that will be used. If you have Gears, that API will be used, and finally, with nothing the ClientLocation API will be used behind the scenes.

To you the API will look similar:

// navigator.geolocation.getCurrentPosition(successCallback, errorCallback, options)
navigator.geolocation.getCurrentPosition(function(position) {
      var location = [position.address.city, position.address.region, position.address.country].join(', ');
      createMap(position.latitude, position.longitude, location);
}, function() {
      document.getElementById('cantfindyou').innerHTML = "Crap, I don't know. Good hiding!";
});

At least, that is what I would like. Unfortunately, there are a few little differences that leak through.

  • The W3C API only seems to give you a lat / long, so you have to do the geocoding to get address info
  • The Gears API gives you an additional gearsAddress object attached to the resulting position object. This can contain a lot of information on the resulting area (street address to city to ...) however for certain providers the API returns that as null, the same as the W3C standard
  • That gearsAddress object has slightly different information from the address data that the ClientLocation API returns. NOTE: I would love to see this just called 'address' to help the shim.

To give you control when you need it, you can ask the navigator.geolocation object what type it is. navigator.geolocation.type will be null if it is native, but 'Gears' or 'ClientLocation' if a shim kicks in. You can also check navigator.geolocation.shim to see if it is augmented code.

Implementation

There is some fun implementation code in there if you poke around. For example, for the ClientLocation API, when you make a call, it will be added to a queue if the Google Loader hasn't fully loaded yet, and it will kick off that call when finished. Dealing with dynamically creating <script src> as a loading mechanism sure is fun!

I like the idea of jumping straight to the W3C standard and updating the shim as the APIs change. That way, when browsers catch up, the code will still work using the native APIs and you don't have to change a thing.

I also hope that we get general reverse geocoding in place, which would enable me to even take the native "standard" and strap on useful address info to the bare bones lat/long.

Where are you?

Ajax: Ajaxian

Page 1 | Next >>