Gex, Ain

Gex () is a commune in the Ain department. It is in the Auvergne-Rhône-Alpes in east France. Gex is the capital of the "arrondissement" of Gex and of the historical region Pays de Gex.
It is from the Swiss border and from Geneva.
Geography.
The area of Gex is . Its average altitude is ; at the city hall, the altitude is .
The distances from Gex to other cities are:
Climate.
The climate of Gex, in the Köppen climate classification, is Cfb - Oceanic climate with template summers.
Population.
The inhabitants of Gex are known, in French, as "Gexois" (women: "Gexoises"').
Gex's population, in 2014 was 11,141 and its population density is of inhabitants/km2.
Evolution of the population in Gex
Administration.
Gex is a subprefecture of the Ain department and the capital of the arrondissement of Gex in the same department. It is also the capital of the canton of Gex, formed by 7 "communes" (29,557 inhabitants) 
It is part of the intercommunality "Pays de Gex".