Hello,
I've been given the task of finding a way to process incoming email notifications like the one attached, extract the locate information from these emails, and display it on an ArcGIS online map (similar to the Map example) for our utility crews in the field. They need this information to carry out their locates and report back to our 811 locate system.
While there are ticket management solutions available, our small community currently lacks the budget for such services. My goal is to parse the email contents and convert them into a polygonal feature. However, the email only provides N, S, E, and W coordinates. If anyone has suggestions or can point me in the right direction to achieve this task, I would greatly appreciate it.
Thank you for your time.
Solved! Go to Solution.
Assuming the API exposes a query that allows you to get new tickets from a specific timeframe (e.g. "give me everything new in the last 15 minutes"), I'd do something like this:
Does your 811 system have any APIs? Parsing emails is possible but it might be easier and more robust if there's something like a REST API you could make requests from instead.
Assuming the API exposes a query that allows you to get new tickets from a specific timeframe (e.g. "give me everything new in the last 15 minutes"), I'd do something like this:
Good Morning.. I do similar processing all the time although it's in a Unix style environment not Windows if that matters.
Set up a "Vacation" handler in your mail agent so that the incoming message gets routed into a mail handling script. Then parse the message with Perl, PHP, Python, or a simple (relativity speaking) AWK (GAWK) script. As a last step use Velocity or a simple Rest API to add the new entry to the feature layer as needed..
Also, an alternative may be just to develop a Zap to handle the email incoming portion without dealing with the infrastructure. https://zapier.com/