Providing VizMap Data without Excel

VizMap: the data javaScript  get it now


For this example we are going to use the Concerts/Venues example. The complete workbook (googlemapping.xlsm) can be downloaded and the example Parameter WorkSheet is called VenuesParameters.

The VizMap data

Excel generates a jSon version of the data to be used by the VizMap application. Naturally this data must match that described by the VizMap Framework.  

However this could just as easily be provided manually or from some other generator - for example from a webservice. If you do not want to use Excel, you can start with an already generated VizMap application such as this one and write your own data provider function. 



The generated one is given below for the  Concerts/Venues example. To provide your own, simply write a replacement mcpherGetData() function that returns the same object structure.

//---Excel generated data
  function mcpherGetData () 
 { return (
  {
   "data":{
      "cJobject":[         {
            "Latitude":"41.976641",
            "Longtitude":"-87.86369",
            "SpotID":"101",
            "Title":"Rosemount theatre",
            "Content":"\<b\>Rosemount theatre\</b\>\<br\>Rosemont Theater\<br\> 5400 N River Rd\<br\> Rosemont\<br\> IL 60018-5409\<br\> USA\<br\>",
            "Code":"US",
            "Country":"United States",
            "Venue":"Rosemount theatre",
            "State":"IL",
            "City":"Rosemont",
            "Address":"Rosemont Theater, 5400 N River Rd, Rosemont, IL 60018-5409, USA",
            "Shows":"101",
            "ID":"101",
            "Average Price":"100",
            "Price":"100",
            "Date":"11/5/2011",
            "Artist":"Sting",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic243.png",
            "Venue Photo":"http://ramblings.mcpher.com/images/pic239.png"
         },
         {
            "Latitude":"41.976641",
            "Longtitude":"-87.86369",
            "SpotID":"101",
            "Title":"Rosemount theatre",
            "Content":"\<b\>Rosemount theatre\</b\>\<br\>Rosemont Theater\<br\> 5400 N River Rd\<br\> Rosemont\<br\> IL 60018-5409\<br\> USA\<br\>",
            "Code":"US",
            "Country":"United States",
            "Venue":"Rosemount theatre",
            "State":"IL",
            "City":"Rosemont",
            "Address":"Rosemont Theater, 5400 N River Rd, Rosemont, IL 60018-5409, USA",
            "Shows":"101",
            "ID":"101",
            "Average Price":"90",
            "Price":"90",
            "Date":"11/13/2011",
            "Artist":"Paul Simon",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic241.png",
            "Venue Photo":"http://ramblings.mcpher.com/images/pic239.png"
         },
         {
            "Latitude":"30.029015",
            "Longtitude":"-90.0522531",
            "SpotID":"102",
            "Title":"UNO Lakefront Arena",
            "Content":"\<b\>UNO Lakefront Arena\</b\>\<br\>6801 Franklin Ave\<br\> New Orleans\<br\> LA 70122\<br\> USA\<br\>",
            "Code":"US",
            "Country":"United States",
            "Venue":"UNO Lakefront Arena",
            "State":"LA",
            "City":"New Orleans",
            "Address":"6801 Franklin Ave, New Orleans, LA 70122, USA",
            "Shows":"102",
            "ID":"102",
            "Average Price":"120",
            "Price":"120",
            "Date":"11/4/2011",
            "Artist":"Linkin Park",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic242.png",
            "Venue Photo":"http://ramblings.mcpher.com/images/pic238.png"
         },
         {
            "Latitude":"34.6381228",
            "Longtitude":"135.4253848",
            "SpotID":"103",
            "Title":"Intex",
            "Content":"\<b\>Intex\</b\>\<br\>?559-0034\<br\> Japan\<br\>",
            "Code":"JP",
            "Country":"Japan",
            "Venue":"Intex",
            "State":"",
            "City":"Suminoe Ward",
            "Address":"?559-0034, Japan",
            "Shows":"103",
            "ID":"103",
            "Average Price":"80",
            "Price":"80",
            "Date":"9/16/2011",
            "Artist":"Linkin Park",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic242.png",
            "Venue Photo":"http://ramblings.mcpher.com/images/pic240.png"
         },
         {
            "Latitude":"37.5198209",
            "Longtitude":"127.1227901",
            "SpotID":"104",
            "Title":"olympic park",
            "Content":"\<b\>olympic park\</b\>\<br\>Olympic Park\<br\> 88 Bangi-dong\<br\> Songpa-gu\<br\> Seoul\<br\> South Korea\<br\>",
            "Code":"KR",
            "Country":"South Korea",
            "Venue":"olympic park",
            "State":"",
            "City":"Seoul",
            "Address":"Olympic Park, 88 Bangi-dong, Songpa-gu, Seoul, South Korea",
            "Shows":"104",
            "ID":"104",
            "Average Price":"67",
            "Price":"67",
            "Date":"9/8/2011",
            "Artist":"Linkin Park",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic242.png",
            "Venue Photo":""
         },
         {
            "Latitude":"13.8448335",
            "Longtitude":"100.3610179",
            "SpotID":"105",
            "Title":"aktiv square",
            "Content":"\<b\>aktiv square\</b\>\<br\>Ban Mai\<br\> Bang Yai\<br\> Nonthaburi 11140\<br\> Thailand\<br\>",
            "Code":"TH",
            "Country":"Thailand",
            "Venue":"aktiv square",
            "State":"",
            "City":"Bang Yai",
            "Address":"Ban Mai, Bang Yai, Nonthaburi 11140, Thailand",
            "Shows":"105",
            "ID":"105",
            "Average Price":"50",
            "Price":"50",
            "Date":"9/23/2011",
            "Artist":"Linkin Park",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic242.png",
            "Venue Photo":""
         },
         {
            "Latitude":"55.7532225",
            "Longtitude":"37.6215052",
            "SpotID":"106",
            "Title":"red square",
            "Content":"\<b\>red square\</b\>\<br\>Red Square\<br\> Moscow\<br\> Russia\<br\>",
            "Code":"RU",
            "Country":"Russian Federation",
            "Venue":"red square",
            "State":"administrativnyy okrug Tsentral\'nyy",
            "City":"Moscow",
            "Address":"Red Square, Moscow, Russia",
            "Shows":"106",
            "ID":"106",
            "Average Price":"20",
            "Price":"20",
            "Date":"6/23/2011",
            "Artist":"Linkin Park",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic242.png",
            "Venue Photo":""
         },
         {
            "Latitude":"52.3123574",
            "Longtitude":"4.9441509",
            "SpotID":"107",
            "Title":"heineken hall",
            "Content":"\<b\>heineken hall\</b\>\<br\>Arena Boulevard 590\<br\> 1101 Amsterdam Zuidoost\<br\> The Netherlands\<br\>",
            "Code":"NL",
            "Country":"The Netherlands",
            "Venue":"heineken hall",
            "State":"Government of Amsterdam",
            "City":"Amsterdam Zuidoost",
            "Address":"Arena Boulevard 590, 1101 Amsterdam Zuidoost, The Netherlands",
            "Shows":"107",
            "ID":"107",
            "Average Price":"40",
            "Price":"40",
            "Date":"6/23/2011",
            "Artist":"Toto",
            "Artist Photo":"http://ramblings.mcpher.com/images/pic244.png",
            "Venue Photo":""
         }
       ]
   }
 }
 ) ; }



Comments