Exemplo n.º 1
0
 def __init__(self, stamped_api, options):
     ATitleBasedEntityMatcher.__init__(self, stamped_api, options)
     earthRadius = 3959.0 # miles
     maxDistance = 20.0 / earthRadius # convert to radians
     
     self.distance = maxDistance
     self._placesDB._collection.ensure_index([("coordinates", GEO2D)])
Exemplo n.º 2
0
 def __init__(self, stamped_api, options):
     ATitleBasedEntityMatcher.__init__(self, stamped_api, options)
Exemplo n.º 3
0
    def __init__(self, stamped_api, options, source):
        ATitleBasedEntityMatcher.__init__(self, stamped_api, options)

        self.source = source
 def __init__(self, stamped_api, options):
     ATitleBasedEntityMatcher.__init__(self, stamped_api, options)
     self._googlePlaces = GooglePlaces()