I have never seen a GPS system available for when you buy your bike I'm wondering if the technologies out there for the bikes I know the technology is small and if its not available how do I get a patent
Yes, plenty of manufacturers make GPS units for bikes. Some models to look out for if you want to research their capabilities include Garmin, Polar, Powertap, Lezyne and Mio. Depending on the model, these allow for recording of routes while you ride, or pre-loading routes for guidance.
Additionally, apps are available to use a smart-phone in this way.