code example -Java -Spring Boot -MySql
Comma Seperated String(as in the image attachment) sent to getTotalDistance MySql function through iternarymapper.java
GetTotalDistance Function get Distance Between Cities and return as json.
getTotalDistance() and getDistance() are mysql functions.