Adding function to parse marker data