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 at 
>>>>>> http://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 at 
>>>>> http://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 at 
>>>> http://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 at 
>>> http://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 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.


Reply via email to