I am using the google maps api to return a string of waypoint Lat/Lng values.
and example of this is:
(51.4409138, -2.542236799999955),(51.44766809999999, -2.544380100000012),(51.4355129, -2.5526174999999967)
My target is to result in something like this:
array (
0 => array (0 => 51.4409138,1 => -2.542236799999955),
1 => array (0 => 51.44766809999999,1 => -2.544380100000012),
2 => array (0 => 51.4355129,1 => -2.5526174999999967)
)
What can you suggest is the best method to use?
$secondis what you need.For your interest, here is a one-liner (5.3):