Hi!
Is there any spec which will describe all possible geo data types?
Right now i've found type set to:
'city', 'Polygon' or 'Point'. Are there any others? What are possible
values? I've to check type property or maybe there is some generic way
which will check other fields? Right now my code looks like this:

    if(this.place) {
        if(this.place.type.toUpperCase() === TW.Core.Place.CITY_TYPE)
{
            this._coords = new TW.Core.Place(
                this.place.full_name,
                TW.Core.Place.CITY_TYPE,
                []
            );
        }
        else{
            this._coords = new TW.Core.Place(
                this.place.full_name,
                this.place.bounding_box.type.toUpperCase(),
                this.place.bounding_box.coordinates
            );
        }
    }
    else if(this.coordinates) {
        this._coords = new TW.Core.Place(
            '',
            this.coordinates.type.toUpperCase(),
            this.coordinates.coordinates
        );
    }

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to