I did the same thing, when I upgraded to a new phone I mounted my old one (Moto G) on the handlebars and installed Here Maps which will work offline even without a data connection.
As an added bonus, the Moto G is water proof.
This seems like a much cheaper solution than buying a dedicated GPS. Any semi-recent (last 4 years) android phone should work fine.