diff --git a/phoneClients/android/GpsTracker/src/main/java/com/websmithing/gpstracker/MyHttpClient.java b/phoneClients/android/GpsTracker/src/main/java/com/websmithing/gpstracker/MyHttpClient.java index 46ac957..25e3bf1 100644 --- a/phoneClients/android/GpsTracker/src/main/java/com/websmithing/gpstracker/MyHttpClient.java +++ b/phoneClients/android/GpsTracker/src/main/java/com/websmithing/gpstracker/MyHttpClient.java @@ -5,7 +5,7 @@ import com.loopj.android.http.RequestParams; public class MyHttpClient { - private static final String defaultUploadWebsite = "http://www.websmithing.com/gpstracker2/getgooglemap3.php"; + private static final String defaultUploadWebsite = "http://www.websmithing.com/gpstracker/updatelocation.php"; private static AsyncHttpClient client = new AsyncHttpClient(); public static void post(String url, RequestParams requestParams, AsyncHttpResponseHandler responseHandler) { diff --git a/phoneClients/ios/GpsTracker/WSViewController.m b/phoneClients/ios/GpsTracker/WSViewController.m index 7f2d92c..91adb31 100644 --- a/phoneClients/ios/GpsTracker/WSViewController.m +++ b/phoneClients/ios/GpsTracker/WSViewController.m @@ -172,7 +172,7 @@ - (void)updateWebsiteWithLatitde:(NSString *)latitude longitude:(NSString *)longitude speed:(NSString *)speed date:(NSString *)date distance:(NSString *)distance sessionID:(NSString *)sessionID accuracy:(NSString *)accuracy extraInfo:(NSString *)extraInfo direction:(NSString *)direction { // the second was used for testing the .net site on local network - NSString *defaultWebSite = @"http://www.websmithing.com/gpstracker/updatelocation.php"; + NSString *defaultUploadWebsite = @"http://www.websmithing.com/gpstracker/updatelocation.php"; AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFHTTPResponseSerializer serializer]; @@ -190,7 +190,7 @@ @"eventtype": @"ios", @"direction": direction}; - [manager POST:defaultWebSite parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { + [manager POST:defaultUploadWebsite parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"location sent to website."); } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"AFHTTPRequestOperation Error: %@", [error description]); diff --git a/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsHelper.java b/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsHelper.java index 02eadaf..be6468b 100644 --- a/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsHelper.java +++ b/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsHelper.java @@ -135,11 +135,6 @@ if (!Float.isNaN(location.getSpeed())) { speed = location.getSpeed(); } - - /* example url - http://www.websmithing.com/gpstracker2/getgooglemap3.php?lat=47.473349&lng=-122.025035&mph=137&dir=0&mi=0& - dt=2008-04-17%2012:07:02&lm=0&h=291&w=240&zm=12&dis=25&pn=momosity&sid=11137&acc=95&iv=yes&info=momostuff - */ String gpsData = "latitude=" + String.valueOf(qualifiedCoordinates.getLatitude()) + "&longitude=" + String.valueOf(qualifiedCoordinates.getLongitude()) diff --git a/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsTracker.java b/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsTracker.java index a40f1c2..1300efc 100644 --- a/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsTracker.java +++ b/phoneClients/javaMe/src/com/websmithing/gpstracker/GpsTracker.java @@ -31,7 +31,7 @@ private GpsHelper gps; private String uploadWebsite; - private String defaultUploadWebsite = "http://www.websmithing.com/gpstracker2/getgooglemap3.php"; + private String defaultUploadWebsite = "http://www.websmithing.com/gpstracker/updatelocation.php"; protected String phoneNumber; protected String zoomLevel; diff --git a/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs b/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs index 894a651..fa61410 100644 --- a/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs +++ b/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs @@ -76,7 +76,7 @@ httpCount++; - string defaultUploadWebsite = "http://www.websmithing.com/gpstracker2/getgooglemap3.php"; + string defaultUploadWebsite = "http://www.websmithing.com/gpstracker/updatelocation.php"; HttpContent httpContent = new FormUrlEncodedContent(new[] { new KeyValuePair("latitude", latitude),