View Single Post
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, 241 views)
 

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