[addresses] Adding ability to randomly append relative/cardinal directions
This commit is contained in:
15
scripts/geodata/addresses/directions.py
Normal file
15
scripts/geodata/addresses/directions.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import random
|
||||
import six
|
||||
|
||||
from geodata.addresses.config import address_config
|
||||
from geodata.addresses.numbering import NumericPhrase
|
||||
from geodata.addresses.sampling import weighted_choice
|
||||
from geodata.encoding import safe_decode
|
||||
|
||||
|
||||
class RelativeDirection(NumericPhrase):
|
||||
key = 'directions'
|
||||
|
||||
|
||||
class CardinalDirection(NumericPhrase):
|
||||
key = 'cardinal_directions'
|
||||
Reference in New Issue
Block a user