Notices


Reply
Thread Tools
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#51
sounds similar to problem i had. i removed it and tried again.

haven't finished sorting pc since reformat yet. i need to create a small floating textbox, blaizzens writemessage is good for now but it seems to upset the layout rendering. either that or log info to a file.

i did notice theres an icon/button for traffic stowed away in one of the folders. could perhaps use it to toggle an overlay or something.
 
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#52
I've been quite for a while (mainly cause I got myself Assassin's Creed 2 and wasted all my free time on it ), but I have another addition connected to my last update. I felt that showing all points of interest was way too slow and not very useful if you want a particular POI. So I wanted to add some customizable settings with maybe the most common POIs. Hence this update

This is still very buggy! and i hope to fix it up more in the future. It includes a few preset options: Transport, Shops, Education, Parking, activities and all (all option will show all POI and will be very slow). All options are available with the rest of the options in the menu bar (about button has been relocated and my own POI settings button added - see image).

To customize it further you will need to change the regular expressions used to search the POI categories and the button text. The regular expressions are found if you search for "//HERE HERE!" and look like this:
HTML Code:
var poiRegExp = new Array();
poiRegExp[0] = /AIRPORT|AIRLINE|METRO|UNDERGROUND|RAILWAY|FERRY|SBAHN|RER_/; 	//Transport
poiRegExp[1] = /BAR|SHOP/;		//shops
poiRegExp[2] = /EDUCATION|EXHIBITION|LIBRARY|MUSEUM|UNIVERSITY/;	//Education
poiRegExp[3] = /PARKING/;	//Parking
poiRegExp[4] = /BEACH|CAMPING|CASINO|CINEMA|GOLF|HOLIDAY|OPERA|STADIUM|THEATRE|TOURIST|ZOO|SPORT/;	//Activities
The full categories list (from my computer, so I hope they are similar on the N900 since its a plugin thing) is
Code:
AIRLINE_ACCESS
 AIRPORT
 ALL
 AMUSEMENT_PARK
 AUT_METRO_ACCESS
 AUT_METRO_STOP
 BARS_CAFES
 BAR_DISCO
 BEACH
 BEL_METRO_ACCESS
 BEL_METRO_STOP
 CAMPING
 CAR_DEALER
 CAR_REPAIR
 CASH_DISPENSER
 CASINO
 CINEMA
 COMPANY
 CONCERT_HALL
 CONGRESS
 COURTHOUSE
 CULTURAL_CENTRE
 CZE_METRO_ACCESS
 CZE_METRO_STOP
 DEN_METRO_ACCESS
 DEN_METRO_STOP
 DEU_METRO_ACCESS
 DEU_METRO_STOP
 DEU_SBAHN_ACCESS
 DEU_SBAHN_STOP
 EDUCATION
 EMBASSY
 ESP_BARCELONA_METRO_ACCESS
 ESP_BARCELONA_METRO_STOP
 ESP_CERCANIAS_METRO_ACCESS
 ESP_CERCANIAS_METRO_STOP
 ESP_MADRID_METRO_ACCESS
 ESP_MADRID_METRO_STOP
 EXHIBITION_CENTRE
 FERRY_TERMINAL
 FIN_METRO_ACCESS
 FIN_METRO_STOP
 FRA_METRO_ACCESS
 FRA_METRO_STOP
 FRA_RER_ACCESS
 FRA_RER_STOP
 FRONTIER_CROSSING
 GBR_GLASGOW_METRO_ACCESS
 GBR_GLASGOW_METRO_STOP
 GBR_LONDON_METRO_ACCESS
 GBR_LONDON_METRO_STOP
 GOLF_COURSE
 GOVERNMENT_OFFICE
 HOLIDAY_PARK
 HOSPITAL
 HOTEL
 ITA_METRO_ACCESS
 ITA_METRO_STOP
 LIBRARY
 METRO_ACCESS
 MOUNTAIN_PASS
 MOUNTAIN_PEAK
 MUSEUM
 NOR_METRO_ACCESS
 NOR_METRO_STOP
 OPERA
 PARKING
 PARKING_AREA
 PARKING_GARAGE
 PARK_RECREATION
 PETROL_STATION
 PHARMACY
 PLACE_OF_WORSHIP
 POLICE
 POST_OFFICE
 PRT_METRO_ACCESS
 PRT_METRO_STOP
 RAILWAY_STATION
 RAILWAY_STATION_ACCESS
 RENT_A_CAR_FACILITY
 RESTAURANT
 REST_AREA
 SHOP
 SHOPPING_CENTRE
 SPORT_OUTDOOR
 STADIUM
 SWE_METRO_ACCESS
 SWE_METRO_STOP
 THEATRE
 TOURIST_ATTRACTION
 TOURIST_INFORMATION_CENTRE
 UNDERGROUND_STATION
 UNIVERSITY
 ZOO
So simply change the regular expression to include part of the categories eg poiRegExp[3] = /PARKING/; becomes poiRegExp[3] = /PARKING|THEATRE/; if i want to search for parking and theatres.

the button text is found if you search for "_createPoiScreen: function (aEvent) {//HERE HERE" and looks like
Code:
            this._poiSettingsBtn = new nokia.aduno.medosui.Button("ButtonWithIcon", translation["places.label11"]);
            this._aboutBtn = new nokia.aduno.medosui.Button("ButtonWithIcon", "About");	
			this._transportBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "Transport");
			this._shopsBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "Shops");
			this._educationBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "Education");
			this._parkingBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "Parking");
			this._activitesBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "Activities");
			this._allBtn = new nokia.aduno.medosui.Button("ButtonWithCheck", "All");

Feedback welcome
Attached Images
 
Attached Files
File Type: zip index.zip (220.3 KB, 236 views)
 

The Following 11 Users Say Thank You to Blaizzen For This Useful Post:
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#53
Originally Posted by Android_808 View Post
I'm trying to put together some code to enable GuidanceMockUp to provide route simulation. In the code we have two simulators, S60SimulatorPositionProvide and FfSimulatorPositionProvider. It checks for browser.S60 and creates as necessary. I was thinking along the lines of adding a button that appears after a route has been calculated that allows a simulation of the route to be played. I thought this may be beneficial for testing when attempting to add voice navigation. As of yet I've not coded anything other than remove the statement which checks to see if GuidanceMockup can provide guidance.
If i remember correctly, GuidanceMockup is only created on the computer not the N900 hence you will need to follow the GuidanceModel Class and try that. Not sure if I mentioned it before or not, but you can make a global variable (place it right at the top of the javascript), assign to it the plugin control and then you'll be able to call it from anywhere in the program (like this).
Code:
this.guidance = new nokia.maps.pfw.GuidanceModel(this._pluginControl, this.routing, this.position, this.map);
				VoiceGuidance = this.guidance;
You should then be able to call things like
VoiceGuidance.getNextManeuver() and see if it works (which will require something to show the result on the N900).


But good luck trying to get it to work I'd like to even be able to see just text on the screen with directions one day
 
Posts: 179 | Thanked: 99 times | Joined on Feb 2010 @ Yorkshire, UK
#54
I just wanted to say this is one of the best threads / things I have seen on this forum. Not only has Ovi maps been the biggest disappointment on the N900 considering it is supported on EVERY OTHER Nokia phone, but for me it won't even work.

I have seen screen shots of colour. (Yes Ovi maps for me is that bad, I have beige and nothing.)
I have seen screen shots of streets. (Yes my ovi maps can't find anything while standing in a city, it reports that I am stood in a field of nothing.)
And I have seen buildings (see note above)

Congrats to OP. I am off to see if I can get half of this to work.

Although I am shocked to hear Nokia does the map lookups on their servers, no wonder when I last used OVI maps it drank half my battery in less than twenty minutes. For those on limited data plans I pity you.
__________________
They say: Once bitten, twice shy.
I say: After the N900, never buying nokia.

Anti-Nokia Ambassador
 
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#55
I was just having a poke around inside the code to see what I could see. This is some seriously horrible code: stupidly overengineered, ignorant of JS best practices, and with lots of repetitive code.

It seems like there are multiple routing and guidance models floating around. I can't seem to get a listener on the route done event to call startNavigation.

Edit: Ignore all that. It is hard to debug javascript without even an error log.

Last edited by CormacB; 2011-01-11 at 16:18.
 
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#56
Well I got something to do something

The GuidanceModel at http://pastebin.com/B3HSsawg will show the icon for the next maneuver and advance the next maneuver when we get close enough to it.
 

The Following 7 Users Say Thank You to CormacB For This Useful Post:
cjp's Avatar
Posts: 762 | Thanked: 395 times | Joined on Jan 2010 @ Helsinki
#57
Originally Posted by twigleaf1976 View Post
I just wanted to say this is one of the best threads / things I have seen on this forum. Not only has Ovi maps been the biggest disappointment on the N900 considering it is supported on EVERY OTHER Nokia phone, but for me it won't even work.

I have seen screen shots of colour. (Yes Ovi maps for me is that bad, I have beige and nothing.)
I have seen screen shots of streets. (Yes my ovi maps can't find anything while standing in a city, it reports that I am stood in a field of nothing.)
And I have seen buildings (see note above)

Congrats to OP. I am off to see if I can get half of this to work.

Although I am shocked to hear Nokia does the map lookups on their servers, no wonder when I last used OVI maps it drank half my battery in less than twenty minutes. For those on limited data plans I pity you.
Couldn't agree with you more, this thread is simply kick-***. Its still just a bit too techy for me and I don't think I can pull off installing all this stuff correctly.

However about your Maps, it sounds like you might have a corrupt installation or something. Have you tried doing a reflash`? A lot of components were updated (or changed) in PR1.3., so maybe something went wrong in the process.
__________________
--
Find me on Twitter: @creip

Please read my blog: "PeakMobility", which deals with MeeGo/Maemo, Windows Phone and mobile technology in general from a hedonistic user point-of-view: http://peakmob.blogspot.com/
 

The Following User Says Thank You to cjp For This Useful Post:
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#58
Originally Posted by CormacB View Post
Well I got something to do something

The GuidanceModel at http://pastebin.com/B3HSsawg will show the icon for the next maneuver and advance the next maneuver when we get close enough to it.
You sir are amazing! With your addition, we're about 1 step away from basic voice guidance. All that's needed now is a way to play sound files from the browser. I've been looking into things like http://www.schillmania.com/projects/soundmanager2/ which will play sound through an embedded flash file. However I haven't had much luck yet.

But again, thanks
 

The Following 5 Users Say Thank You to Blaizzen For This Useful Post:
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#59
Just suggesting: maybe a little web server (python?) in the background that could be called like "http://localhost:9999/talk/turn_right". The server would then either use espeak or prerecorded files. I might give it a go, but rather stretched on time today...

Thanks again for all your work!

Joerg

UPDATE: ok, I stole some time away, and quick-hacked a little python talk server.

- install espeak
- call 'python speak.py' in the terminal. Or 'python speak.py german' for a german talking server
- the server could then be called on http://localhost:9999/turn_right. The call returns immediately (either with the command spoken, or with 'error'), and the talk can be interrupted with a new request. Only knows turn_right and turn_left, but maybe enough for testing?

http://baach.de/Members/jhb/speak.py/view

Last edited by jhb; 2011-01-13 at 09:12.
 

The Following 8 Users Say Thank You to jhb For This Useful Post:
Blaizzen's Avatar
Posts: 397 | Thanked: 802 times | Joined on Jan 2010 @ Sydney
#60
Originally Posted by jhb View Post
Just suggesting: maybe a little web server (python?) in the background that could be called like "http://localhost:9999/talk/turn_right". The server would then either use espeak or prerecorded files. I might give it a go, but rather stretched on time today...

Thanks again for all your work!

Joerg

UPDATE: ok, I stole some time away, and quick-hacked a little python talk server.

- install espeak
- call 'python speak.py' in the terminal. Or 'python speak.py german' for a german talking server
- the server could then be called on http://localhost:9999/turn_right. The call returns immediately (either with the command spoken, or with 'error'), and the talk can be interrupted with a new request. Only knows turn_right and turn_left, but maybe enough for testing?

http://baach.de/Members/jhb/speak.py/view
wow very nice! I've got to try this. Thanks heaps for the idea and implementing it Just wondering though how do you call it from javascript? Since I've never played with servers or have much we experience at all (i've just been a bit lucky so far with this )

I've actually implemented the flash idea I said before but your idea is heaps better, especially since the maneuvers also contain data such as street names, hence we can eventually get spoken streets and directions


for people interested, this is what is possible and soon to be much better once the server is set up
http://www.youtube.com/watch?v=CC5vSv1dppc

(sorry for the quality, I recorded it with my dad's phone while both phones sat in the cup holders )

sound files were made from this site: http://vozme.com/index.php?lang=en



Edit: Just tried the python server, it works amazingly!!! Awesome work! I might try implement a small test in the maps application and make another quick video. But I again thanks, this is exactly what we needed

Last edited by Blaizzen; 2011-01-13 at 10:09.
 

The Following 7 Users Say Thank You to Blaizzen For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:52.