Index: trunk/src/cptms/prep_cctv.py
===================================================================
--- trunk/src/cptms/prep_cctv.py	(revision 304)
+++ trunk/src/cptms/prep_cctv.py	(revision 305)
@@ -1,6 +1,11 @@
 import collections,math,sys
 # Scan the cctv file to find the nearest vds
+# This is a one-time job to create the static file of cctv locations and nearest vds
+# The output of this program needs to be manually modified before input to cptms_map.html
+# 1. The vds column is appended to cctvFile (yes, adding a new column to the original input).
+# 2. Convert this csv file to json (using cctvToJson.awk)
+# 3. Remove tabs from json.  Trim any blanks from nearVDS field. 
 # jdalbey Mar 2019
-postmileFile = "d12_vds_uniq_sorted.csv"
+vdsFile = "vds_fromhighwaysmap.csv"
 cctvFile = "cctv_locations_D12.csv"
 orientationLookup = {'N':0,'S':1,'E':0,'W':1}
@@ -8,7 +13,7 @@
 def loadHighways():
 
-    f = open(postmileFile,'r')
+    f = open(vdsFile,'r')
     lines = [line.split(',') for line in f.readlines()]
-    
+    # 5,N,0.65,4 S. LUIS REY
     # Create a set containing just the route numbers 
     routeNums = set()
@@ -43,4 +48,5 @@
 
     f = open(cctvFile,'r')
+    #5,S,42.11,-117.978854,33.856288,SB 5 N/O MAGNOLIA AVE (S/O 91),12-005-CCTV-0001
     lines = [line.split(',') for line in f.readlines()]
 
@@ -68,4 +74,5 @@
 highways = collections.OrderedDict()    
 loadHighways()
+dumpHighways()
 print "CCTV\tnearestVDS"
 findNearest()
