MILES, William. 1780 — London 21.5.1860. British Colonial Officer in India. Major-General. In 1800 joined the Bombay Native Infantry, served in Baroda. “Made a treaty in 1820 with the Raja of Rodanpur, commanded a regiment in the first Burmese war, took Mergui. Made a treaty with the Suigam chiefs, in Gujarat, in 1826. Political Officer at Palanpur, 1829.” Retired in 1834.
ancestry.com has William Miles (Medley, Herefordshire 1781 — Kingstone, Herefordshire 1860), son of John Miles and Sarah Hughes, husband of Elinor (1787–1868) and father of a son and a daughter, but nothing about career.
Publications: “Account of the Hill-Fort of Chapaneer in Guzerat”, Transactions of the Bombay Lit. Soc. 1, 1819, 140-145; “Some Account of Mahummud Mehdi, the Wali or Saint of the Mehdivis, transl.”, TrBLS 2, 1820, 297-311 (n.b. there are two editions of this, I have used the one in archive.org).
– “An account of the principality of Esdur”, 1821-22, and a translation of history of Babi Pathans, Nawabs of Radhanpur, n.d. (both are mentioned in https://discovery.nationalarchives.gov.uk/details/r/d188dfd6-4ac6-42f3-af3a-76fa5ef7faad, but not traced further).
– “On the Jainas of Gujerat and Máŕwáŕ”, TrRAS 3, 1835, 335-371.
– Translated: History of Hyder Naik, otherwise styled Shums ul Moolk, Ameer ud Dowla, Nawaub Hydur Ali Khan Bahadoor, Hydur Jung; Nawaub of the Karnatic Balaghaut. 513 p. L. 1842 (Haidar Ali); History of the Reign of Tipu Sultan: Being a Continuation of the Neshani Hyduri by Hussein Ali Khan Kirmani. 15+291 p. L. 1864.
Sources: Buckland, Dictionary; stray notes in Internet.