In my app, yes, it's a binary flag. But in the underlying data you can get detailed elevation data for every section of road worldwide that is readily usable in open source routing engines. GraphHopper supports STRM and CGIAR (two different data elevation data sources, available globally and free to use).