getCityIndex and groveIndex (karthik's work)