<s> from django . contrib . gis . db import models <EOL> class Neighborhood ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> state = models . CharField ( max_length = <NUM_LIT:2> ) <EOL> county = models . CharField ( max_length = <NUM_LIT> ) <EOL> city = models . CharField ( max_length = <NUM_LIT:64> ) <EOL> name = models . CharField ( max_length = <NUM_LIT:64> ) <EOL> regionid = models . FloatField ( ) <EOL> geom = models . MultiPolygonField ( geography = True ) <EOL> objects = models . GeoManager ( ) <EOL> def __unicode__ ( self ) : <EOL> return '<STR_LIT>' . format ( name = self . name , city = self . city , state = self . state ) <EOL> @ property <EOL> def feature ( self ) : <EOL> """<STR_LIT>""" <EOL> return { <EOL> '<STR_LIT:type>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:type>' : self . geom . geom_type , <EOL> '<STR_LIT>' : self . geom . coords , <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:description>' : self . name , <EOL> } <EOL> } <EOL> neighborhood_mapping = { <EOL> '<STR_LIT:state>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } </s>
