-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.49..v0.2.50 changeset cali translation mgcp.js
Garret Voltz edited this page Nov 6, 2019
·
1 revision
diff --git a/test-files/translation_assistant/cali-translation-mgcp.js b/test-files/translation_assistant/cali-translation-mgcp.js
new file mode 100644
index 0000000..a03ac2f
--- /dev/null
+++ b/test-files/translation_assistant/cali-translation-mgcp.js
@@ -0,0 +1,39 @@
+hoot.require('translation_assistant')
+
+var attributeMapping = {
+ "cali-test": {
+ "CITY": "IGNORED",
+ "CNTRY_CODE": "IGNORED",
+ "COUNTRY": "IGNORED",
+ "ET_ID": "IGNORED",
+ "FCC": {
+ "HCT::Thoroughfare Class": {
+ "A20": "National Motorway",
+ "A30": "Secondary Route",
+ "A40": "Local Route"
+ },
+ "FCODE::Feature Code": "AP030"
+ },
+ "ID": "IGNORED",
+ "LEN": "IGNORED",
+ "LEN_KM": "IGNORED",
+ "LEN_MILES": "IGNORED",
+ "NAME": {
+ "NAM::Name": "NAME"
+ },
+ "NAME_ALT": "IGNORED",
+ "ONE_WAY": "IGNORED",
+ "RAMP": "IGNORED",
+ "ROUNDABOUT": "IGNORED",
+ "SPEED_KMH": "IGNORED",
+ "SPEED_MPH": "IGNORED"
+ }
+};
+var fcode;
+var schema = 'MGCP';
+
+var translateToOsm = function(attrs, layerName) {
+ return translation_assistant.translateAttributes(attrs, layerName, attributeMapping, fcode, schema);
+};
+
+