#NEWLINE# @ classmethod #NEWLINE# def geo_coordinate( cls , center = None , radius = 0.001 ) : #NEWLINE# #INDENT# '\n        Optionally center the coord and pick a point within radius.\n        ' #NEWLINE# if ( center is None ) : #NEWLINE# #INDENT# return Decimal ( str ( ( random . randint ( ( - 180000000 ) , 180000000 ) / 1000000.0 ) ) ) . quantize ( Decimal ( '.000001' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# center = float ( center ) #NEWLINE# radius = float ( radius ) #NEWLINE# geo = random . uniform ( ( center - radius ) , ( center + radius ) ) #NEWLINE# return Decimal ( str ( geo ) ) . quantize ( Decimal ( '.000001' ) )