Enter points each X miles

Hello.
First sorry my english because i am using google translator.
I am starting to use the app and need to make a modification. I need to add points every x miles on the route.
Example:


The user adds the starting point and the destination, the application creates the route and inserts the points every X miles. For example the route is 500 miles and the system will add 10 points 1 every 50 miles.

I appreciate any help.
Thanks.