mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 01:10:24 -05:00
Add function to obtain Metro cities in the area
This commit is contained in:
parent
a0c142183a
commit
2d2f7dc5af
@ -29,6 +29,14 @@ def getPrimaryLocations():
|
||||
|
||||
return locationIds
|
||||
|
||||
def getMetroCities():
|
||||
""" Returns all Metro Map locations in the MPC """
|
||||
locationIds = []
|
||||
|
||||
for i in data['Config']['ConfigDef']['ConfigItems']['ConfigItem']:
|
||||
if 'MetroMapCity' in i['@key'] and i['@value'] != "":
|
||||
locationIds.append(i['@value'].split("_")[2])
|
||||
|
||||
def getTideStations():
|
||||
""" Returns all of the tide stations present in the MachineProductCfg """
|
||||
stations = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user