File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Geolocation tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Geolocation tag" Watch "Geolocation tag" New topic
Author

Geolocation tag

Howard Rosenblum
Greenhorn

Joined: Aug 12, 2010
Posts: 7
Does your book discuss the geolocation tag? For example the demo in http://html5demos.com/geo does not work properly eventhough it claim to be able to find my location.

Cheers
Howard
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Geolocation is an API, not a tag.

Not supported in all browsers, but your link worked in all browsers I tried (essentially every modern browser but IE).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Howard Rosenblum
Greenhorn

Joined: Aug 12, 2010
Posts: 7
Did it give you the right location? mine showed downtown and I am in a suburb. Does the book discuss this tag?
Howard
Howard Rosenblum
Greenhorn

Joined: Aug 12, 2010
Posts: 7
OOPs, does the book discuss the API?
James Williams
author
Ranch Hand

Joined: Apr 18, 2009
Posts: 35
Howard,

Yes, it does briefly discuss the API. Geolocation can give false positives at times based on how your traffic is being routed. Behind a VPN, it can show the corporate headquarters of a company.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Howard Rosenblum wrote:Did it give you the right location?

For me, all browsers located me exactly. I tested in Safari, Chrome, Firefox and Opera.

Remember, it's just a guess based upon network topology (see Geolocation API). So my location must be easier to guess than yours.
Howard Rosenblum
Greenhorn

Joined: Aug 12, 2010
Posts: 7
Thank you, both of you
Howard
kalai sundar
Ranch Hand

Joined: May 25, 2005
Posts: 69
Check out http://findmylocation.info/faq.jsp for more details on geo location services.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Geolocation tag