changes made to imports folder
This commit is contained in:
parent
385c9620d5
commit
35b93df6c1
|
@ -6,9 +6,176 @@ import json
|
|||
import datetime
|
||||
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__():
|
||||
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():
|
||||
CsvFile = csv.reader(open("/home/johnson/Desktop/chaloBEST/db_csv_files/AreaMaster.csv", "r"))
|
||||
CsvFile.next()
|
||||
|
@ -80,8 +247,6 @@ def AreaLoader():
|
|||
|
||||
f.close()
|
||||
|
||||
import datetime
|
||||
|
||||
def holiday_loader():
|
||||
|
||||
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):
|
||||
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):
|
||||
print entry
|
||||
|
@ -218,6 +296,10 @@ def Depot_loader():
|
|||
f.close()
|
||||
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")
|
||||
f= open(join(PROJECT_ROOT, "../db_csv_files/StopMarathiErrors.csv"), 'w')
|
||||
|
@ -235,14 +317,13 @@ for entry in CsvFile:
|
|||
|
||||
f.close()
|
||||
|
||||
|
||||
|
||||
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')
|
||||
header = CsvFile.next()
|
||||
print header
|
||||
for entry in CsvFile:
|
||||
try:
|
||||
|
||||
obj = Area.objects.get(a_code=int(entry[0]))
|
||||
obj.areanm_mr = str(entry[1])
|
||||
obj.save()
|
||||
|
@ -271,11 +352,6 @@ to
|
|||
test = CsvFile.next()
|
||||
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"))
|
||||
|
|
|
@ -40,49 +40,68 @@ SCHED = {
|
|||
}
|
||||
|
||||
class Area(models.Model):
|
||||
a_code = models.IntegerField(primary_key=True)
|
||||
areanm = models.TextField(blank=True, max_length=255)
|
||||
areanm_mr= models.TextField(null=True, blank=True, max_length=512) #null=True,
|
||||
code = models.IntegerField() #primary_key=True)
|
||||
name = models.TextField(blank=True, max_length=255)
|
||||
name_mr= models.TextField(null=True, blank=True, max_length=512) #null=True,
|
||||
geometry = models.PolygonField(blank=True, null=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.areanm
|
||||
return self.name
|
||||
|
||||
|
||||
class Road(models.Model):
|
||||
roadcd = models.IntegerField(primary_key=True)
|
||||
roadnm = models.TextField(blank=True, max_length=255)
|
||||
roadnm_mr= models.TextField(null=True, blank=True, max_length=512)
|
||||
code = models.IntegerField()#primary_key=True)
|
||||
name = models.TextField(blank=True, max_length=255)
|
||||
name_mr= models.TextField(null=True, blank=True, max_length=512)
|
||||
geometry = models.LineStringField(blank=True, null=True)
|
||||
def __unicode__(self):
|
||||
return self.roadnm
|
||||
return self.name
|
||||
|
||||
|
||||
class Fare(models.Model):
|
||||
slab = models.DecimalField(max_digits=5, decimal_places=2)
|
||||
ordinary = models.PositiveIntegerField(db_column='ord')
|
||||
limited = models.PositiveIntegerField(db_column='ltd')
|
||||
express = models.PositiveIntegerField(db_column='exp')
|
||||
ac = models.PositiveIntegerField(db_column='as')
|
||||
ac_express = models.PositiveIntegerField(db_column='acexp')
|
||||
ordinary = models.PositiveIntegerField()
|
||||
limited = models.PositiveIntegerField()
|
||||
express = models.PositiveIntegerField()
|
||||
ac = models.PositiveIntegerField()
|
||||
ac_express = models.PositiveIntegerField()
|
||||
def __unicode__(self):
|
||||
return self.slab
|
||||
return str(self.slab)
|
||||
|
||||
|
||||
class Stop(models.Model):
|
||||
stopcd = models.IntegerField(primary_key=True)
|
||||
stopnm = models.TextField(blank=True, max_length=255)
|
||||
stopfl = models.CharField(null=True, blank=True, max_length=5, choices=STOP_CHOICES)
|
||||
code = models.IntegerField()# primary_key=True)
|
||||
name = models.TextField(blank=True, max_length=255)
|
||||
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.
|
||||
|
||||
roadcd = models.ForeignKey(Road)
|
||||
a_code = models.ForeignKey(Area)
|
||||
depot = models.TextField(max_length=255) # should actually be a foreign key to a depotMaster,
|
||||
stopnm_mr= models.TextField(null=True, blank=True, max_length=512)#null=True,
|
||||
road = models.ForeignKey(Road)
|
||||
area = models.ForeignKey(Area)
|
||||
depot = models.ForeignKey("Depot", related_name='is_depot_for')
|
||||
name_mr= models.TextField(null=True, blank=True, max_length=512)#null=True,
|
||||
|
||||
def __unicode__(self):
|
||||
return self.stopnm
|
||||
return self.name
|
||||
|
||||
class RouteDetails(models.Model):
|
||||
rno = models.TextField()
|
||||
stopsr = models.PositiveIntegerField()
|
||||
stopcd = models.ForeignKey(Stop)
|
||||
|
||||
class Route(models.Model):
|
||||
code = models.TextField(max_length=255)
|
||||
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()
|
||||
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'
|
||||
|
||||
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):
|
||||
route = models.ForeignKey(Route)
|
||||
from_stop_txt = models.CharField(max_length=255)
|
||||
to_stop_txt = models.CharField(max_length=255)
|
||||
from_stop = models.ForeignKey(Stop, related_name="routes_from")
|
||||
to_stop = models.ForeignKey(Stop, related_name="routes_to")
|
||||
from_stop = models.ForeignKey(Stop, related_name="unique_routes_from")
|
||||
to_stop = models.ForeignKey(Stop, related_name="unique_routes_to")
|
||||
distance = models.FloatField(blank=True, null=True)
|
||||
is_full = models.BooleanField()
|
||||
|
||||
def __unicode__(self):
|
||||
return "%s: %s to %s" % (self.route.alias, self.from_stop, self.to_stop,)
|
||||
|
||||
|
||||
class RouteSchedule(models.Model):
|
||||
unique_route = models.ForeignKey(UniqueRoute)
|
||||
schedule_type = models.CharField(max_length=16)
|
||||
|
@ -145,19 +151,22 @@ class RouteSchedule(models.Model):
|
|||
def __unicode__(self):
|
||||
return "%s: %s" % (unicode(self.unique_route), self.schedule_type,)
|
||||
|
||||
class RouteTypes(models.Model):
|
||||
routecode = models.TextField(max_length=50)
|
||||
routetype = models.TextField(max_length=50)
|
||||
|
||||
class RouteType(models.Model):
|
||||
code = models.TextField(max_length=50)
|
||||
rtype = models.TextField(max_length=50)
|
||||
faretype = models.TextField(max_length=10)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.routetype
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Route Type'
|
||||
|
||||
class HardCodedRoutes(models.Model):
|
||||
routecode = models.TextField(max_length=50)
|
||||
routealias = models.TextField(max_length=50)
|
||||
|
||||
class HardCodedRoute(models.Model):
|
||||
code = models.ForeignKey(Route.code)
|
||||
alias = models.TextField(max_length=50)
|
||||
faretype = models.TextField(max_length=10)
|
||||
|
||||
class Meta:
|
||||
|
@ -169,30 +178,36 @@ class HardCodedRoutes(models.Model):
|
|||
|
||||
class Landmark(models.Model):
|
||||
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)
|
||||
point = models.PointField(blank=True, null=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.stop
|
||||
return self.name
|
||||
|
||||
|
||||
class StopLocation(models.Model):
|
||||
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)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.stop
|
||||
|
||||
|
||||
class Depot(models.Model):
|
||||
depot_code = models.CharField(max_length=5)
|
||||
depot_name = models.TextField(max_length=50)
|
||||
stop = models.ForeignKey(Stop, related_name='is_depot_for')
|
||||
code = models.CharField(max_length=5)
|
||||
name = models.TextField(max_length=50)
|
||||
stop = models.ForeignKey(Stop, related_name="is_also_depot")
|
||||
|
||||
def __unicode__(self):
|
||||
return self.depot_name
|
||||
return self.name
|
||||
|
||||
|
||||
class Holiday(models.Model):
|
||||
h_date = models.DateField()
|
||||
h_name = models.TextField(max_length=100)
|
||||
date = models.DateField()
|
||||
name = models.TextField(max_length=100)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.h_name
|
||||
return self.name
|
||||
|
||||
|
|
191
db_csv_files/Area.csv
Normal file
191
db_csv_files/Area.csv
Normal 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,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
|
||||
|
|
17
db_csv_files/Fare.csv
Normal file
17
db_csv_files/Fare.csv
Normal 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,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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user