Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-020
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
O.V.B Sewmina
2022-020
Commits
d1fd4cf2
Commit
d1fd4cf2
authored
Oct 09, 2022
by
O.V.B Sewmina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'IT19242996'
Master See merge request
2022-020/2022-020!38
parents
fa8630fa
4a2e3545
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
85 deletions
+22
-85
TravelTimePrediction/TravelTimePredictionNN.py
TravelTimePrediction/TravelTimePredictionNN.py
+2
-2
TravelTimePrediction/__pycache__/TravelTimePredictionNN.cpython-310.pyc
...iction/__pycache__/TravelTimePredictionNN.cpython-310.pyc
+0
-0
app/src/main/java/com/app/travelle/Signup.java
app/src/main/java/com/app/travelle/Signup.java
+18
-1
app/src/main/res/layout/activity_signup.xml
app/src/main/res/layout/activity_signup.xml
+1
-1
app/src/main/res/layout/activity_welcome.xml
app/src/main/res/layout/activity_welcome.xml
+0
-80
pathplanner/AL.py
pathplanner/AL.py
+1
-1
No files found.
TravelTimePrediction/TravelTimePredictionNN.py
View file @
d1fd4cf2
...
...
@@ -200,9 +200,9 @@ Distance =14.7 #Distance data come from seminas ----- data come from the Seminas
# callTimePrediction arguments should be dis, stops, hour, day
# Get Prediction USing this Method after Seminas Calling
def
CallTimePrediction
(
distance
,
BuStops
,
TodayDate
):
def
CallTimePrediction
(
distance
,
BuStops
,
hours
,
TodayDate
):
FnewDate
=
GetDateCode
(
TodayDate
)
GetPrediction
(
time
,
FnewDate
,
special
,
Congestion
,
drivingspeedAVG
,
BuStops
,
weather
,
distance
)
GetPrediction
(
hours
,
FnewDate
,
special
,
Congestion
,
drivingspeedAVG
,
BuStops
,
weather
,
distance
)
...
...
TravelTimePrediction/__pycache__/TravelTimePredictionNN.cpython-310.pyc
View file @
d1fd4cf2
No preview for this file type
app/src/main/java/com/app/travelle/Signup.java
View file @
d1fd4cf2
...
...
@@ -2,11 +2,16 @@ package com.app.travelle;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.annotation.SuppressLint
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.WindowManager
;
import
android.widget.Button
;
public
class
Signup
extends
AppCompatActivity
{
private
Button
direct_to_login
;
@SuppressLint
(
"MissingInflatedId"
)
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
...
...
@@ -14,5 +19,17 @@ public class Signup extends AppCompatActivity {
this
.
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
,
WindowManager
.
LayoutParams
.
FLAG_FULLSCREEN
);
getSupportActionBar
().
hide
();
setContentView
(
R
.
layout
.
activity_signup
);
direct_to_login
=
(
Button
)
findViewById
(
R
.
id
.
login_direct
);
direct_to_login
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
direct_toLogin
();
}
});
}
public
void
direct_toLogin
(){
Intent
intent
=
new
Intent
(
this
,
Login
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/res/layout/activity_signup.xml
View file @
d1fd4cf2
...
...
@@ -206,7 +206,7 @@
app:layout_constraintStart_toStartOf=
"parent"
/>
<Button
android:id=
"@+id/
signup
"
android:id=
"@+id/
login_direct
"
android:layout_width=
"165dp"
android:layout_height=
"49dp"
android:layout_marginStart=
"204dp"
...
...
app/src/main/res/layout/activity_welcome.xml
View file @
d1fd4cf2
...
...
@@ -6,85 +6,5 @@
android:layout_height=
"match_parent"
tools:context=
".Welcome"
>
<!--
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/search_destination"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="340dp"
android:layout_height="59dp"
android:layout_marginStart="25dp"
android:layout_marginTop="230dp"
android:textColorHint="@color/white"
app:boxBackgroundColor="#0018A1"
app:boxCornerRadiusBottomEnd="60px"
app:boxCornerRadiusBottomStart="60px"
app:boxCornerRadiusTopEnd="60px"
app:boxCornerRadiusTopStart="60px"
app:boxStrokeColor="@color/white"
app:endIconMode="clear_text"
app:endIconTint="#FFFFFF"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.48000002"
app:startIconTint="@color/white">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/sans_bold"
android:hint="Where to?" />
</com.google.android.material.textfield.TextInputLayout>
-->
<ImageView
android:id=
"@+id/imageView10"
android:layout_width=
"508dp"
android:layout_height=
"297dp"
android:layout_marginStart=
"-60dp"
android:layout_marginTop=
"572dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/rectangle_16"
/>
<Button
android:id=
"@+id/button2"
android:layout_width=
"165dp"
android:layout_height=
"70dp"
android:layout_marginStart=
"120dp"
android:layout_marginBottom=
"16dp"
android:backgroundTint=
"#262730"
android:text=
"FIND "
android:textSize=
"60px"
app:cornerRadius=
"60px"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
/>
<ImageView
android:id=
"@+id/imageView7"
android:layout_width=
"340dp"
android:layout_height=
"59dp"
android:layout_marginStart=
"-50dp"
android:layout_marginBottom=
"520dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:srcCompat=
"@drawable/component_2__1"
/>
<AutoCompleteTextView
android:id=
"@+id/autoCompleteTextView"
android:layout_width=
"340dp"
android:layout_height=
"59dp"
android:layout_marginStart=
"32dp"
android:layout_marginBottom=
"12dp"
android:background=
"#FFFFFF"
android:completionThreshold=
"3"
android:text=
"Where to"
android:textAlignment=
"center"
app:layout_constraintBottom_toTopOf=
"@+id/button2"
app:layout_constraintStart_toStartOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
pathplanner/AL.py
View file @
d1fd4cf2
...
...
@@ -286,7 +286,7 @@ def main( val, start, destination):
CallTimePrediction
(
dist
,
len
(
path
),(
dateTime
.
hour
),(
dateTime
.
strftime
(
'
%
A'
)))
main
(
1
,
8
,
1
8
)
main
(
1
,
0
,
8
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment