Example #1
0
 def validate(element):
     if "longitude" not in element:
         logging.debug("Warning: object without a longitude - {}".format(element))
         return False
     if "latitude" not in element:
         logging.debug("Warning: object without a latitude - {}".format(element))
         return False
     return Element.validate(element)
Example #2
0
 def validate(element):
     return Element.validate(element)