I have a loop that prompts the user for input and then adds a new segment to a linestring based on that input.
while (data) { point = processData(data) // r