ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12491
Re: routing
lets talk about doing it properly.
text to speech can be done quite nicely with an offboard openMary
server, if we have the route we can make the voices happen. You can run
a speech synth on the device (I have, it works, it is a bit slow) but
there is no real need to do so.
OpenStreetmap data powers OSRM http://map.project-osrm.org/ which is a
web service that can return a route between two waypoints, it is pretty
good, it returns a json format containing the route geometry and the
turn instructions
https://router.project-osrm.org/viaroute?z=14&output=json&jsonp=OSRM.JSONP.callbacks.route&checksum=1921722824&loc=51.212166,-0.795507&hint=RZ4NADoRyAN9GAAACQAAAAoAAABAAAAAFAAAAD4p2QUAAAAAg28NA43c8_8CABEA&loc=51.249680,-0.763185&hint=RxO1BEoTtQSHQTAAKQAAAAAAAAAAAAAAAAAAAP____8AAAAADgIOA89a9P8AABEA&instructions=true
the turn instructions are like this:
Head southwest onto Abbey Street - 0.10 km
Turn right onto A287 - 0.16 km
Turn slight right onto Victoria Road - 0.22 km
Turn right onto A325 - 44 m
Continue onto B3001 - 0.13 km
Turn slight left - 49 m
Continue onto A31 - 1.22 km
Enter roundabout and leave at third exit onto A325 - 0.15 km
Enter roundabout and leave at first exit onto A325 - 0.43 km
Enter roundabout and leave at third exit onto Weybourne Road - 48 m
Turn slight left onto B3007 - 1.77 km
Turn left onto Ayling Lane - 0.53 km
Turn slight left onto Ayling Hill - 0.17 km
Turn right onto B3008 - 0.55 km
Turn left onto Lime Street - 0.14 km
Enter roundabout and leave at third exit onto Alexandra Road - 0.15 km
Turn left onto Barrack Road - 73 m
Turn slight left onto B3007 - 36 m
Continue onto High Street - 0.33 km
Turn right onto Bakehouse Mews - 26 m
You have reached your destination
so, we can get the turn instructions, we can get the latlng of the start
of each leg of the journey, we can get the text as a sound file. Lets
say we do all that, and I have a list of sound files I want to play when
I get to an appropriate place to play them. How do we get the right
sound file to play when we are approaching the start of the leg? Some
kind of geofencing event interface? Is there an operating system
facility to wake up an app when the GPS enters an alarm area?
Of course, this doesn't solve the problem of getting it wrong and going
off-route and recalculating and finding a new route, but I think that is
solvable if we can get some facility to do a geofencing wake up.
Alan.
On 28/04/15 12:10, Richard Somlói wrote:
I didn't find this in the Ubuntu Touch version.
2015-04-28 12:50 GMT+02:00 Krzysztof Tataradziński
<ktatar156@xxxxxxxxx <mailto:ktatar156@xxxxxxxxx>>:
According to conversation before:
Am 25.04.2015 um 15:05 schrieb Krzysztof Tataradziński:
> Is HERE maps provide it?
I think yes because after pushing a download button for speech
files of
the route in the program I get a real navigation with voice.
Greetings, lgd
Could you check that and show us or tell how it works?
2015-04-28 12:41 GMT+02:00 Wayne Ward <info@xxxxxxxxxxxxxxx
<mailto:info@xxxxxxxxxxxxxxx>>:
> im going on holiday soon and was wondering if i can use the
ubuntu bq for
> routing
> i looked at the here app and noticed that gives directions is
there a way
> that it can speak the navigation and if not is there any apps
that do yet
> please?
>
> Regards
> Wayne :)
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
<https://launchpad.net/%7Eubuntu-phone>
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
<mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~ubuntu-phone
<https://launchpad.net/%7Eubuntu-phone>
> More help : https://help.launchpad.net/ListHelp
--
Mailing list: https://launchpad.net/~ubuntu-phone
<https://launchpad.net/%7Eubuntu-phone>
Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
<mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~ubuntu-phone
<https://launchpad.net/%7Eubuntu-phone>
More help : https://help.launchpad.net/ListHelp
Follow ups
References