Exactly how to map geoip.location to geo_point

I ended up having to delete all mappings , templates, and indices, apply a brand new template via curl or kibana built in console (5.x) to make this work.