aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes HTML5 Geoloaction 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 "HTML5 Geoloaction" Watch "HTML5 Geoloaction" New topic
Author

HTML5 Geoloaction

L Tran
Greenhorn

Joined: Jun 06, 2012
Posts: 7
HTML5 GeoLocation

I know there's an app for this but I would like to learn how to do this.
When I upload my code onto the server it can find where I am in realtime with geolocatin.
But if I would like to monitor someone using the geolocation, how would I go about doing ths??
Do you need to download a Google API or something??

So if I am currently at location A and personXY is at location B. If I was to look at my monitor, how do I see personXY on google map in realtime.
Any tips or advice would be greatly appreciated.


Here's my code, that only monitors myself
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62118
    
  68

How do you expect to know where that other person is? Are they wearing a GPS beacon on their head?

Or are they "checking in" using some phone app?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
L Tran
Greenhorn

Joined: Jun 06, 2012
Posts: 7
my final product is have a phone app that can track a certain person's location.
I know there's an app for this already but I would like to learn how to do this myself.
There are millions of people out there. How do I monitor person X with my phone??
Does he and I need to have a google API or something so we can be in sysnc with each other??

I checked the web and google dev page and they don't have anything on how to monitor someone's location for the phone.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62118
    
  68

Of course not. How could your phone track someone else? Can your phone tell you where I am right now?

The only way to do this would be for the other person to have a phone or other device that would record his or her location in your database (or somewhere else accessible).
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
I'm confused - do you want to do this with a native app, or via the HTML geolocation API? Both are possibilities, but your question mixes both, and so can't easily be answered.
 
Don't get me started about those stupid light bulbs.
 
subject: HTML5 Geoloaction