Add a new city.
A name of the new city.
OptionalcountryId?: numberAn id of the country of the city. If none provided, the top country from the data model would be used.
OptionalstateId?: numberAn id of the state of the city, if any.
a new city object
an array of all the cities in the WME data model
The id of the city to look for.
city with id, or null if not found in the WME data model
Find a city by the name.
A name of the city.
OptionalcountryId?: numberAn optional id of the country to look for the city. If none provided, the top country from the data model would be used.
OptionalstateId?: numberAn optional id of the state to look for the city.
a city object or null if not found
Get the City set to be the top city in the WME data model, or null if none set. The top city is the city which the majority of segments in the WME data model belong to.
top city or null
Methods for dealing with Cities.