From Bulbapedia, the community-driven Pokémon encyclopedia.
Each location in the Generation VI games has its own identification number used internally by the game. They are enumerated here, in order. Locations such as routes with alternate names have their alternate names listed as an index number after the main location. Locations lacking an alternate name have the following index number blank.
If a Pokémon is transported through Pokémon Bank, then its met location and Egg location stay the same instead of changing to 30001 (Link Trade). However, this is not visible in-game.