MCPcopy Create free account
hub / github.com/debbide/GeoFill / generateCity

Function generateCity

scripts/generators.js:1079–1085  ·  view source on GitHub ↗

* 生成城市(使用关联数据)

(country)

Source from the content-addressed store, hash-verified

1077 * 生成城市(使用关联数据)
1078 */
1079function generateCity(country) {
1080 // 如果还没有选择位置,先选择一个
1081 if (!currentLocation) {
1082 selectLocation(country);
1083 }
1084 return currentLocation ? currentLocation.city : 'New York';
1085}
1086
1087/**
1088 * 生成州/省份(使用关联数据,与城市匹配)

Callers 3

generateAllInfoFunction · 0.85
generators.jsFile · 0.85

Calls 1

selectLocationFunction · 0.85

Tested by

no test coverage detected