I have a csv file that I a can read from a specific URL.
https://stadlspoceastus.blob.core.windows.net/curated/CrashAnalysisData/v2/real_time_prediction........
The data in this link refreshes every 30 minutes or so. I am trying to find the best workflow to display this data in AGOL.
NOTING that I have to process this data a bit before viewing... The csv file has XY and MeasureFrom and MeasureTo fields...
I have a route later that I am using arcpy.lr.MakeRouteEventLayer on. I take the MeasureTo and MeasureFrom in the csv file to create a line feature. It is this line feature that I am trying to show in AGOL.
My initial thought was to
Step 1
- Take the csv file and run the GP tool to create this Feature Class in SDE
- Spin this FC up to a service and reference in AGOL
Step 2
- Create a python file that will read the .csv file every 30 minutes or so and create a temp Feature Layer in Python using MakeRouteEventLayer
- Then use the New Route Event Layer to Truncate and append the data in SDE. Thus updating the data in AGOL
Does that make sense? Any other ways to do this? Im am thinking Local as the processing every 30 minutes would eat credits...
Is there a way to add this .csv file to AGOL and then create a feature layer off of it? But how would I automate the truncate and append in AGOL?