The default speed limit for a Neighborhood is an important parameter in the BNA analysis, and it needs to be passed along so it can be displayed on the frontend. It is now being exported as part of the analysis process, and then imported into the default_speed_limit field on the AnalysisJob model through the import_default_speed management command.
It is then displayed on the frontend in a row in the sidebar table, and as a Leaflet control on the bottom of the map.
Demo
Notes
Testing Instructions
Create a Neighborhood, ensuring that it's FIPS code is correct since this is used in the matching of default_speed
Run an analysis job for the newly created neighborhood (Boulder shown in screenshots)
Validate that default_speed_limit field has been copied to the AnalysisJob in the Analysis Jobs admin page, as shown in the 2nd screenshot
Navigate to the Place Detail page. The default speed limit should be displayed in a Leaflet Control in the bottom right next to the map legend.
Overview
The default speed limit for a Neighborhood is an important parameter in the BNA analysis, and it needs to be passed along so it can be displayed on the frontend. It is now being exported as part of the analysis process, and then imported into the
default_speed_limit
field on the AnalysisJob model through theimport_default_speed
management command.It is then displayed on the frontend in a row in the sidebar table, and as a Leaflet control on the bottom of the map.
Demo
Notes
Testing Instructions
Checklist
Resolves #804