How do I set the "Geolocation" header for an extension?

I don’t think you would. You would need to add it as custom dialplan.