added longitude correction
ran into inexplicable error when creating polyline