Is it possible to send my current location on iPhone or Android to the server so that others can view my current location?
|
Perhaps an email solution would be a workaround? GPSLogger for Android app can automatically send an email with gpx or kml file to a specified address.
You could either push those emails to specified users or process the files on your server. |
|||
|
|
|
This is a very broad question, with a dozen answers. The short one is: Yes. But, I do not think you are as interested in the IF, as you are in the HOW. I'm not going to get into details, but outline some possibilities.
|
|||
|
|
|
In Android there are many apps that will locate your location. If you want to build your own app here is one way to do it. Using GPS and Google Maps in Android - android:name="android.permission.ACCESS_FINE_LOCATION is the key
Full source code: http://www.devx.com/wireless/Article/39239/1954 |
|||
|
|
|
Perhaps you could write an android app that uses the permission (Just like Mapperz wrote), then sends this location to a database table on your server/hosting account.
Then you can write a simple map page that looks up the most up to date location of yours in that table using AJAX in every x seconds/minutes/hours etc. and refreshes the map accordingly.
For the timing on the client side lookup function, you can use an example like Hope it helped! |
|||
|
|
|
One possible solution would be to build a web app in html5 and communicate your position to a web server set up in node.js. If you put the communication with the server as web worker it wouldn't freeze up your phone very time it contacts the server. Use html5 localStorage to store coordinates if you loose contact with the server |
|||
|
|


