Only the Parking Spaces layer has the PARKING_DISTRICT field, which is automatically calculated based on an intersect with the Parking Districts polygon layer.
The PARKING_DISTRICT field is not manually editable by the user.
var ParkDistInt = Intersects(FeatureSetByName($datastore, "ATD_ADMIN.parking_districts", ["OBJECTID"]), $feature);
var ParkDist = First(ParkDistInt);
if (ParkDist == null) {
return "N"
}
else
return "Y";
Parking District Name
Only the Parking Spaces layer has the PARKING_DISTRICT_NAME field, which is automatically calculated based on an intersect with the Parking Districts polygon layer.
The PARKING_DISTRICT_NAME field is not manually editable by the user.
Parking District ID
Only the Parking Spaces layer has the PARKING_DISTRICT_ID field, which is automatically calculated based on an intersect with the Parking Districts polygon layer.
The PARKING_DISTRICT_ID field is not manually editable by the user.
RPP District
Only the Parking Zones layer has the RPP_DISTRICT field, which is automatically calculated based on an intersect with the RPP Districts polygon layer.
The RPP_DISTRICT field is not manually editable by the user.
RPP District ID
Only the Parking Zones layer has the RPP_DISTRICT_ID field, which is automatically calculated based on an intersect with the RPP Districts polygon layer.
The RPP_DISTRICT_ID field is not manually editable by the user.
Time Limit
Only the Parking Restrictions table has the TIME_LIMIT field, which is automatically calculated based on the PARKING_TYPE field in the same table.
The TIME_LIMIT field is not manually editable for the following Parking Types. If the user changes the Time Limit for any of the below Parking Types, it will default back based on the Attribute Rule
Bicycle Parking Zone
Bus Stop
Car2Go Parking
Commercial Service Zone
Customer Service Zone
Marked ADA Zone
Passenger Loading Zone
Day of the Week Hours
Only the Parking Restrictions table has the days of the week fields, which are automatically calculated based on the HOURS_OF_OPERATION field in the same table.
These fields are not manually editable for the following Hours of Operations. If the user changes the Hours for any of the below Hours of Operation, it will default back based on the Attribute Rule
var ParkDistInt = Intersects(FeatureSetByName($datastore, "ATD_ADMIN.parking_districts", ["PARKING_DISTRICT_NAME"]), $feature);
for (var fc in ParkDistInt) {
return fc.PARKING_DISTRICT_NAME
}
if (Count(ParkDistInt) == 0) {
return $feature.PARKING_DISTRICT_NAME
}
var ParkDistInt = Intersects(FeatureSetByName($datastore, "ATD_ADMIN.parking_districts", ["PARKING_DISTRICT_ID"]), $feature);
for (var fc in ParkDistInt) {
return fc.PARKING_DISTRICT_ID
}
if (Count(ParkDistInt) == 0) {
return $feature.PARKING_DISTRICT_ID
}
var RppDistInt = Intersects(FeatureSetByName($datastore, "ATD_ADMIN.rpp_districts", ["RPP_DISTRICT"]), $feature);
for (var fc in RppDistInt) {
return fc.RPP_DISTRICT
}
if (Count(RppDistInt) == 0) {
return $feature.RPP_DISTRICT
}
var RppDistInt = Intersects(FeatureSetByName($datastore, "ATD_ADMIN.rpp_districts", ["RPP_DISTRICT_ID"]), $feature);
for (var fc in RppDistInt) {
return fc.RPP_DISTRICT_ID
}
if (Count(RppDistInt) == 0) {
return $feature.RPP_DISTRICT_ID
}
if ($feature.PARKING_TYPE == 'Commercial Service Zone') {
return '30 min'
}
else if ($feature.PARKING_TYPE == 'Customer Service Zone') {
return '15 min'
}
else if ($feature.PARKING_TYPE == 'Passenger Loading Zone') {
return '5 min'
}
else if ($feature.PARKING_TYPE == 'Bicycle Parking Zone') {
return 'All Day'
}
else if ($feature.PARKING_TYPE == 'Bus Stop') {
return 'All Day'
}
else if ($feature.PARKING_TYPE == 'Marked ADA Zone') {
return 'All Day'
}
else if ($feature.PARKING_TYPE == 'Car2Go Parking') {
return 'All Day'
}
else {
return $feature.TIME_LIMIT
}
// For return #
// enter the number of hours depending on the day of the week being calculated
//For last return, DAY will be the day that is being calculated
if ($feature.HOURS_OF_OPERATION == 'Mon-Fri: 3PM-9AM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Fri: 8AM-5PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Fri: 8AM-6PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Fri: 9AM-4PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sat: 7AM-7PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sat: 8AM-6PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sat: 8AM-Midnight') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sun: 12PM-8PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sun: 6PM-6AM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sun: 7AM-7PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sun: 8AM-10PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Sun: All Day') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Tue: 8AM-6PM, Wed-Fri: 8AM-Midnight, Sat: 11AM-Midnight') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Mon-Wed: 10AM-8PM, Thur-Sat: 10AM-Midnight') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Sat-Sun: 5AM-10PM') {
return # }
else if ($feature.HOURS_OF_OPERATION == 'Wed-Sat: 7PM-Midnight') {
return # }
else {
return $feature.DAY_HOURS }