I am using this plugin to make a route manager that finds the most efficient route between two locations with multiple stops here: https://travelplanner.jasminealley.com/any_location
When the user chooses a location, the address is stored in my database.
When they click a button to optimize their route, the plugin outputs route directions showing the most efficient route between those addresses that look something like this:
Route Segment: 1
Austin, TX, USA to 605 Azie Morton Rd, Austin, TX 78704, USA
2.2 mi
Route Segment: 2
605 Azie Morton Rd, Austin, TX 78704, USA to Zilker Nature Preserve, 301 Nature Center Dr, Austin, TX 78746, USA
1.1 mi
Route Segment: 3
Zilker Nature Preserve, 301 Nature Center Dr, Austin, TX 78746, USA to Dallas, TX, USA
198 mi
Once you choose to optimize your route, the plugin outputs text like the above to whichever element you have given the ID of: instructions_id.
I would like to parse that text with RegEx and add information to these locations in my database such that I can put them in a repeating group in the optimized order.
I already have the RegEx to extract these locations and make edits to them in my database such that I can order them properly.
However, I have tried everything I can think of to save the optimized directions text output from the map extender plugin to my database with no luck.
I think the only way to do it is to use Javascript.
Unfortunately, I don’t know Javascript, so I could use some help.
I think someone proficient with bubble and javascript could probably get this done in <1 hour (maybe <10 mins).
I’m happy to pay a reasonable rate!