--- a/betweenpoint.submit.php
+++ b/betweenpoint.submit.php
@@ -1,1 +1,76 @@
+ nodes of the first movie.
+ * Output the rating scale, too. */
+foreach ($xml->node as $node) {
+ $geoPo = geopoEncode((float)$node['lat'],(float)$node['lon']);
+ $node['lat'] = (int) ((float)$node['lat']*10000000);
+ $node['lon'] = (int) ((float)$node['lon']*10000000);
+ echo($node['lat'].",".$node['lon']."=$geoPo
");
+ $sql = "INSERT INTO stops (geohash, lat, lng) VALUES('$geoPo','{$node['lat']}','{$node['lon']}')";
+ $result = pg_query($conn, $sql);
+ if (!$result) {
+ echo("Error in SQL query: " . pg_last_error() ."
\n");
+ }
+flush();
+
+}
+?>