Comments (6)
This would be very useful. The most common case probably is simply missing turn. Especially on motorways, where exits are far between, it's not easy for the driver to improvise on his own.
The current architecture doesn't make rerouting easy -- significant changes would be needed.
When long routes are used, it should significantly simplify routing calculations if significant number of points along the previously calculated route are used in query.
This is probably too difficult for us to know which points could be used or when. It's better to just do a full reroute and accept the cost.
Imagine for example a case where the route follows a river, but the driver ends up on the wrong side. Bridges to cross the river exist, but far between. Using existing routepoints could suggest the driver make a U-turn to go back to a bridge instead of taking another bridge far ahead.
from poor-maps.
I agree with the river scenario - let's see how bad full recalculation is in practice.
As for the architecture: if the changes are needed, maybe it could also take into account for future extension in terms of adding voice commands.
I don't know internals of Poor Maps and never programmed QML+python combination, hence the question: do you use signals in qt5 + python? If you do, maybe adding new signal(s) to indicate that the driver is far away from the route can help?
from poor-maps.
Hi, I am planning to start looking into this issue in the foreseeable future. There is still some work to be done with polishing OSM Scout Server, but I think I am getting soon to the stage where I can look into some other aspects of SFOS maps and this issue is surely one of the major ones for me.
So, I wonder, when you debug navigation, do you use some kind of artificial GPS signal feed? If not, I would probably start with implementing that and link it to PositionSource.qml allowing us to debug navigation and re-routing more efficiently.
from poor-maps.
I just hook the position to the center of the map, so that panning the map moves the position too. I don't have time to test it right now, but if I remember correctly, just the below two changes.
diff --git a/qml/NarrationTimer.qml b/qml/NarrationTimer.qml
index 385cd78..ea39270 100644
--- a/qml/NarrationTimer.qml
+++ b/qml/NarrationTimer.qml
@@ -37,7 +37,7 @@ Timer {
onTriggered: {
// Query maneuver narrative from Python and update status.
if (!py.ready) return;
- var coord = map.position.coordinate;
+ var coord = map.center;
if (coord.distanceTo(timer.coordPrev) < 10) return;
var args = [coord.longitude, coord.latitude];
py.call("poor.app.narrative.get_display", args, function(status) {
diff --git a/qml/PositionMarker.qml b/qml/PositionMarker.qml
index 21feb0d..da52662 100644
--- a/qml/PositionMarker.qml
+++ b/qml/PositionMarker.qml
@@ -26,7 +26,7 @@ MapQuickItem {
id: marker
anchorPoint.x: sourceItem.width/2
anchorPoint.y: sourceItem.height/2
- coordinate: map.position.coordinate
+ coordinate: map.center
height: sourceItem.height
visible: map.ready
width: sourceItem.width
from poor-maps.
Brilliant! Thank you - I get the idea and should be able to proceed from here. Thank you very much!
from poor-maps.
Fixed via commits in PR #43.
from poor-maps.
Related Issues (20)
- Arrangement of navigation informations, menu button and NorthArrow HOT 2
- Translations broken in Sailfish 2.1.1.24 HOT 4
- Auto-center and auto-rotate don't work in v0.32 HOT 4
- Set the default basemap DPI to match the screen
- Can we support @3x tiles? HOT 2
- OSM POI list when searching for nearby venues HOT 1
- Displaying map using Mapbox GL Native widget HOT 23
- Implementing train routing with stop points HOT 1
- rpm failed to install on sailfish os 2.1.2.3 HOT 2
- not possible to run `qmlscene qml/poor-maps.qml` HOT 1
- Enhance POI search (by "official" taglist?) HOT 1
- Maneuver preview doesn't rotate map HOT 1
- Poor maps crash during navigation HOT 7
- Get rid of double-tap centering HOT 1
- Poor-maps not ship spanish translation on Bolivia-Spanish HOT 6
- Error message from API calls not passed to QML HOT 2
- Add way to test TTS without navigating
- Mapzen requests fail HOT 2
- Warnings in console output HOT 1
- TTS is not working stable HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poor-maps.