The scripts in this repository are used to update items on ArcGIS Online using data from the WSDOT Traveler Information API.
References wsdot-traffic-gp as a git submodule.
- ArcGIS Pro 2.0 or higher
- ArcGIS API for Python
- Python 3.X (comes with ArcGIS Pro)
- Install ArcGIS Pro
- Install ArcGIS API for Python
- Clone this git repository using the
--recursive
option. (If you've already cloned the repository without using this option, rungit submodule update --init --recursive
to get the submodules.)git clone --recursive https://github.com/WSDOT-GIS/wsdot-traffic-agol-update.git
- Create an environment variable called
WSDOT_TRAFFIC_API_CODE
with its value set to a valid WSDOT Traveler Information API access code. - Create a file called
login-info.json
containing ArcGIS Online login username and password.{ "username": "JohnQPublic", "password": "Y0urP@55w0rd" }
- Creates File Geodatabase of traffic data.
- Logs into ArcGIS Online (AGOL)
- Uploads zipped GDB to AGOL.
- Publishes the uploaded GDB as a feature service
- Inspired by the Transportation 511 overwrite-hosted-features script