Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Navigation App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWP Datenverwaltung Navigation 2023
Navigation App
Commits
1d324fec
Commit
1d324fec
authored
2 years ago
by
theiled00
Browse files
Options
Downloads
Patches
Plain Diff
Change host for demo. Fix broken weather widget
parent
57b6aee1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
android/app/src/main/AndroidManifest.xml
+1
-0
1 addition, 0 deletions
android/app/src/main/AndroidManifest.xml
lib/main.dart
+3
-3
3 additions, 3 deletions
lib/main.dart
with
4 additions
and
3 deletions
android/app/src/main/AndroidManifest.xml
+
1
−
0
View file @
1d324fec
...
...
@@ -2,6 +2,7 @@
package=
"com.example.router_app"
>
<application
android:label=
"router_app"
android:enableOnBackInvokedCallback=
"true"
android:name=
"${applicationName}"
android:icon=
"@mipmap/ic_launcher"
>
<activity
...
...
This diff is collapsed.
Click to expand it.
lib/main.dart
+
3
−
3
View file @
1d324fec
...
...
@@ -156,7 +156,7 @@ class _HomePageState extends State<HomePage> {
if
(
result
!=
null
)
{
//Match adress with Backend
final
response
=
await
http
.
post
(
Uri
.
parse
(
'http://
10.0.2.2
:8080/addressmatching'
),
Uri
.
parse
(
'http://
25.35.19.125
:8080/addressmatching'
),
body:
jsonEncode
({
"address"
:
result
}),
headers:
<
String
,
String
>{
"Content-Type"
:
"application/json"
});
_data
=
jsonDecode
(
response
.
body
);
...
...
@@ -203,7 +203,7 @@ class _HomePageState extends State<HomePage> {
_isLoading
=
true
;
await
Future
.
wait
<
void
>([
_getWeather
(),
//
_getWeather(),
_getDirections
(),
]);
...
...
@@ -283,7 +283,7 @@ class _HomePageState extends State<HomePage> {
// Get direction data
// No weather or days included for now
final
response
=
await
http
.
post
(
Uri
.
parse
(
'http://
10.0.2.2
:8080/route'
),
final
response
=
await
http
.
post
(
Uri
.
parse
(
'http://
25.35.19.125
:8080/route'
),
body:
jsonEncode
({
"start_node"
:
{
"lat"
:
originlat
,
"lon"
:
originlon
},
"end_node"
:
{
"lat"
:
destlat
,
"lon"
:
destlon
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment