changes made to imports folder

This commit is contained in:
Johnson Chetty 2012-02-01 03:39:11 +05:30
parent 385c9620d5
commit 35b93df6c1
13 changed files with 455 additions and 3609 deletions

View File

@ -6,9 +6,176 @@ import json
import datetime import datetime
import sys import sys
def RouteType_save(entry):
obj = RouteType(code=entry[0], rtype=entry[1], faretype=entry[2])
obj.save()
#print obj.__dict__
def Route_save(entry):
obj = Route(
code=entry[0],
alias=entry[1],
from_stop=Stop.objects.get(code = int(entry[2])),
from_stop_txt=entry[2],
to_stop_txt=entry[3],
to_stop=Stop.objects.get(code = int(entry[3])),
distance=float(entry[4]),
stages=int(entry[5]))
obj.save()
#print obj.__dict__
def HardCodedRoute_save(entry):
obj = HardCodedRoute(code=Route.objects.get(entry[0]), alias=entry[1], faretype=entry[2])
obj.save()
#print obj.__dict__
def Depot_save(entry):
obj = Depot(
code=str(entry[0]),
name=str(entry[1]),
stop = Stop.objects.get(stopcd=int(entry[2]))
)
obj.save()
#print obj.__dict__
def Holiday_save(entry):
date_format = entry[0].rsplit('.')
theday = int(date_format[0])
themonth = int(date_format[1])
theyear = int('20'+ date_format[2])
obj = Holiday(date=datetime.date(day=theday, month=themonth, year=theyear), name=str(entry[1]))
obj.save()
#print obj.__dict__
def RouteDetail_save(entry):
obj = RouteDetail(
route=Route.objects.get(code=int(entry[0])),
serial=int(entry[1]),
stop=Stop.objects.get(stopcd=int(entry[2])),
stage=(lambda:entry[3].startswith('1'), lambda:None)[ entry[3] == '' ](),
km=(lambda:None,lambda:float(entry[4]))[ entry[4] != '' ]())
obj.save()
#print obj.__dict__
def Road_save(entry):
obj = Road(code=int(entry[0]), name=str(entry[1]))
obj.save()
#print obj.__dict__
def Fare_save(entry):
obj = Fare(
slab=float(entry[0]),
ordinary=int(entry[1]),
limited=int(entry[2]),
express=int(entry[3]),
ac=int(entry[4]),
ac_express=int(entry[5])
)
obj.save()
#print obj.__dict__
def Area_save(entry):
obj = Area(code=int(entry[0]), name= str(entry[1]))
obj.save()
#print obj.__dict__
def Stop_save(entry):
obj = Stop(code=int(entry[0]), name=str(entry[1]), dbdirection=str(entry[2]), chowki=(entry[3]).startswith('TRUE'), road=Road.objects.get(roadcd=int(entry[4])), area=Area.objects.get(a_code=int(entry[5])), depot=str(entry[6]) )
obj.save()
#print obj.__dict__
# There is no model as StopMarathi/AreaMarathi, but this is done to separate errors arising from different files, and also that the Marathi names should be done after the Stop and Area entities have been fully loaded cuz thats how we get them from BEST.
def StopMarathi_save(entry):
obj = Stop.objects.get(stopcd=int(entry[0]))
obj.stopnm_mr = str(entry[1])
obj.save()
#print obj.__dict__
def AreaMarathi_save(entry):
obj = Area.objects.get(a_code=int(entry[0]))
obj.areanm_mr = str(entry[1])
obj.save()
#print obj.__dict__
mappingtosave = {
"Fare":Fare_save,
"Depot":Depot_save,
"Holiday":Holiday_save,
"Area":Area_save,
"Road":Road_save,
"Stop":Stop_save,
"Route":Route_save,
"RouteType":RouteType_save,
"HardCodedRoute":HardCodedRoute_save,
"RouteDetail":RouteDetail_save,
"StopMarathi":StopMarathi_save,
"AreaMarathi":AreaMarathi_save
# There is no model as StopMarathi/AreaMarathi, but this is done to separate errors arising from different input files.
}
def __init__(): def __init__():
pass pass
def TestLoader(thismodel):
save = mappingtosave[thismodel]
g([0,1,2,3,4])
def CsvLoader(thismodel):
try:
CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/"+thismodel+ ".csv"), "r"), delimiter="\t")
except:
print "Error opening file. Please check if ", thismodel," file exists and you have read/write permissions. Input files should be tab delimited, not comma delimited."
exit()
f= open(join(PROJECT_ROOT, "../db_csv_files/"+ thismodel + "Errors.csv"), 'w')
f.write("Data" + '\t' + "Error thrown" + '\n')
header = CsvFile.next()
print header
print "Loading " + thismodel + "s...\n"
if ( header[0].find(',') != -1 ):
print "Input files should be tab delimited, not comma delimited!"
exit()
errcount=0
for entry in CsvFile:
try:
#get the function for this model
object_save = mappingtosave[thismodel]
object_save(entry)
except:
f.write(str(entry) + '\t' + str(sys.exc_info()[0]) + '\n')
errcount+=1;
print "Error:", str(sys.exc_info()[0]) + str(entry)
f.close()
DataLinesInFile = CsvFile.line_num -1
stats = str(DataLinesInFile - errcount ) + " " + thismodel + "s loaded. Number of Errors encountered: " + str(errcount)
if errcount > 0 :
stats+="See " + thismodel + "Errors file for details."
print stats
return
#----------------------------------------------------------
def AreaLoader(): def AreaLoader():
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/AreaMaster.csv", "r")) CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/AreaMaster.csv", "r"))
CsvFile.next() CsvFile.next()
@ -80,8 +247,6 @@ def AreaLoader():
f.close() f.close()
import datetime
def holiday_loader(): def holiday_loader():
CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/Holidays.csv"), "r"), delimiter="\t") CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/Holidays.csv"), "r"), delimiter="\t")
@ -107,95 +272,8 @@ def holiday_loader():
def test_func(entry): def test_func(entry):
print entry print entry
mappingtosave = {
"Area":Area_save,
"Route":Route_save,
"Road":Road_save,
"RouteDetail":RouteDetail_save,
"Fare":Fare_save
}
def TestLoader(thismodel):
save = mapping[thismodel]
g([0,1,2,3,4])
def CsvLoader(thismodel):
thismodel = "Route"
try:
CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/"+thismodel+ ".csv"), "r"), delimiter="\t")
except:
print "Error opening file. Please check if ", thismodel," file exists and you have read/write permissions."
f= open(join(PROJECT_ROOT, "../db_csv_files/"+ thismodel + "Errors.csv"), 'w')
f.write("Data" + '\t' + "Error thrown" + '\n')
header = CsvFile.next()
print header
print "Loading ", thismodel, "s...\n"
if ( header.find(',') != -1 ):
print "Input files should be tab delimited, not comma delimited!"
exit
errcount=0
for entry in CsvFile:
try:
#get the function for this model
object_save = mapping[thismodel]
object_save(entry)
except:
f.write(str(entry) + '\t' + str(sys.exc_info()[0]) + '\n')
errcount+=1;
print "Error:", sys.exc_info()[0] + str(entry)
f.close()
stats = thismodel, "s loaded. Number of Errors encountered: ", errcount , ".\n"
if errcount > 0 :
stats+="See ", thismodel, "Errors file for details."
print stats
return
def Route_save(entry):
obj = Route(route=entry[0], routealias=entry[1], from_stop=entry[2], to_stop=entry[3], distance=float(entry[4]), stages=int(entry[5]))
obj.save()
print obj.__dict__
def Depot_save(entry):
obj = Depot(depot_code=str(entry[0]),depot_name=str(entry[1]), stop = Stop.objects.get(stopcd=int(entry[2])))
obj.save()
print obj.__dict__
def Holiday_save(entry):
date_format = entry[0].rsplit('.')
theday = int(date_format[0])
themonth = int(date_format[1])
theyear = int('20'+ date_format[2])
obj = Holiday(h_date=datetime.date(day=theday, month=themonth, year=theyear), h_name=str(entry[1]))
obj.save()
print obj.__dict__
def RouteDetail_save(entry):
obj = RouteDetails(rno=entry[0], stopsr=int(entry[1]), stopcd=Stop.objects.get(stopcd=int(entry[2])), stage=(lambda:entry[3].startswith('1'), lambda:None)[ entry[3] == '' ](), km=(lambda:None,lambda:float(entry[4]))[ entry[4] != '' ]())
obj.save()
print obj.__dict__
def Road_save(entry):
obj = Road(roadcd=int(entry[0]), roadnm=str(entry[1]))
obj.save()
print obj.__dict__
def Fare_save(entry):
obj = Fare(slab=float(entry[0]), ordinary=int(entry[1]), limited=int(entry[2]), express=int(entry[3]), ac=int(entry[4]), ac_express=int(entry[5]))
obj.save()
print obj.__dict__
def Area_save(entry):
obj = Area(int(entry[0]), entry[1])
obj.save()
print obj.__dict__
def hay_world(entry): def hay_world(entry):
print entry print entry
@ -218,6 +296,10 @@ def Depot_loader():
f.close() f.close()
return return
""" """
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/chaloBEST/db_csv_files/Stop.csv", "r"), delimiter='\t')
for entry in CsvFile:
CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/StopMarathi.csv"), "r"), delimiter="\t") CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/StopMarathi.csv"), "r"), delimiter="\t")
f= open(join(PROJECT_ROOT, "../db_csv_files/StopMarathiErrors.csv"), 'w') f= open(join(PROJECT_ROOT, "../db_csv_files/StopMarathiErrors.csv"), 'w')
@ -235,14 +317,13 @@ for entry in CsvFile:
f.close() f.close()
CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/AreaMarathi.csv"), "r"), delimiter="\t") CsvFile = csv.reader(open(join(PROJECT_ROOT, "../db_csv_files/AreaMarathi.csv"), "r"), delimiter="\t")
f= open(join(PROJECT_ROOT, "../db_csv_files/AreaMarathiErrors.csv"), 'w') f= open(join(PROJECT_ROOT, "../db_csv_files/AreaMarathiErrors.csv"), 'w')
header = CsvFile.next() header = CsvFile.next()
print header print header
for entry in CsvFile: for entry in CsvFile:
try: try:
obj = Area.objects.get(a_code=int(entry[0])) obj = Area.objects.get(a_code=int(entry[0]))
obj.areanm_mr = str(entry[1]) obj.areanm_mr = str(entry[1])
obj.save() obj.save()
@ -271,11 +352,6 @@ to
test = CsvFile.next() test = CsvFile.next()
print test print test
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/chaloBEST/db_csv_files/Stop.csv", "r"), delimiter='\t')
for entry in CsvFile:
obj = Stop(stopcd=int(entry[0]), stopnm=str(entry[1]), stopfl=str(entry[2]), chowki=(entry[3]).startswith('TRUE'), roadcd=Road.objects.get(roadcd=int(entry[4])), a_code=Area.objects.get(a_code=int(entry[5])), depot=str(entry[6]) )
obj.save()
print obj.__dict__
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/AreaMaster.csv", "r")) CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/AreaMaster.csv", "r"))

View File

@ -40,49 +40,68 @@ SCHED = {
} }
class Area(models.Model): class Area(models.Model):
a_code = models.IntegerField(primary_key=True) code = models.IntegerField() #primary_key=True)
areanm = models.TextField(blank=True, max_length=255) name = models.TextField(blank=True, max_length=255)
areanm_mr= models.TextField(null=True, blank=True, max_length=512) #null=True, name_mr= models.TextField(null=True, blank=True, max_length=512) #null=True,
geometry = models.PolygonField(blank=True, null=True)
def __unicode__(self): def __unicode__(self):
return self.areanm return self.name
class Road(models.Model): class Road(models.Model):
roadcd = models.IntegerField(primary_key=True) code = models.IntegerField()#primary_key=True)
roadnm = models.TextField(blank=True, max_length=255) name = models.TextField(blank=True, max_length=255)
roadnm_mr= models.TextField(null=True, blank=True, max_length=512) name_mr= models.TextField(null=True, blank=True, max_length=512)
geometry = models.LineStringField(blank=True, null=True)
def __unicode__(self): def __unicode__(self):
return self.roadnm return self.name
class Fare(models.Model): class Fare(models.Model):
slab = models.DecimalField(max_digits=5, decimal_places=2) slab = models.DecimalField(max_digits=5, decimal_places=2)
ordinary = models.PositiveIntegerField(db_column='ord') ordinary = models.PositiveIntegerField()
limited = models.PositiveIntegerField(db_column='ltd') limited = models.PositiveIntegerField()
express = models.PositiveIntegerField(db_column='exp') express = models.PositiveIntegerField()
ac = models.PositiveIntegerField(db_column='as') ac = models.PositiveIntegerField()
ac_express = models.PositiveIntegerField(db_column='acexp') ac_express = models.PositiveIntegerField()
def __unicode__(self): def __unicode__(self):
return self.slab return str(self.slab)
class Stop(models.Model): class Stop(models.Model):
stopcd = models.IntegerField(primary_key=True) code = models.IntegerField()# primary_key=True)
stopnm = models.TextField(blank=True, max_length=255) name = models.TextField(blank=True, max_length=255)
stopfl = models.CharField(null=True, blank=True, max_length=5, choices=STOP_CHOICES) dbdirection = models.CharField(null=True, blank=True, max_length=5, choices=STOP_CHOICES) #stopfl - > direction
chowki = models.NullBooleanField(null=True, blank=True) # this is nullable since in the next datafeed , they might have blank to represent a 0. chowki = models.NullBooleanField(null=True, blank=True) # this is nullable since in the next datafeed , they might have blank to represent a 0.
road = models.ForeignKey(Road)
roadcd = models.ForeignKey(Road) area = models.ForeignKey(Area)
a_code = models.ForeignKey(Area) depot = models.ForeignKey("Depot", related_name='is_depot_for')
depot = models.TextField(max_length=255) # should actually be a foreign key to a depotMaster, name_mr= models.TextField(null=True, blank=True, max_length=512)#null=True,
stopnm_mr= models.TextField(null=True, blank=True, max_length=512)#null=True,
def __unicode__(self): def __unicode__(self):
return self.stopnm return self.name
class RouteDetails(models.Model):
rno = models.TextField() class Route(models.Model):
stopsr = models.PositiveIntegerField() code = models.TextField(max_length=255)
stopcd = models.ForeignKey(Stop) alias = models.TextField(max_length=255)
from_stop_txt = models.TextField(max_length=500)
to_stop_txt = models.TextField(max_length=500)
from_stop = models.ForeignKey(Stop, related_name='routes_from')
to_stop = models.ForeignKey(Stop, related_name='routes_to')
distance = models.DecimalField(max_digits=3, decimal_places=1)
stages = models.IntegerField()
def __unicode__(self):
return self.alias
class RouteDetail(models.Model):
# rno = models.TextField()
route = models.ForeignKey(Route.code)
serial = models.PositiveIntegerField()
stop = models.ForeignKey(Stop)
stage = models.NullBooleanField() stage = models.NullBooleanField()
km = models.DecimalField(null=True, blank=True, max_digits=3, decimal_places=1) km = models.DecimalField(null=True, blank=True, max_digits=3, decimal_places=1)
@ -90,35 +109,22 @@ class RouteDetails(models.Model):
verbose_name = 'Route Detail' verbose_name = 'Route Detail'
def __unicode__(self): def __unicode__(self):
return self.rno return self.route.alias
class Route(models.Model):
code = models.TextField(max_length=255)
alias = models.TextField(max_length=255)
from_stop_txt = models.TextField(max_length=500,db_column='from')
to_stop_txt = models.TextField(max_length=500,db_column='to')
from_stop = models.ForeignKey(Stop, related_name='from_stop')
to_stop = models.ForeignKey(Stop, related_name='to_stop')
distance = models.DecimalField(max_digits=3, decimal_places=1)
stages = models.IntegerField()
def __unicode__(self):
return self.alias
class UniqueRoute(models.Model): class UniqueRoute(models.Model):
route = models.ForeignKey(Route) route = models.ForeignKey(Route)
from_stop_txt = models.CharField(max_length=255) from_stop_txt = models.CharField(max_length=255)
to_stop_txt = models.CharField(max_length=255) to_stop_txt = models.CharField(max_length=255)
from_stop = models.ForeignKey(Stop, related_name="routes_from") from_stop = models.ForeignKey(Stop, related_name="unique_routes_from")
to_stop = models.ForeignKey(Stop, related_name="routes_to") to_stop = models.ForeignKey(Stop, related_name="unique_routes_to")
distance = models.FloatField(blank=True, null=True) distance = models.FloatField(blank=True, null=True)
is_full = models.BooleanField() is_full = models.BooleanField()
def __unicode__(self): def __unicode__(self):
return "%s: %s to %s" % (self.route.alias, self.from_stop, self.to_stop,) return "%s: %s to %s" % (self.route.alias, self.from_stop, self.to_stop,)
class RouteSchedule(models.Model): class RouteSchedule(models.Model):
unique_route = models.ForeignKey(UniqueRoute) unique_route = models.ForeignKey(UniqueRoute)
schedule_type = models.CharField(max_length=16) schedule_type = models.CharField(max_length=16)
@ -145,19 +151,22 @@ class RouteSchedule(models.Model):
def __unicode__(self): def __unicode__(self):
return "%s: %s" % (unicode(self.unique_route), self.schedule_type,) return "%s: %s" % (unicode(self.unique_route), self.schedule_type,)
class RouteTypes(models.Model):
routecode = models.TextField(max_length=50) class RouteType(models.Model):
routetype = models.TextField(max_length=50) code = models.TextField(max_length=50)
rtype = models.TextField(max_length=50)
faretype = models.TextField(max_length=10) faretype = models.TextField(max_length=10)
def __unicode__(self): def __unicode__(self):
return self.routetype return self.routetype
class Meta: class Meta:
verbose_name = 'Route Type' verbose_name = 'Route Type'
class HardCodedRoutes(models.Model):
routecode = models.TextField(max_length=50) class HardCodedRoute(models.Model):
routealias = models.TextField(max_length=50) code = models.ForeignKey(Route.code)
alias = models.TextField(max_length=50)
faretype = models.TextField(max_length=10) faretype = models.TextField(max_length=10)
class Meta: class Meta:
@ -169,30 +178,36 @@ class HardCodedRoutes(models.Model):
class Landmark(models.Model): class Landmark(models.Model):
name = models.TextField(max_length=500, blank=True, null=True) name = models.TextField(max_length=500, blank=True, null=True)
stop = models.ManyToManyField(Stop, related_name='is_near_to') stops = models.ManyToManyField(Stop, related_name='is_near_to')
name_mr = models.TextField(max_length=512, blank=True, null=True) name_mr = models.TextField(max_length=512, blank=True, null=True)
point = models.PointField(blank=True, null=True)
def __unicode__(self): def __unicode__(self):
return self.stop return self.name
class StopLocation(models.Model): class StopLocation(models.Model):
stop = models.ForeignKey(Stop) stop = models.ForeignKey(Stop)
#point = models.PointField(blank=True, null=True) point = models.PointField()
direction = models.CharField(max_length=5, null=True, blank=True, choices=STOP_CHOICES) direction = models.CharField(max_length=5, null=True, blank=True, choices=STOP_CHOICES)
def __unicode__(self): def __unicode__(self):
return self.stop return self.stop
class Depot(models.Model): class Depot(models.Model):
depot_code = models.CharField(max_length=5) code = models.CharField(max_length=5)
depot_name = models.TextField(max_length=50) name = models.TextField(max_length=50)
stop = models.ForeignKey(Stop, related_name='is_depot_for') stop = models.ForeignKey(Stop, related_name="is_also_depot")
def __unicode__(self): def __unicode__(self):
return self.depot_name return self.name
class Holiday(models.Model): class Holiday(models.Model):
h_date = models.DateField() date = models.DateField()
h_name = models.TextField(max_length=100) name = models.TextField(max_length=100)
def __unicode__(self):
return self.h_name def __unicode__(self):
return self.name

191
db_csv_files/Area.csv Normal file
View File

@ -0,0 +1,191 @@
A_CODE AREANM
1 LALBAUG
2 BORIVLI (W)
3 ANDHERI (E)
4 CHEMBUR (W)
5 KHAR (W)
6 GOVANDI (W)
7 BYCULLA (E)
8 MIRA ROAD (E)
9 VASHI-NAVI MUMBAI
11 GOREGAON (E)
12 BORIVLI (E)
14 SHIVAJI PARK
15 ANDHERI (W)
16 KHAR (E)
17 BANDRA (E)
18 BANDRA (W)
19 SANTACRUZ (E)
20 SANTACRUZ (W)
21 VILE PARLE (E)
22 VILE PARLE (W)
23 JOGESHWARI (E)
24 JOGESHWARI (W)
25 GOREGAON (W)
26 MALAD (E)
27 MALAD (W)
28 KANDIVLI (E)
29 KANDIVLI (W)
30 KURLA (E)
31 KURLA (W)
32 VIDYAVIHAR (E)
33 VIDYAVIHAR (W)
34 GHATKOPAR (E)
35 GHATKOPAR (W)
36 VIKHROLI (W)
37 VIKHROLI (E)
38 BHANDUP (E)
39 BHANDUP (W)
40 MULUND (E)
41 MULUND (W)
42 KANJURMARG (E)
43 KANJURMARG (W)
45 BORIVLI-E
47 SEWREE
48 WORLI
50 BACKBAY
51 COTTON GREEN (E)
52 WADALA (E)
53 COLABA
54 PRABHADEVI
55 GRANT ROAD (E)
56 MANKHURD
57 BALLARD PIER
58 BANDRA-KURLA COMPLEX
59 SANDHURST ROAD (W)
60 CHURCHGATE
61 TARDEO
63 AIROLI-NAVI MUMBAI
64 THANE (W)
65 MADH
66 FORT
67 SION (E)
71 OPERA HOUSE
72 KALA CHOWKY
73 SAHAR
74 NAGPADA
75 KHETWADI
76 DEONAR
78 MAHATMA PHULE MARKET
79 WADALA (W)
80 JUHU
81 TROMBAY
82 ANUSHAKTI NAGAR
84 DADAR (E)
85 DADAR (W)
86 MAHIM
88 MAHIM (W)
89 MAZGAON
90 DAHISAR (W)
91 GIRGAON
92 ASALPHA VILLAGE
93 OSHIWARA
94 MAROL
95 GOVANDI (E)
96 MALVANI
97 CHH.SHIVAJI TERMINUS
98 DHOBITALAO
99 DAHISAR (E)
100 SHIMPOLI
101 BHENDI BAZAAR
102 NERUL(W)-NAVI MUMBAI
103 PAREL
104 NANA CHOWK
105 DINDOSHI
106 SHIVAJI NAGAR
107 FOUR BUNGALOWS
108 BABULNATH
110 CHARKOP
111 DHARAVI
112 CURRY ROAD
113 GORAI
114 ANTOP HILL
115 MAHUL
116 WALKESHWAR
117 ARTHUR ROAD
118 POWAI
119 BHOIWADA
121 ANIK
122 BHULESHWAR
123 DOCKYARD ROAD
124 BHAYANDER (E)
126 BYCULLA (W)
127 NAPEAN SEA ROAD
128 CHEMBUR (E)
129 PRATIKSHA NAGAR
130 KOPAR KHAIRANE
131 HAJIALI
132 KALINA
133 KINGS CIRCLE
134 LOWER PAREL
135 VERSOVA
136 MAHAPE-NAVI MUMBAI
137 J.V.P.D.
138 CHANDIVLI
140 ELPHINSTONE ROAD
141 MATUNGA (W)
142 DONGRI
144 MANTRALAYA
145 GHANSOLI-NAVI MUMBAI
146 REAY ROAD (E)
147 MAHALAXMI (W)
148 GRANT ROAD (W)
149 C.P.TANK
150 MARINE LINES (E)
151 KASHIMIRA
152 PYDHONIE
153 PEDDAR ROAD
154 REAY ROAD (W)
155 SATRASTA
156 MUMBAI CENTRAL (E)
157 SEWREE (E)
158 SION (W)
159 MASJID BUNDER
160 DELISLE ROAD
161 PARLE (E)
162 CHUNABHATTI
163 KHAIRANI
164 FILTERPADA
165 VIHAR
166 CHARNI ROAD (E)
167 MATUNGA (E)
168 BELAPUR- NAVI MUMBAI
169 POISAR
170 SAKI NAKA
171 MORA GAON-JUHU
172 WADI BUNDER
173 AKSA
174 MARVE
175 MAGTHANE
176 VASI NAKA
177 MUMBAI SAMACHAR MARG
178 NAHUR (W)
179 SEEPZ
180 TILAK NAGAR
181 AAREY COLONY
182 NARIMAN POINT
183 KALBADEVI
184 GHODBUNDER
185 THANE (E)
186 KUMBHARWADA
187 C.B.D.BELAPUR
188 KHARGHAR
189 KOPRA (NEW MUMBAI)
190 KAMOTHE
191 KALAMBOLI
192 BHAYANDER (W)
193 SANPADA (NAVI MUMBAI)
194 JUINAGAR (NAVI-MUMBAI)
195 NERUL(E)-NAVI MUMBAI
196 SANPADA (NAVI-MUMBAI)
197 KALWA
198 KASHI VILLAGE-E
199 AIROLI-E(NAVI MUMBAI)
200 DIGHE
201 VITAVA
202 MUMBRA
203 UTTAN
204 GORAI (W)
205 YARI ROAD
206 HIRANANDANI
207 KAMANI
1 A_CODE AREANM
2 1 LALBAUG
3 2 BORIVLI (W)
4 3 ANDHERI (E)
5 4 CHEMBUR (W)
6 5 KHAR (W)
7 6 GOVANDI (W)
8 7 BYCULLA (E)
9 8 MIRA ROAD (E)
10 9 VASHI-NAVI MUMBAI
11 11 GOREGAON (E)
12 12 BORIVLI (E)
13 14 SHIVAJI PARK
14 15 ANDHERI (W)
15 16 KHAR (E)
16 17 BANDRA (E)
17 18 BANDRA (W)
18 19 SANTACRUZ (E)
19 20 SANTACRUZ (W)
20 21 VILE PARLE (E)
21 22 VILE PARLE (W)
22 23 JOGESHWARI (E)
23 24 JOGESHWARI (W)
24 25 GOREGAON (W)
25 26 MALAD (E)
26 27 MALAD (W)
27 28 KANDIVLI (E)
28 29 KANDIVLI (W)
29 30 KURLA (E)
30 31 KURLA (W)
31 32 VIDYAVIHAR (E)
32 33 VIDYAVIHAR (W)
33 34 GHATKOPAR (E)
34 35 GHATKOPAR (W)
35 36 VIKHROLI (W)
36 37 VIKHROLI (E)
37 38 BHANDUP (E)
38 39 BHANDUP (W)
39 40 MULUND (E)
40 41 MULUND (W)
41 42 KANJURMARG (E)
42 43 KANJURMARG (W)
43 45 BORIVLI-E
44 47 SEWREE
45 48 WORLI
46 50 BACKBAY
47 51 COTTON GREEN (E)
48 52 WADALA (E)
49 53 COLABA
50 54 PRABHADEVI
51 55 GRANT ROAD (E)
52 56 MANKHURD
53 57 BALLARD PIER
54 58 BANDRA-KURLA COMPLEX
55 59 SANDHURST ROAD (W)
56 60 CHURCHGATE
57 61 TARDEO
58 63 AIROLI-NAVI MUMBAI
59 64 THANE (W)
60 65 MADH
61 66 FORT
62 67 SION (E)
63 71 OPERA HOUSE
64 72 KALA CHOWKY
65 73 SAHAR
66 74 NAGPADA
67 75 KHETWADI
68 76 DEONAR
69 78 MAHATMA PHULE MARKET
70 79 WADALA (W)
71 80 JUHU
72 81 TROMBAY
73 82 ANUSHAKTI NAGAR
74 84 DADAR (E)
75 85 DADAR (W)
76 86 MAHIM
77 88 MAHIM (W)
78 89 MAZGAON
79 90 DAHISAR (W)
80 91 GIRGAON
81 92 ASALPHA VILLAGE
82 93 OSHIWARA
83 94 MAROL
84 95 GOVANDI (E)
85 96 MALVANI
86 97 CHH.SHIVAJI TERMINUS
87 98 DHOBITALAO
88 99 DAHISAR (E)
89 100 SHIMPOLI
90 101 BHENDI BAZAAR
91 102 NERUL(W)-NAVI MUMBAI
92 103 PAREL
93 104 NANA CHOWK
94 105 DINDOSHI
95 106 SHIVAJI NAGAR
96 107 FOUR BUNGALOWS
97 108 BABULNATH
98 110 CHARKOP
99 111 DHARAVI
100 112 CURRY ROAD
101 113 GORAI
102 114 ANTOP HILL
103 115 MAHUL
104 116 WALKESHWAR
105 117 ARTHUR ROAD
106 118 POWAI
107 119 BHOIWADA
108 121 ANIK
109 122 BHULESHWAR
110 123 DOCKYARD ROAD
111 124 BHAYANDER (E)
112 126 BYCULLA (W)
113 127 NAPEAN SEA ROAD
114 128 CHEMBUR (E)
115 129 PRATIKSHA NAGAR
116 130 KOPAR KHAIRANE
117 131 HAJIALI
118 132 KALINA
119 133 KINGS CIRCLE
120 134 LOWER PAREL
121 135 VERSOVA
122 136 MAHAPE-NAVI MUMBAI
123 137 J.V.P.D.
124 138 CHANDIVLI
125 140 ELPHINSTONE ROAD
126 141 MATUNGA (W)
127 142 DONGRI
128 144 MANTRALAYA
129 145 GHANSOLI-NAVI MUMBAI
130 146 REAY ROAD (E)
131 147 MAHALAXMI (W)
132 148 GRANT ROAD (W)
133 149 C.P.TANK
134 150 MARINE LINES (E)
135 151 KASHIMIRA
136 152 PYDHONIE
137 153 PEDDAR ROAD
138 154 REAY ROAD (W)
139 155 SATRASTA
140 156 MUMBAI CENTRAL (E)
141 157 SEWREE (E)
142 158 SION (W)
143 159 MASJID BUNDER
144 160 DELISLE ROAD
145 161 PARLE (E)
146 162 CHUNABHATTI
147 163 KHAIRANI
148 164 FILTERPADA
149 165 VIHAR
150 166 CHARNI ROAD (E)
151 167 MATUNGA (E)
152 168 BELAPUR- NAVI MUMBAI
153 169 POISAR
154 170 SAKI NAKA
155 171 MORA GAON-JUHU
156 172 WADI BUNDER
157 173 AKSA
158 174 MARVE
159 175 MAGTHANE
160 176 VASI NAKA
161 177 MUMBAI SAMACHAR MARG
162 178 NAHUR (W)
163 179 SEEPZ
164 180 TILAK NAGAR
165 181 AAREY COLONY
166 182 NARIMAN POINT
167 183 KALBADEVI
168 184 GHODBUNDER
169 185 THANE (E)
170 186 KUMBHARWADA
171 187 C.B.D.BELAPUR
172 188 KHARGHAR
173 189 KOPRA (NEW MUMBAI)
174 190 KAMOTHE
175 191 KALAMBOLI
176 192 BHAYANDER (W)
177 193 SANPADA (NAVI MUMBAI)
178 194 JUINAGAR (NAVI-MUMBAI)
179 195 NERUL(E)-NAVI MUMBAI
180 196 SANPADA (NAVI-MUMBAI)
181 197 KALWA
182 198 KASHI VILLAGE-E
183 199 AIROLI-E(NAVI MUMBAI)
184 200 DIGHE
185 201 VITAVA
186 202 MUMBRA
187 203 UTTAN
188 204 GORAI (W)
189 205 YARI ROAD
190 206 HIRANANDANI
191 207 KAMANI

View File

@ -1,192 +0,0 @@
A_CODE,AREANM
1,LALBAUG
2,BORIVLI (W)
3,ANDHERI (E)
4,CHEMBUR (W)
5,KHAR (W)
6,GOVANDI (W)
7,BYCULLA (E)
8,MIRA ROAD (E)
9,VASHI-NAVI MUMBAI
11,GOREGAON (E)
12,BORIVLI (E)
14,SHIVAJI PARK
15,ANDHERI (W)
16,KHAR (E)
17,BANDRA (E)
18,BANDRA (W)
19,SANTACRUZ (E)
20,SANTACRUZ (W)
21,VILE PARLE (E)
22,VILE PARLE (W)
23,JOGESHWARI (E)
24,JOGESHWARI (W)
25,GOREGAON (W)
26,MALAD (E)
27,MALAD (W)
28,KANDIVLI (E)
29,KANDIVLI (W)
30,KURLA (E)
31,KURLA (W)
32,VIDYAVIHAR (E)
33,VIDYAVIHAR (W)
34,GHATKOPAR (E)
35,GHATKOPAR (W)
36,VIKHROLI (W)
37,VIKHROLI (E)
38,BHANDUP (E)
39,BHANDUP (W)
40,MULUND (E)
41,MULUND (W)
42,KANJURMARG (E)
43,KANJURMARG (W)
45,BORIVLI-E
47,SEWREE
48,WORLI
50,BACKBAY
51,COTTON GREEN (E)
52,WADALA (E)
53,COLABA
54,PRABHADEVI
55,GRANT ROAD (E)
56,MANKHURD
57,BALLARD PIER
58,BANDRA-KURLA COMPLEX
59,SANDHURST ROAD (W)
60,CHURCHGATE
61,TARDEO
63,AIROLI-NAVI MUMBAI
64,THANE (W)
65,MADH
66,FORT
67,SION (E)
71,OPERA HOUSE
72,KALA CHOWKY
73,SAHAR
74,NAGPADA
75,KHETWADI
76,DEONAR
78,MAHATMA PHULE MARKET
79,WADALA (W)
80,JUHU
81,TROMBAY
82,ANUSHAKTI NAGAR
84,DADAR (E)
85,DADAR (W)
86,MAHIM
88,MAHIM (W)
89,MAZGAON
90,DAHISAR (W)
91,GIRGAON
92,ASALPHA VILLAGE
93,OSHIWARA
94,MAROL
95,GOVANDI (E)
96,MALVANI
97,CHH.SHIVAJI TERMINUS
98,DHOBITALAO
99,DAHISAR (E)
100,SHIMPOLI
101,BHENDI BAZAAR
102,NERUL(W)-NAVI MUMBAI
103,PAREL
104,NANA CHOWK
105,DINDOSHI
106,SHIVAJI NAGAR
107,FOUR BUNGALOWS
108,BABULNATH
110,CHARKOP
111,DHARAVI
112,CURRY ROAD
113,GORAI
114,ANTOP HILL
115,MAHUL
116,WALKESHWAR
117,ARTHUR ROAD
118,POWAI
119,BHOIWADA
121,ANIK
122,BHULESHWAR
123,DOCKYARD ROAD
124,BHAYANDER (E)
126,BYCULLA (W)
127,NAPEAN SEA ROAD
128,CHEMBUR (E)
129,PRATIKSHA NAGAR
130,KOPAR KHAIRANE
131,HAJIALI
132,KALINA
133,KINGS CIRCLE
134,LOWER PAREL
135,VERSOVA
136,MAHAPE-NAVI MUMBAI
137,J.V.P.D.
138,CHANDIVLI
140,ELPHINSTONE ROAD
141,MATUNGA (W)
142,DONGRI
144,MANTRALAYA
145,GHANSOLI-NAVI MUMBAI
146,REAY ROAD (E)
147,MAHALAXMI (W)
148,GRANT ROAD (W)
149,C.P.TANK
150,MARINE LINES (E)
151,KASHIMIRA
152,PYDHONIE
153,PEDDAR ROAD
154,REAY ROAD (W)
155,SATRASTA
156,MUMBAI CENTRAL (E)
157,SEWREE (E)
158,SION (W)
159,MASJID BUNDER
160,DELISLE ROAD
161,PARLE (E)
162,CHUNABHATTI
163,KHAIRANI
164,FILTERPADA
165,VIHAR
166,CHARNI ROAD (E)
167,MATUNGA (E)
168,BELAPUR- NAVI MUMBAI
169,POISAR
170,SAKI NAKA
171,MORA GAON-JUHU
172,WADI BUNDER
173,AKSA
174,MARVE
175,MAGTHANE
176,VASI NAKA
177,MUMBAI SAMACHAR MARG
178,NAHUR (W)
179,SEEPZ
180,TILAK NAGAR
181,AAREY COLONY
182,NARIMAN POINT
183,KALBADEVI
184,GHODBUNDER
185,THANE (E)
186,KUMBHARWADA
187,C.B.D.BELAPUR
188,KHARGHAR
189,KOPRA (NEW MUMBAI)
190,KAMOTHE
191,KALAMBOLI
192,BHAYANDER (W)
193,SANPADA (NAVI MUMBAI)
194,JUINAGAR (NAVI-MUMBAI)
195,NERUL(E)-NAVI MUMBAI
196,SANPADA (NAVI-MUMBAI)
197,KALWA
198,KASHI VILLAGE-E
199,AIROLI-E(NAVI MUMBAI)
200,DIGHE
201,VITAVA
202,MUMBRA
203,UTTAN
204,GORAI (W)
205,YARI ROAD
206,HIRANANDANI
207,KAMANI
1 A_CODE AREANM
2 1 LALBAUG
3 2 BORIVLI (W)
4 3 ANDHERI (E)
5 4 CHEMBUR (W)
6 5 KHAR (W)
7 6 GOVANDI (W)
8 7 BYCULLA (E)
9 8 MIRA ROAD (E)
10 9 VASHI-NAVI MUMBAI
11 11 GOREGAON (E)
12 12 BORIVLI (E)
13 14 SHIVAJI PARK
14 15 ANDHERI (W)
15 16 KHAR (E)
16 17 BANDRA (E)
17 18 BANDRA (W)
18 19 SANTACRUZ (E)
19 20 SANTACRUZ (W)
20 21 VILE PARLE (E)
21 22 VILE PARLE (W)
22 23 JOGESHWARI (E)
23 24 JOGESHWARI (W)
24 25 GOREGAON (W)
25 26 MALAD (E)
26 27 MALAD (W)
27 28 KANDIVLI (E)
28 29 KANDIVLI (W)
29 30 KURLA (E)
30 31 KURLA (W)
31 32 VIDYAVIHAR (E)
32 33 VIDYAVIHAR (W)
33 34 GHATKOPAR (E)
34 35 GHATKOPAR (W)
35 36 VIKHROLI (W)
36 37 VIKHROLI (E)
37 38 BHANDUP (E)
38 39 BHANDUP (W)
39 40 MULUND (E)
40 41 MULUND (W)
41 42 KANJURMARG (E)
42 43 KANJURMARG (W)
43 45 BORIVLI-E
44 47 SEWREE
45 48 WORLI
46 50 BACKBAY
47 51 COTTON GREEN (E)
48 52 WADALA (E)
49 53 COLABA
50 54 PRABHADEVI
51 55 GRANT ROAD (E)
52 56 MANKHURD
53 57 BALLARD PIER
54 58 BANDRA-KURLA COMPLEX
55 59 SANDHURST ROAD (W)
56 60 CHURCHGATE
57 61 TARDEO
58 63 AIROLI-NAVI MUMBAI
59 64 THANE (W)
60 65 MADH
61 66 FORT
62 67 SION (E)
63 71 OPERA HOUSE
64 72 KALA CHOWKY
65 73 SAHAR
66 74 NAGPADA
67 75 KHETWADI
68 76 DEONAR
69 78 MAHATMA PHULE MARKET
70 79 WADALA (W)
71 80 JUHU
72 81 TROMBAY
73 82 ANUSHAKTI NAGAR
74 84 DADAR (E)
75 85 DADAR (W)
76 86 MAHIM
77 88 MAHIM (W)
78 89 MAZGAON
79 90 DAHISAR (W)
80 91 GIRGAON
81 92 ASALPHA VILLAGE
82 93 OSHIWARA
83 94 MAROL
84 95 GOVANDI (E)
85 96 MALVANI
86 97 CHH.SHIVAJI TERMINUS
87 98 DHOBITALAO
88 99 DAHISAR (E)
89 100 SHIMPOLI
90 101 BHENDI BAZAAR
91 102 NERUL(W)-NAVI MUMBAI
92 103 PAREL
93 104 NANA CHOWK
94 105 DINDOSHI
95 106 SHIVAJI NAGAR
96 107 FOUR BUNGALOWS
97 108 BABULNATH
98 110 CHARKOP
99 111 DHARAVI
100 112 CURRY ROAD
101 113 GORAI
102 114 ANTOP HILL
103 115 MAHUL
104 116 WALKESHWAR
105 117 ARTHUR ROAD
106 118 POWAI
107 119 BHOIWADA
108 121 ANIK
109 122 BHULESHWAR
110 123 DOCKYARD ROAD
111 124 BHAYANDER (E)
112 126 BYCULLA (W)
113 127 NAPEAN SEA ROAD
114 128 CHEMBUR (E)
115 129 PRATIKSHA NAGAR
116 130 KOPAR KHAIRANE
117 131 HAJIALI
118 132 KALINA
119 133 KINGS CIRCLE
120 134 LOWER PAREL
121 135 VERSOVA
122 136 MAHAPE-NAVI MUMBAI
123 137 J.V.P.D.
124 138 CHANDIVLI
125 140 ELPHINSTONE ROAD
126 141 MATUNGA (W)
127 142 DONGRI
128 144 MANTRALAYA
129 145 GHANSOLI-NAVI MUMBAI
130 146 REAY ROAD (E)
131 147 MAHALAXMI (W)
132 148 GRANT ROAD (W)
133 149 C.P.TANK
134 150 MARINE LINES (E)
135 151 KASHIMIRA
136 152 PYDHONIE
137 153 PEDDAR ROAD
138 154 REAY ROAD (W)
139 155 SATRASTA
140 156 MUMBAI CENTRAL (E)
141 157 SEWREE (E)
142 158 SION (W)
143 159 MASJID BUNDER
144 160 DELISLE ROAD
145 161 PARLE (E)
146 162 CHUNABHATTI
147 163 KHAIRANI
148 164 FILTERPADA
149 165 VIHAR
150 166 CHARNI ROAD (E)
151 167 MATUNGA (E)
152 168 BELAPUR- NAVI MUMBAI
153 169 POISAR
154 170 SAKI NAKA
155 171 MORA GAON-JUHU
156 172 WADI BUNDER
157 173 AKSA
158 174 MARVE
159 175 MAGTHANE
160 176 VASI NAKA
161 177 MUMBAI SAMACHAR MARG
162 178 NAHUR (W)
163 179 SEEPZ
164 180 TILAK NAGAR
165 181 AAREY COLONY
166 182 NARIMAN POINT
167 183 KALBADEVI
168 184 GHODBUNDER
169 185 THANE (E)
170 186 KUMBHARWADA
171 187 C.B.D.BELAPUR
172 188 KHARGHAR
173 189 KOPRA (NEW MUMBAI)
174 190 KAMOTHE
175 191 KALAMBOLI
176 192 BHAYANDER (W)
177 193 SANPADA (NAVI MUMBAI)
178 194 JUINAGAR (NAVI-MUMBAI)
179 195 NERUL(E)-NAVI MUMBAI
180 196 SANPADA (NAVI-MUMBAI)
181 197 KALWA
182 198 KASHI VILLAGE-E
183 199 AIROLI-E(NAVI MUMBAI)
184 200 DIGHE
185 201 VITAVA
186 202 MUMBRA
187 203 UTTAN
188 204 GORAI (W)
189 205 YARI ROAD
190 206 HIRANANDANI
191 207 KAMANI

17
db_csv_files/Fare.csv Normal file
View File

@ -0,0 +1,17 @@
SLAB ORD LTD EXP AS ACEXP
2.00 400 400 500 1000 1000
3.00 600 600 600 1500 1500
5.00 700 700 800 1500 1900
7.00 800 800 1000 2000 2300
10.00 1000 1000 1200 2500 3000
15.00 1200 1200 1500 3000 3900
20.00 1400 1400 1800 3500 4500
25.00 1600 1600 2100 4000 5500
30.00 1700 1700 2400 5000 5900
35.00 1800 1800 2600 6000 6300
40.00 2000 2000 2900 7000 7100
45.00 2200 2200 3200 8000 7900
50.00 2400 2400 3500 9000 8700
55.00 2600 2600 3800 10000 9500
60.00 2800 2800 4100 11000 10300
65.00 3000 3000 4400 12000 11100
1 SLAB ORD LTD EXP AS ACEXP
2 2.00 400 400 500 1000 1000
3 3.00 600 600 600 1500 1500
4 5.00 700 700 800 1500 1900
5 7.00 800 800 1000 2000 2300
6 10.00 1000 1000 1200 2500 3000
7 15.00 1200 1200 1500 3000 3900
8 20.00 1400 1400 1800 3500 4500
9 25.00 1600 1600 2100 4000 5500
10 30.00 1700 1700 2400 5000 5900
11 35.00 1800 1800 2600 6000 6300
12 40.00 2000 2000 2900 7000 7100
13 45.00 2200 2200 3200 8000 7900
14 50.00 2400 2400 3500 9000 8700
15 55.00 2600 2600 3800 10000 9500
16 60.00 2800 2800 4100 11000 10300
17 65.00 3000 3000 4400 12000 11100

View File

@ -1,18 +0,0 @@
SLAB,ORD,LTD,EXP,AS,ACEXP
2.00,400,400,500,1000,1000
3.00,600,600,600,1500,1500
5.00,700,700,800,1500,1900
7.00,800,800,1000,2000,2300
10.00,1000,1000,1200,2500,3000
15.00,1200,1200,1500,3000,3900
20.00,1400,1400,1800,3500,4500
25.00,1600,1600,2100,4000,5500
30.00,1700,1700,2400,5000,5900
35.00,1800,1800,2600,6000,6300
40.00,2000,2000,2900,7000,7100
45.00,2200,2200,3200,8000,7900
50.00,2400,2400,3500,9000,8700
55.00,2600,2600,3800,10000,9500
60.00,2800,2800,4100,11000,10300
65.00,3000,3000,4400,12000,11100
1 SLAB ORD LTD EXP AS ACEXP
2 2.00 400 400 500 1000 1000
3 3.00 600 600 600 1500 1500
4 5.00 700 700 800 1500 1900
5 7.00 800 800 1000 2000 2300
6 10.00 1000 1000 1200 2500 3000
7 15.00 1200 1200 1500 3000 3900
8 20.00 1400 1400 1800 3500 4500
9 25.00 1600 1600 2100 4000 5500
10 30.00 1700 1700 2400 5000 5900
11 35.00 1800 1800 2600 6000 6300
12 40.00 2000 2000 2900 7000 7100
13 45.00 2200 2200 3200 8000 7900
14 50.00 2400 2400 3500 9000 8700
15 55.00 2600 2600 3800 10000 9500
16 60.00 2800 2800 4100 11000 10300
17 65.00 3000 3000 4400 12000 11100

File diff suppressed because it is too large Load Diff