Suppose I have a gpx file which covers long distance (200km~5000km)

I'd like to check where to find food / where to sleep before I start riding.

I can load the gpx file on google map and scan areas to search for those places.  
But it will take a lot of time.  

Is there an efficient way to search for food/inn/city along a gpx path?