Writing the chapter 6
[PFCLatex/.git] / source / JavaUpdateLocation.java
diff --git a/source/JavaUpdateLocation.java b/source/JavaUpdateLocation.java
new file mode 100644 (file)
index 0000000..1624330
--- /dev/null
@@ -0,0 +1,10 @@
+public void makeUseOfNewLocation(Location loc) {
+        
+    final String latitude = Double.toString(loc.getLatitude());
+    final String longitude = Double.toString(loc.getLongitude());
+    //RESTful WebService
+    final String URLAuth = urlServer + latitudeReplace + "/" + longitudeReplace + "/gpsads.json";
+    URL url = new URL(URLAuth);
+    
+    this.exec.execute(new Batch(url));
+}