Skip to content
Snippets Groups Projects
Commit 1d324fec authored by theiled00's avatar theiled00
Browse files

Change host for demo. Fix broken weather widget

parent 57b6aee1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment