Digital Team
About UsEdit in Gitbook
  • Welcome
  • Getting started
    • Life on the Digital team
      • Meetings
      • Communication
      • Software engineering working agreement
    • Contributing to Boston.gov
    • Using GitBook
  • Standards & best practices
    • Digital Team Release Notes
    • Working with Partners
    • Accessibility at COB
      • Developers
      • Content Editors
        • How to guide
      • Resources
      • Working with Iterators
    • Analytics and Metrics
    • Code of Conduct
    • General
    • Code reviews
    • Project Management
    • Git / GitHub
      • Contacts at Github
      • Git Command Tips
      • GitHub Service Accounts
    • Code quality
      • Automated tests & static analysis
      • Code comments
      • Style guides
        • Drupal/PHP
          • D8 Dependency Injection (DI)
        • React/TypeScript
    • Technical documentation
    • Hosting and monitoring
    • Deployment
  • Guides
    • Technology stack and technologies used
      • Web applications
    • Drupal - boston.gov
      • Custom Development & Configuration
        • On Demand Instances
          • Acquia Environment setup checklist
        • Continuous Deployment Process
        • Developer Onboarding
          • Step 1: Local Dev Environments
          • Step 2: Version control
          • Step 3: Introduction to Drupal
          • (to be sorted)
            • Development environment
              • PHP CodeSniffer
              • VSCode IDE Setup
              • AWS for Developers
              • Using Windows
            • Installation instructions
              • Typical build output
              • Lando 101
              • Verify Installation
                • Local Patterns installation
              • Windows install
              • PhpStorm settings configurations
          • Step 4: Site Building in Drupal 8
        • Site Development Notes
          • Git Best Practices - Drupal
          • Drupal Cache
          • Drupal Config
          • Custom Modules
            • Custom Themes
              • Front-end Theme (bos_theme)
                • Site Breadcrumbs
              • Back-end Theme (bos_admin)
            • Adding Templates to Custom Modules
            • Custom Content Types
              • D7 -> D8 Conversion
              • Content Editor UX
                • Content Moderation
              • In-page Navigation Menu
            • Custom Paragraphs
              • D7 -> D8 Conversion
            • Custom Taxonomies
            • WebApps
          • Drupal UX-specific
            • Image Styles & UX
            • Example Content Pages
          • PHPStorm IDE
        • CKEditor
        • Drupal Theme Implementation
          • Authoritative Design Source
          • bos_theme Theme
      • Drupal Apps/Content Types
        • Budget Website
        • Building Housing
          • BH Drupal Entities
          • BH Map Webpage
          • BH Property Webpage
            • BH Project Timeline
          • BH Salesforce Sync
            • Salesforce Contributed Module
        • Contact Form
        • Election results
        • Google reCAPTCHA
        • My Neighborhood Lookup
        • Metrolist
        • Metrolist (Drupal)
        • Project Tracker
          • Content Types (& Paragraphs)
          • Taxonomies
          • Views
          • Developer Notes
      • Drupal Features & Components
        • Single Sign On (SSO)
          • Drupal SAML Knowledgebase
          • SamlAuth
        • Maps on boston.gov
        • Charts on boston.gov
          • Quick Overview
          • Chart Data
          • Chart Configuration
          • Advanced Concepts and Techniques
          • Charts on boston.gov (legacy)
          • Useful Resources
      • Drupal micro-services (API end-points)
        • Integrating with Boston.gov
        • Assessing Forms Endpoint
        • Bos311 API
        • Cityscore
          • Knowledge Base
        • PDF Manager Module
        • PostMark Email Services
          • Postmark Knowledgebase
        • Upaknee Email List Services
        • Public Notices
        • Site Alerts
          • CodeRed Subscription
      • Drupal - Weekly Maintenance
      • Drupal - Periodic Maintenance
    • Digital Webapps
      • Libraries and Tools
        • Emotion
        • Storybook
        • Rollbar
      • Services
        • AWS-hosted Microservices
          • SQL Proxy API (DBConnector)
            • Developer Notes
          • PDFToolkit API (DB Connector)
            • Developer Notes
      • Webapps - Maintenance
      • Webapps
        • Boston Family Days
        • Property Tax Calculator
        • Access-Boston
          • Updating IAMDIR/Group Management/LDAP certificates
          • Node Server
          • Portal App Tile Configurations
          • Ownership of Concerns
          • Updating SAML Certificates
          • Applications/Services
            • Group Management
            • Confirm ID/ID Verification
            • Preferred Name
        • Sanitation Scheduling
        • Registry-Certs
          • Marriage Intention
      • DevOps
        • New service setup
          • Non-Monorepo Service Setup
        • Service Configuration
          • Editing a project’s configuration using Cyberduck
        • Managing AWS
          • Production Overview
          • AWS Bastion Access
          • Terraform
            • Updating the ECS cluster AMI
          • Restarting an ECS service
          • Encrypting service configuration for S3
          • Mounting AWS SFTP as a Drive (Mac)
        • Webapp Deployment
          • Deploy to AWS 2021
            • Deploy Tool (cob_ecrDeploy)
    • Fleet - Pattern Library
      • Patterns Library Architecture
      • Icon Library Architecture
      • Developers
        • Local Development for Drupal Developers
      • Patterns Library Maintenance
    • Legacy Website - cityofboston.gov
      • Animal Control
        • Dog Licenses
      • No Tow
        • Street Sweeping Reminders
        • Street Occupancy Alerts
        • Towing Alerts
        • Towing Search
        • Subscription Search
        • Proposed Restructure
          • Backend
        • Reillys Notes
      • Workers' Compensation Inquiry Form
      • Streetbook
      • Legacy Website - Maintenance
        • Animal Control Maintenance
        • Assessing Online (AOL) Maintenance
          • Knowledge-base
          • Disclosure Period
          • Annual PDF Initialization
          • Database Tables
        • No-Tow Maintenance
    • AgilePoint
      • AgilePoint: Adding Users
      • Migrating AGP Applications from one platform to another
    • The Hub - hub.boston.gov
      • The Hub - Maintenance
    • Maintenance
      • Updating SSL Certificates
    • Redirects
      • Redirecting from cityofboston.gov
      • URL redirects versus URL aliases - Drupal
      • DNS Redirects
    • Decommissioned Apps or Services
      • Archived Forms Information
      • CodeRed
      • Drupal 7
        • Deployment (2019)
          • Why do we peer-review pull-requests ?
      • Rentsmart
      • SnowStats
      • Ruby
    • Weglot translation
      • What to do in Weglot
      • What to do on the website or page
        • Softr
        • Drupal Powered Pages
        • Custom Pages
  • Projects
    • Project: Patterns Library Cleanup
      • Project: Refactoring Legacy CSS
        • Strategy
        • Regression Testing
        • Maintenance
    • Project: Upaknee
    • Project: Everbridge API + UI
    • Project: 311 CRM Upgrade
      • Project: City Worker Upgrade to City Worker 5
      • Project: Lagan 311 CRM upgrade to 15r4
    • Project: Fleet (Pattern Library Design System)
    • Project: Monorepo Decoupling
    • Inactive projects
      • Project: 311 (Salesforce Upgrade)
      • Project: Access Boston
        • General/Historical Documentation
          • Edit Config and Upload Icons
        • Processes
          • Process: Adding New Icon to Access Boston Website
          • Process: Non-icon Access Boston Feature or Bug Requests
          • Self-Service
      • Project: Alexa Skill
      • Project: Assessing Online
        • 2022 Notes
      • Project: Boards and commissions
      • Project: City Hall Appointment Scheduler
      • Project: CityScore
      • Project: Mobile Apps
      • Project: Permit Finder
      • Project: Public Notice Signage
      • Project: Registry Suite
        • Birth certificates
        • Marriage Certificates
        • Marriage Intention
        • Death Certificates
      • Project: Work With U.S. Digital Response Team
      • Project: TDM Points App
      • Project: Translation on boston.gov
  • External resources
    • Learning resources
    • Reference links
    • Applications and extensions
Powered by GitBook
On this page
  • Basic Information
  • How to update the Streetbook database
  • Immediate run:
  • Check for errors
  • Force a run
  • Under the hood
  • Updating as a content editor

Was this helpful?

Export as PDF
  1. Guides
  2. Legacy Website - cityofboston.gov

Streetbook

A classic ASP app which allows resident to look up streets and get static information about the street.

PreviousWorkers' Compensation Inquiry FormNextLegacy Website - Maintenance

Last updated 7 months ago

Was this helpful?

Basic Information

App Server

ZPCOBWEB01

Files location

D:\wwwcob\publicworks\streetbook

App files

default.asp - landing page, contains search textbox

qryResponse.asp - runs the query to find streets matching search entered and returns table of results,

qryResponse2.asp - runs a query to find the information for a selected street and returns results as a table. loader.asp - imports data from a file (streetbook_import.txt) into the database table.

Import data file

streetbook_import.txt - a csv exported from the excel file supplied by PWD.

IMPORTANT 1. The file format must be: comma separated records, each field surrounded by double quotes (even if numeric fields). The double-quoting of all fields is important. 2. The field order must also be as per the example file streetbook_example.txt found on the server. The field order is important. 3. The file must be called streetbook_import.txt and be placed in the same folder as the loader.asp file. The file name is important.

Database Server

VSQL01

Database

pwd

Tables

StreetBook - Production table containing streetbook records

StreetBook_2024 - Backup of prod data as at 10/10/2024 (not used by any prod functionality)

StreetBook_du - testing table (not used by any prod functionality)

Scheduled Task

Streetbook Updater - uses powershell to open loader.asp every morning at 1am.

Tip: You can run the scheduled task manually at any time. This is equivalent to opening loader.asp in a browser.

Nightly output file

The output from loader.asp is captured in the file loader_output.txt. You can see the results of the last scheduled task run in this file (its timestamp shows the date it was created = the last run datetime of the scheduled task).

How to update the Streetbook database

The loader.asp file has been set up to run as a scheduled task on ZPCOBWEB01. It runs each morning at 1AM.

Following the instructions in the orange IMPORTANT note in the table above, export the streetbook data to a new file, name it streetbook_import.txt and copy it to the D:\wwwcob\publicworks\streetbook folder on ZPCOBWEB01.

The file contents should copied over the existing data in the database overnight, so check in the morning to see.

Immediate run:

If you can't wait for the overnight run, you can open this page in a browser https://cityofboston.gov/publicworks/streetbook/loader.asp at any time ,but, see warning below:

WARNING: The loader.asp page is intended for automated use. Opening the loader.asp page in a browser will cause an immediate execution of the update script, and may overwrite the current data with the data in the file streetbook_import.txt. This may or may not be your intention, so take care opening the page !

Check for errors

If you think the file has not been imported, then check loader_output.txt for info and streetbook.log for errors. Note: If the log file is large, then you can safely delete it, the script will create a new file as needed.

Force a run

If you think the script is not determining that the file has new records (e.g. the loader_output.txt reports nothing done, but you know the file has changed) - then you can delete the checksum.txt file. This will cause the import to occur the next time loader.asp is opened (manually or by the overnight process)

Under the hood

When loader.asp runs,

  1. It reads the streetbook_import.txt file and splits the records based on either UNIX (LF) or Windows (CRLF) line breaks

  2. It deletes the existing data in the streetbook table

  3. it imports the new data into the streetbook table - expecting it to be in the column order [PRIVATEOPEN],[STREET],[SFX],[DISTRICT],[PUBLICPRIVATE],[FROM],[TO],[ADDRESSES],[WARD],[PRCNT],[DIST],[PWDDIST],[ZIP],[NOTES]

  4. It expects the first row of the file to be the column names, so the import starts on row2.

  5. It expects the last row of the file to be a blank line so it skips the last row.

  6. It checksums the file contents and only imports if the checksum of the contents of the current file is different to the checksum from the last import. The checksum from the last import is saved in the file checksum.txt. Tip: Deleting the checksum.txt file will force the import next time the script is run.

  7. Each time an import is attempted, it is logged to streetbook.log

  8. Any import issues are logged to the file streetbook.log

Updating as a content editor

  1. Download that folder to your desktop. At this point, you will need to map a network drive to the D:\wwwcob\publicworks\streetbook folder on ZPCOBWEB01.

  2. Drag the copy of the streetbook_import.txt file into that folder. The search will automatically update the next time loader.asp runs.

    1. If you need to force an immedaite update, follow the steps outlined above in the "Immediate Run" section.

A Google Script is attached to a in our Boston Digital Service Team Drive. When you get the new data from Public Works, overwrite the data in that existing spreadsheet.

Run the script attached to the spreadsheet. This will create a new streetbook_import.txt file in the existing folder in our Team Drive. That is the file you need to use to update the search on cityofboston.gov.

Streetbook spreadsheet
Streetbook files