Start with actual consumption on your bike, not its best published figure. Allow for hills, headwinds and luggage, and mark the last station you can reliably use.
Check hours before leaving and decide when you will divert while there is still fuel in reserve. If a key station is closed, follow the alternate route.