Add API and demo code for districts