# `GSPath nearestNodeWithPathTime:`

*Instance Method*

Returns the on-curve node nearest a path time.

## Declaration

```swift
func nearestNode(atPathTime pathTime: CGFloat) -> GSNode?
```

```objc
- (GSNode *) nearestNodeWithPathTime:(CGFloat) pathTime;
```

```python
nearestNodeWithPathTime_(pathTime: float) -> GSNode
```

## See Also

### Path Time

- [`GSPath pointAtPathTime:`](/Core/GlyphsCore/GSPath/pointAtPathTime:) — The point at a path time.
- [`GSPath nearestPointOnPath:pathTime:`](/Core/GlyphsCore/GSPath/nearestPointOnPath:pathTime:) — Finds the point on the path nearest a point.

