I created new feed - pois.txt, which type is Point_of_interest - my
type (before I had type PointIOfInterest)
I try to add item by my js application using function
function insertItem(poi_location, poi_name, poi_description,
poi_category) {
var newItem = new google.gdata.gbase.ItemsEntry();
newItem.setContent(google.gdata.Text.create(poi_description));
newItem.setAttribute('item_type', {type: 'text', value:
'Point_of_interest'});
newItem.setAttribute('location', {type: 'location', value:
poi_location});
newItem.setAttribute('name', {type: 'text', value: poi_name});
newItem.setAttribute('category', {type: 'text', value:
poi_category});
baseService.insertEntry('http://www.google.com/base/feeds/items',
newItem, handleInsert, handleError,
google.gdata.gbase.GoogleBaseItemEntry);
}
baseService = new google.gdata.gbase.GoogleBaseService('GoogleInc-
basejsguide-1.0');
poi_location - location using by google maps api
poi_name - for examle: my home
poi_description - for example: my sweet home
poi_category for examle school, shoop, home etc
I can write data to feed (few days ago I can do it without any
problems)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base 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://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---