[whatwg] Geolocation in the browser

Ryan Sarver rsarver at skyhookwireless.com
Wed Feb 21 13:40:09 PST 2007

That's a good point. I think you're right that the "navigator" object might make more sense:


// Example

var location = navigator.getLocation()

alert(location.latitude+', '+location.longitude);




From: Steve Runyon [mailto:s.runyon at gmail.com] 
Sent: Wednesday, February 21, 2007 4:27 PM
To: Ryan Sarver
Subject: Re: [whatwg] Geolocation in the browser


You couldn't use window.location because that's already used:  "the location object represents information about the URL of any currently open window or of a specific frame" (Danny Goodman, JavaScript Bible 4e, p 486).  How about the navigator object? 


On 2/21/07, Ryan Sarver <rsarver at skyhookwireless.com> wrote: 


The ICBM standard is for geotagging the actual content whereas we are talking about a standard that lets the content know the location of the User or device so that the website can be location-aware. 

I want to use as much of the existing standards, but have more questions about where it should exist in ecosystem and how servers and webpages would expect to see it and use it.

-----Original Message-----
From: David Latapie [mailto:david at empyree.org]
Sent: Wednesday, February 21, 2007 3:56 PM
To: Ryan Sarver
Cc: whatwg at lists.whatwg.org 
Subject: Re: [whatwg] Geolocation in the browser

On Wed, 21 Feb 2007 15:31:11 -0500, Ryan Sarver wrote:
>  - would it make sense to also expose it in the request headers? This
> way the server receives it on the first request as opposed to through 
> the client after the initial page request
> User-Geolocation: 43.338018, -71.817930

Surely you've heard of ICBM
(<meta name="ICBM" content="46.025507, 14.300186" />)

Could elaborate on what you like and dislike on this?
</david_latapie>             U+0F00
http://blog.empyree.org/en (English)
http://blog.empyree.org/fr (Français)
http://blog.empyree.org/sl (Slovensko)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070221/8baab59d/attachment-0001.htm>

More information about the whatwg mailing list