Create the uploadutil.py file and add this method to it:
def geo_converter(geo_str): if geo_str: lat, lng = geo_str.split(',') return db.GeoPt(lat=float(lat), lon=float(lng)) return None
Then add this to bulkloader.yaml :
Add import for uploadutil:
- import: uploadutil
And add property:
- property: location external_name: LOCATION import_transform: uploadutil.geo_converter
source share