@classmethod
    def geo_coordinate(cls, center=None, radius=0.001):
        if center is None:
            return Decimal(str(random.randint(-180000000, 180000000) / 1000000.0)).quantize(Decimal('.000001'))
        else:
            center = float(center)
            radius = float(radius)
            geo = random.uniform(center - radius, center + radius)
            return Decimal(str(geo)).quantize(Decimal('.000001'))
Optionally center the coord and pick a point within radius.
dataset/ETHPy150Open joke2k/faker/faker/providers/address/__init__.py/Provider.geo_coordinate