Esempio n. 1
0
class GPS(Entity):
    _category_ = 'Locations'
    gps = StringEntityField('properties.gps',
                            display_name='GPS Co-ordinate',
                            is_value=True)
    latitude = FloatEntityField('latitude', display_name='Latitude')
    longitude = FloatEntityField('longitude', display_name='Longitude')
Esempio n. 2
0
class CircularArea(Entity):
    _category_ = 'Locations'
    area_circular = StringEntityField('area.circular',
                                      display_name='Circular Area',
                                      is_value=True)
    latitude = FloatEntityField('latitude', display_name='Latitude')
    longitude = FloatEntityField('longitude', display_name='Longitude')
    radius = IntegerEntityField('radius', display_name='Radius (m)')
Esempio n. 3
0
 class TestEntity(Entity):
     str = StringEntityField('type.str')
     int = IntegerEntityField('type.int')
     float = FloatEntityField('type.float')
     bool = BooleanEntityField('type.bool')
     enum = EnumEntityField('type.enum', choices=[2, 1, 0])
     date = DateEntityField('type.date')
     datetime = DateTimeEntityField('type.datetime')
     timespan = TimeSpanEntityField('type.timespan')
     color = ColorEntityField('type.color')
Esempio n. 4
0
class Location(Entity):
    _category_ = 'Locations'
    name = StringEntityField('location.name',
                             display_name='Name',
                             is_value=True)
    city = StringEntityField('city', display_name='City')
    countrycode = StringEntityField('countrycode',
                                    display_name='Country Code',
                                    alias='countrysc')
    area = StringEntityField('location.area',
                             display_name='Area',
                             alias='area')
    country = StringEntityField('country', display_name='Country')
    longitude = FloatEntityField('longitude',
                                 display_name='Longitude',
                                 alias='long')
    latitude = FloatEntityField('latitude',
                                display_name='Latitude',
                                alias='lat')
    streetaddress = StringEntityField('streetaddress',
                                      display_name='Street Address')
    areacode = StringEntityField('location.areacode', display_name='Area Code')