check that the lat or lng character is valid
parse standard and advanced lines