For info, here is the log i have using Firefox 3.5.x on MacOS X, wifi macbook.
• timestamp: 1261955498739 • coords: [xpconnect wrapped (nsISupports, nsIDOMGeoPositionCoords, nsIClassInfo)] • contractID: • classDescription: wifi geo location position object • classID: null • implementationLanguage: 2 • flags: 8 • SINGLETON: 1 • THREADSAFE: 2 • MAIN_THREAD_ONLY: 4 • DOM_OBJECT: 8 • PLUGIN_OBJECT: 16 • EAGER_CLASSINFO: 32 • CONTENT_NODE: 64 • RESERVED: 2147483648 Remi Le 27 déc. 2009 à 20:45, Andrew Hedges a écrit : > Here is a simple example page you can use as a starting point for > browser-based geolocation: > > http://segdeha.com/w/geolocation.html > > To track speed, you would need to track your location over time. > Easiest might be to set up a setInterval call to get the location > every few seconds and save it to an array. Something like the > following (untested): > > var readings = []; > setTimeout(function () { > navigator.geolocation.getCurrentPosition(function(position) { > readings.push(position.coords); > }); > }, 10000); // repeat every 10 seconds > > Once you have your readings, here is a script that may be helpful for > finding distances based on Latitude/Longitude: > > http://segdeha.com/e/haversine/ > > Good luck! > > On Dec 27, 11:27 pm, tzenobite <[email protected]> wrote: >> many thanks! i will try asap (now i'm in trouble with a 'if' loop) > > -- > > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
