Depending on how you use the data, it may be more convenient to have an array of coordinate pairs. (Like you already have except each pair would be stored as a two element numeric array rather than as a string.