Input:
[["12.98063860826645", "77.62611150741577"],["12.983356808030623", "77.63211965560913"],["12.978589484177581", "77.63636827468872"], ["12.974052077876886", "77.63372898101807"], ["12.976979446258483", "77.63036012649536"]]
I need to make url like https://maps.googleapis.com/maps/api/directions/json?origin=12.98063860826645,77.62611150741577&destination=12.976979446258483,77.63036012649536&waypoints=optimize:true|12.98063860826645,77.62611150741577|12.976979446258483,77.63036012649536|12.983356808030623,77.63211965560913|12.978589484177581,77.63636827468872|12.974052077876886,77.63372898101807&key=AIzaSyArwHMXciCse-LqdW6xyT0FOlBaLnXOhhE
how can i do?