# Limit number of points returned by direction

**URL:** <https://ask.openrouteservice.org/t/limit-number-of-points-returned-by-direction/4300>\
**Category:** SDKs\
**Created:** [October 25, 2022, 10:10pm UTC](https://ask.openrouteservice.org/t/limit-number-of-points-returned-by-direction/4300 "2022-10-25T22:10:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [October 26, 2022, 11:44am UTC](https://ask.openrouteservice.org/t/limit-number-of-points-returned-by-direction/4300/4 "2022-10-26T11:44:02Z")

</div>

Also see this thread:

> [@Filter the coordinates generated from Directions API to 100 maximum](https://ask.openrouteservice.org/t/filter-the-coordinates-generated-from-directions-api-to-100-maximum/3527/4):
>
> You could use [line simplification](https://martinfleischmann.net/line-simplification-algorithms/) on the output to produce similar lines with less points. It might not work with the matching afterwards though, if the shape will be a lot different than before. Best regards

---

_[View the full topic](https://ask.openrouteservice.org/t/limit-number-of-points-returned-by-direction/4300)._
