Wikipedia/preview/data/landmarks_data.js
changeset 20 918767a9c8d3
equal deleted inserted replaced
19:f3521a11d878 20:918767a9c8d3
       
     1 /**
       
     2  * SAPI Sample Data - Landmark
       
     3  */
       
     4 
       
     5 (function(){
       
     6 
       
     7 	var data_landmark =	[{
       
     8 		"id":"47",
       
     9 		"LandmarkName":"Best food ever!",
       
    10 		"LandmarkPosition":{
       
    11 			"Latitude":-17.5423,
       
    12 			"Longitude":-54.8163,
       
    13 			"Altitude":82,
       
    14 			"HAccuracy":2,
       
    15 			"VAccuracy":4
       
    16 		},
       
    17 		"CategoryInfo":["1"],
       
    18 		"LandmarkDesc":"Place looks really nice.",
       
    19 		"LandmarkFields":{
       
    20 			"Country":"Finland",
       
    21 			"City":"Tokyo",
       
    22 			"AreaCode":"FI-70100",
       
    23 			"Street":"Plains Road",
       
    24 			"Telephone":"+4443433434"
       
    25 		}
       
    26 	},{
       
    27 		"id":"44",
       
    28 		"LandmarkName":"Food store",
       
    29 		"LandmarkPosition":{
       
    30 			"Latitude":65.4233,
       
    31 			"Longitude":-93.4225,
       
    32 			"Altitude":54,
       
    33 			"HAccuracy":1,
       
    34 			"VAccuracy":1
       
    35 		},
       
    36 		"CategoryInfo":["10"],
       
    37 		"LandmarkDesc":"Words are not enough to describe this landmark",
       
    38 		"LandmarkFields":{
       
    39 			"Country":"Finland",
       
    40 			"City":"St. Michel",
       
    41 			"AreaCode":"11233",
       
    42 			"Street":"McKenzie Avenue",
       
    43 			"Telephone":"0432443343"
       
    44 		}
       
    45 	},{
       
    46 		"id":"40",
       
    47 		"LandmarkName":"Hospital",
       
    48 		"LandmarkPosition":{
       
    49 			"Latitude":-2.4616,
       
    50 			"Longitude":51.4958,
       
    51 			"Altitude":43,
       
    52 			"HAccuracy":3,
       
    53 			"VAccuracy":3
       
    54 		},
       
    55 		"CategoryInfo":["13"],
       
    56 		"LandmarkDesc":"Place looks really nice.",
       
    57 		"LandmarkFields":{
       
    58 			"Country":"United States of America",
       
    59 			"City":"London",
       
    60 			"AreaCode":"11233",
       
    61 			"Street":"Pukershire Avenue",
       
    62 			"Telephone":"0565645455"
       
    63 		}
       
    64 	},{
       
    65 		"id":"45",
       
    66 		"LandmarkName":"John’s home",
       
    67 		"LandmarkPosition":{
       
    68 			"Latitude":36.9077,
       
    69 			"Longitude":134.4066,
       
    70 			"Altitude":42,
       
    71 			"HAccuracy":3,
       
    72 			"VAccuracy":5
       
    73 		},
       
    74 		"CategoryInfo":["14"],
       
    75 		"LandmarkDesc":"This is my favorite place",
       
    76 		"LandmarkFields":{
       
    77 			"City":"Los Angeles",
       
    78 			"AreaCode":"00310",
       
    79 			"Street":"McKenzie Lane",
       
    80 			"Telephone":"+35854553456",
       
    81 			"Country":"Japan"
       
    82 		}
       
    83 	},{
       
    84 		"id":"48",
       
    85 		"LandmarkName":"John’s home",
       
    86 		"LandmarkPosition":{
       
    87 			"Latitude":17.1817,
       
    88 			"Longitude":113.4183,
       
    89 			"Altitude":29,
       
    90 			"HAccuracy":3,
       
    91 			"VAccuracy":2
       
    92 		},
       
    93 		"CategoryInfo":["3"],
       
    94 		"LandmarkDesc":"Words are not enough to describe this landmark",
       
    95 		"LandmarkFields":{
       
    96 			"Country":"Norway",
       
    97 			"City":"St. Petersburg",
       
    98 			"AreaCode":"FI-70100",
       
    99 			"Street":"Windsor Road",
       
   100 			"Telephone":"+4465665456"
       
   101 		}
       
   102 	},{
       
   103 		"id":"49",
       
   104 		"LandmarkName":"Nice beach",
       
   105 		"LandmarkPosition":{
       
   106 			"Latitude":-22.0327,
       
   107 			"Longitude":-33.0193,
       
   108 			"Altitude":57,
       
   109 			"HAccuracy":1,
       
   110 			"VAccuracy":0
       
   111 		},
       
   112 		"CategoryInfo":["7"],
       
   113 		"LandmarkDesc":"This is my favorite place",
       
   114 		"LandmarkFields":{
       
   115 			"Telephone":"+35854553456",
       
   116 			"Country":"Finland",
       
   117 			"City":"Bangkok",
       
   118 			"AreaCode":"00310",
       
   119 			"Street":"Highland Avenue Extension"
       
   120 		}
       
   121 	},{
       
   122 		"id":"42",
       
   123 		"LandmarkName":"Nice view",
       
   124 		"LandmarkPosition":{
       
   125 			"Latitude":-1.5979999999999999,
       
   126 			"Longitude":177.5871,
       
   127 			"Altitude":23,
       
   128 			"HAccuracy":1,
       
   129 			"VAccuracy":4
       
   130 		},
       
   131 		"CategoryInfo":["5"],
       
   132 		"LandmarkDesc":"Words are not enough to describe this landmark",
       
   133 		"LandmarkFields":{
       
   134 			"Country":"Thailand",
       
   135 			"City":"St. Petersburg",
       
   136 			"AreaCode":"00310",
       
   137 			"Street":"Pukershire Avenue",
       
   138 			"Telephone":"0435445454"
       
   139 		}
       
   140 	},{
       
   141 		"id":"41",
       
   142 		"LandmarkName":"Summer cottage",
       
   143 		"LandmarkPosition":{
       
   144 			"Latitude":-80.6438,
       
   145 			"Longitude":78.5627,
       
   146 			"Altitude":60,
       
   147 			"HAccuracy":1,
       
   148 			"VAccuracy":4
       
   149 		},
       
   150 		"CategoryInfo":["11"],
       
   151 		"LandmarkDesc":"Place looks really nice.",
       
   152 		"LandmarkFields":{
       
   153 			"Country":"Thailand",
       
   154 			"City":"Havana",
       
   155 			"AreaCode":"99002",
       
   156 			"Street":"Eastman Street",
       
   157 			"Telephone":"+4465665456"
       
   158 		}
       
   159 	},{
       
   160 		"id":"43",
       
   161 		"LandmarkName":"Summer cottage",
       
   162 		"LandmarkPosition":{
       
   163 			"Latitude":23.6319,
       
   164 			"Longitude":-141.5323,
       
   165 			"Altitude":60,
       
   166 			"HAccuracy":2,
       
   167 			"VAccuracy":2
       
   168 		},
       
   169 		"CategoryInfo":["1"],
       
   170 		"LandmarkDesc":"This is my favorite place",
       
   171 		"LandmarkFields":{
       
   172 			"Country":"Norway",
       
   173 			"City":"Nairobi",
       
   174 			"AreaCode":"FI-70100",
       
   175 			"Street":"Windsor Avenue",
       
   176 			"Telephone":"0785434444"
       
   177 		}
       
   178 	},{
       
   179 		"id":"46",
       
   180 		"LandmarkName":"Work place",
       
   181 		"LandmarkPosition":{
       
   182 			"Latitude":1.7755,
       
   183 			"Longitude":66.132,
       
   184 			"Altitude":36,
       
   185 			"HAccuracy":5,
       
   186 			"VAccuracy":5
       
   187 		},
       
   188 		"CategoryInfo":["3"],
       
   189 		"LandmarkDesc":"Delicious strawberries sold here. Must visit again sometime!",
       
   190 		"LandmarkFields":{
       
   191 			"Country":"Kenya",
       
   192 			"City":"Havana",
       
   193 			"AreaCode":"99002",
       
   194 			"Street":"Barnes Street",
       
   195 			"Telephone":"0342303777"
       
   196 		}
       
   197 	}];
       
   198 	
       
   199 	
       
   200 	var data_category =	[{
       
   201 		"id":"1",
       
   202 		"CategoryName":"Accommodation",
       
   203 		"GlobalId":"3000",
       
   204 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   205 		"IconIndex":16384,
       
   206 		"IconMaskIndex":16385
       
   207 	},{
       
   208 
       
   209 		"id":"2",
       
   210 		"CategoryName":"Businesses",
       
   211 		"GlobalId":"6000",
       
   212 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   213 		"IconIndex":16386,
       
   214 		"IconMaskIndex":16387
       
   215 	},{
       
   216 		"id":"3",
       
   217 		"CategoryName":"Telecommunications",
       
   218 		"GlobalId":"9000",
       
   219 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   220 		"IconIndex":16388,
       
   221 		"IconMaskIndex":16389
       
   222 	},{
       
   223 		"id":"4",
       
   224 		"CategoryName":"Education",
       
   225 		"GlobalId":"12000",
       
   226 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   227 		"IconIndex":16390,
       
   228 		"IconMaskIndex":16391
       
   229 	},{
       
   230 		"id":"5",
       
   231 		"CategoryName":"Entertainment",
       
   232 		"GlobalId":"15000",
       
   233 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   234 		"IconIndex":16392,
       
   235 		"IconMaskIndex":16393
       
   236 	},{
       
   237 		"id":"6",
       
   238 		"CategoryName":"Food and drink",
       
   239 		"GlobalId":"18000",
       
   240 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   241 		"IconIndex":16394,
       
   242 		"IconMaskIndex":16395
       
   243 	},{
       
   244 		"id":"7",
       
   245 		"CategoryName":"Geographical locations",
       
   246 		"GlobalId":"21000",
       
   247 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   248 		"IconIndex":16396,
       
   249 		"IconMaskIndex":16397
       
   250 	},{
       
   251 		"id":"8",
       
   252 		"CategoryName":"Outdoor activities",
       
   253 		"GlobalId":"24000",
       
   254 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   255 		"IconIndex":16398,
       
   256 		"IconMaskIndex":16399
       
   257 	},{
       
   258 		"id":"9",
       
   259 		"CategoryName":"People",
       
   260 		"GlobalId":"27000",
       
   261 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   262 		"IconIndex":16400,
       
   263 		"IconMaskIndex":16401
       
   264 	},{
       
   265 		"id":"10",
       
   266 		"CategoryName":"Public services",
       
   267 		"GlobalId":"30000",
       
   268 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   269 		"IconIndex":16402,
       
   270 		"IconMaskIndex":16403
       
   271 	},{
       
   272 		"id":"11",
       
   273 		"CategoryName":"Places of worship",
       
   274 		"GlobalId":"33000",
       
   275 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   276 		"IconIndex":16404,
       
   277 		"IconMaskIndex":16405
       
   278 	},{
       
   279 		"id":"12",
       
   280 		"CategoryName":"Shopping",
       
   281 		"GlobalId":"36000",
       
   282 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   283 		"IconIndex":16406,
       
   284 		"IconMaskIndex":16407
       
   285 	},{
       
   286 		"id":"13",
       
   287 		"CategoryName":"Sightseeing",
       
   288 		"GlobalId":"39000",
       
   289 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   290 		"IconIndex":16408,
       
   291 		"IconMaskIndex":16409
       
   292 	},{
       
   293 		"id":"14",
       
   294 		"CategoryName":"Sports",
       
   295 		"GlobalId":"42000",
       
   296 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   297 		"IconIndex":16410,
       
   298 		"IconMaskIndex":16411
       
   299 	},{
       
   300 		"id":"15",
       
   301 		"CategoryName":"Transport",
       
   302 		"GlobalId":"45000",
       
   303 		"IconFile":"\resource\apps\eposlmglcategories.mif",
       
   304 		"IconIndex":16412,
       
   305 		"IconMaskIndex":16413
       
   306 	},{
       
   307 		"id":"24",
       
   308 		"CategoryName":"All places",
       
   309 		"IconFile":"Z:\resource\apps\smart2go.mif",
       
   310 		"IconIndex":16384,
       
   311 		"IconMaskIndex":16385
       
   312 	},{
       
   313 		"id":"25",
       
   314 		"CategoryName":"Nokia maps",
       
   315 		"IconFile":"Z:\resource\apps\LmkUi.mif",
       
   316 		"IconIndex":16402,
       
   317 		"IconMaskIndex":16403
       
   318 	}];
       
   319 	
       
   320 	var data_database =	[{
       
   321 		"DatabaseURI":"file://C:eposlm.ldb",
       
   322 		"DatabaseName":"",
       
   323 		"DbProtocol":"file",
       
   324 		"DbActive":false,
       
   325 		"DbSize":226,
       
   326 		"DbDrive":"C",
       
   327 		"DbMedia":9
       
   328 	}]; 
       
   329 
       
   330 
       
   331     /**
       
   332      * register data!
       
   333      */
       
   334     device.implementation.loadData('Service.Landmarks', 'Landmark', data_landmark);
       
   335     device.implementation.loadData('Service.Landmarks', 'Category', data_category);
       
   336     device.implementation.loadData('Service.Landmarks', 'Database', data_database);
       
   337 
       
   338 })()
       
   339