Map swapping Mechanic

I came up with an idea for a mechanic where pressing Q will teleport you to the same x,y coordinates on a alternate version of the map your on, but I don't know how to go about it. Any idea how this would be possible using eventing?
Just have three variables. The first variable you will set to the Map ID of the target map. The second and third will be the assigned the X and Y of the map you are currently on (e.g. Operand: GameData -> Character -> Player -> Map X).

◆Control Variables:#0020 Map ID = <map ID of the target map>
◆Control Variables:#0025 MapX = Map X of Player
◆Control Variables:#0026 MapY = Map Y of Player
◆Transfer Player:{Map ID} ({MapX},{MapY})

The problem is that I don't think there's a way to directly check the Map ID... so you would need to lookup "MapInfos.json" in the "data" folder. Do be very careful not to modify anything in this file...

EDIT: sorry, I just noticed that the Map ID shows in the bottom bar of the editor... first time in nine months that I noticed that. So, just use that number without the leading zeroes (i.e. if it says 005: VOLCANO_B3, the map ID is 5).
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/map-swapping-mechanic.161193/