Hello,

I've been using the navigator.geolocation.watchPosition() method for
nearly two months now and it has worked perfectly on both 2nd and 3ed
generation iPods with the latest firmware.

A few days ago, however, my iPod's Mobile Safari browser pretty much
stopped using GPS to geolocate and is instead using the IP address
which is grossly inaccurate.  Basically, the first few success
callbacks return an accurate GPS location and then, for some reason,
it begins geolocating with the IP address.  Again, up until a few days
ago everything was working perfectly and all the locations were very
accurate GPS coordinates.

Additionally, when I try to use the navigator.geolocation.watchPosition
() or navigator.geolocation.getCurrentPosition() methods in Firefox
3.5.5 on my Windows machine, I receive the following error in Firebug:

response.location is undefined
            var newLocation = new WifiGeoPositionObject
(response.location.latitude, \n    (NetworkGeolocationProvider line
232)

Any idea what has changed in the past few days or what I need to learn
in order to continue geolocating in the manner I was doing before?
Everything worked so beautifully and I'm hopeful it will again.

Thanks,
Nikola


On Nov 18, 2:13 pm, Remi Grumeau <[email protected]> wrote:
> Doo !
> It's now corrected, and put in an alert();
>
> <script type="text/javascript" charset="utf-8">
> function getPosition(position)
> {       alert('long:'+position.coords.longitude+' |
> lat:'+position.coords.latitude);        }
>
> function errorCallback()
> {       alert('error'); }
>
> if(navigator.geolocation)
> {
>         document.write('<strong>Geolocalisation is available</strong><br>');
>         navigator.geolocation.getCurrentPosition(getPosition, errorCallback,
> {maximumAge:600000});} else {
>
>         document.write('<strong>Geolocalisation is not available</strong>');}
>
> </script>
>
> On Wed, Nov 18, 2009 at 17:48, Mark Tomlin <[email protected]> wrote:
> > Giggles to myself slightly. No wonder:
>
> >        document.write('long:'+position.coords.latitude);
> >        document.write('<br>');
> >        document.write('lat:'+position.coords.latitude);
>
> > On Wed, Nov 18, 2009 at 11:47 AM, Mark Tomlin <[email protected]> wrote:
> >> I'm in my house. Its made of wood and nails and things! With google
> >> maps it gets a pretty good fix on my location.
> >> This returns the same value for long and lat.
>
> >> On Wed, Nov 18, 2009 at 11:18 AM, Remi Grumeau <[email protected]> 
> >> wrote:
> >>> If GPS is not available (inside a bunker :) ), i think it switches to
> >>> wifi localisation datas :)
>
> >>> On Wed, Nov 18, 2009 at 17:08, Mark Tomlin <[email protected]> wrote:
> >>>> I tested this link in both my browsers on my computer and the iPhone 3GS.
>
> >>>> On the Computer in Chrome is shows Geolocalisation is not available,
> >>>> in FF 3.5 is shows an in correct address, (around half a world away.)
> >>>> And on the iPhone is also shows an in correct address, the same
> >>>> address as FF 3.5 reports but with more digits after the decimal point
> >>>> (.). Now this might be due to my phone having no service right now
> >>>> outside of the WiFi spot (The same as the computer, my home's WiFi by
> >>>> the way.) but on the iPhone 3GS should not the GPS location override
> >>>> the one obtained from the WiFi Geo Lookup? Anyone else find this odd!
>
> >>>> On Mon, Nov 16, 2009 at 1:25 PM, Remi Grumeau <[email protected]> 
> >>>> wrote:
> >>>>> hummm ... so you should test this address:
> >>>>>http://www.remi-grumeau.com/labs/geolocalisation-enable-test.html
>
> >>>>> Just a simple javascript test.
> >>>>> Here, under Chrome, it says "Geolocalisation is not available"
> >>>>> Under Firefox 3.5 (which has geolocalisation component), it says
> >>>>> "Geolocalisation is available" and should give you both lat and long
>
> >>>>> On Mon, Nov 16, 2009 at 06:15, FloridaBee <[email protected]> wrote:
>
> >>>>>> I did and it's on.
>
> >>>>>> On Nov 15, 8:36 am, GeoNomad <[email protected]> wrote:
> >>>>>> > Did you check that Location Services is turned on in the General
> >>>>>> > Settings?
>
> >>>>>> > I am hoping with all my heart that you didn't because it would be sad
> >>>>>> > to see this feature disappear.
>
> >>>>>> --
>
> >>>>>> 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 
> >>>>>> athttp://groups.google.com/group/iphonewebdev?hl=.
>
> >>>>> --
>
> >>>>> 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 
> >>>>> athttp://groups.google.com/group/iphonewebdev?hl=.
>
> >>>> --
> >>>> Thank you for your time,
> >>>> Mark 'Dygear' Tomlin;
>
> >>>> --
>
> >>>> 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 
> >>>> athttp://groups.google.com/group/iphonewebdev?hl=.
>
> >>> --
>
> >>> 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 
> >>> athttp://groups.google.com/group/iphonewebdev?hl=.
>
> >> --
> >> Thank you for your time,
> >> Mark 'Dygear' Tomlin;
>
> > --
> > Thank you for your time,
> > Mark 'Dygear' Tomlin;
>
> > --
>
> > 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 
> > athttp://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=.


Reply via email to