25. August 2008
Google Gears mit Geolocation API
Google hat seinem Open Source Browser Plug-in Gears ein Update verpasst. Version 0.4 hat eine Geolocation API erhalten, die für das Handy als auch für den Desktop Browser zur Verfügung steht. Künftig braucht man also nicht mehr seinen Standort angeben, startet man über sein Handy die Suche nach einem nahe gelegenen Restaurant. Denn das Telefon kennt ja bekanntlich seinen Standort. Der User muss Gears lediglich die Abfrage dieser Informationen gestatten.
Andrei Popescu, Gears Engineer, dazu:
We have added a new Geolocation API, which allows you to build applications that can do new and exciting things based on your users' location. You can query Gears for the user's current location using the getCurrentPosition() method or you can ask Gears to notify you every time the location changes, using the watchPosition() method. Of course, we take privacy issues very seriously, which is why we have a special permission dialog that allows users to decide which Web sites should have access to their location information.Ebenfalls neu ist die Blob API, mit dem Developer in JavaScript auf beliebig binäre Daten referenzieren können:
Blobs can more naturally represent things like files and images, and they can be passed around efficiently. We have updated several existing APIs to work with blobs, such as WorkerPool sendMessage() and HttpRequest send(). And that's not all! We have also extended the Desktop API with a new method, openFiles(), which allows users to select multiple files of a particular content type, and then returns them as blobs for easy uploading or worker processing.
Felix Schrader


























