The API documentation refers to Location as an array of Where objects but I 
have been unable to store anything other than a single value string.
In my code I can see that the Calender entry has been updated with multiple 
locations but after the Calendar updateEntry call the next time I retrieve 
the entry feed only location(0) ValueString is returned.

I want to store both LatLng coordinates and a Text string because in remote 
locations address geo-coding is not always reliable.

         {
            whereAdd1 = new google.gdata.Where({
               label: "NewAddress",
               valueString: addrArr[ix]
            });
            whereLoc1 = new google.gdata.Where({
               label: "LatLong",
               valueString: locn[ix].toString()
            });
            whereAdd = new google.gdata.Where({
               rel: "addr",
               label: "NewAddress",
               valueString: addrArr[ix]
            });
            whereLoc = new google.gdata.Where({
               rel: "latlng",
               label: "LatLong",
               valueString: locn[ix].toString()
            });
           var whereArr=[whereLoc1,whereAdd1];
          // var 
whereArr=[whereLoc1,whereAdd1,whereAdd,whereLoc,eventEntry.getLocations()[0]];
            eventEntry = calEvents[calIxArr[ix]];
            
eventEntry.setTitle(google.gdata.Text.create(titleArr[ix]+'-Update'));
          //  eventEntry.addLocation(whereLoc);
          //  eventEntry.addLocation(whereAdd);
            eventEntry.setLocations(whereArr);
            var ev_list=" ";
            for (var l=0;l<eventEntry.getLocations().length;l++)
            {
               ev_list += "<br/>loc: "+l;
               ev_list += " Label: " 
+eventEntry.getLocations()[l].getLabel();
               ev_list += " Rel: " +eventEntry.getLocations()[l].getRel();
               ev_list += " Value: "+ 
eventEntry.getLocations()[l].getValueString();
            }

            //alert(ev_list);
            eventEntry.updateEntry(
                                  function(){
                                  alert('calendar updated!');
                                  },
                                  handleError
                                  );
         }

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to