def getLatLon(house):
     try:
         return Utils.geoSearchWithAddress(house.city,
                                           house.district + house.campus)
     except:
         Utils.write_error('%s 赶集网解析经纬度错误 %s' %
                           (Utils.getCurrentTime(), house.url))
         return 0, 0, ''
Пример #2
0
 def getLatLon(house):
     return Utils.geoSearch(
         house.city, house.district + house.campus
     ) if house.district != "" else Utils.geoSearchWithAddress(
         house.city, house.address + house.campus)