osm2gtfs icon indicating copy to clipboard operation
osm2gtfs copied to clipboard

Constant for OpenStreetMap URL

Open pantierra opened this issue 6 years ago • 2 comments

Currently we are using hardcoded urls in every status/warning/error message to OpenStreetMap https://osm.org/. @ialokim suggests in https://github.com/grote/osm2gtfs/pull/99#discussion_r157001537:

we should use an static variable to not hardcode the same url over and over again

pantierra avatar Dec 15 '17 11:12 pantierra

Using a static variable or a global constant and how to handle those concepts in Python is not completely clear to me. A quick research got me to the point, that we probably will need some kind of const class, which could bring a lot of good opportunities.

pantierra avatar Dec 15 '17 11:12 pantierra

@grote do you think a "const class" is the right way to go?

pantierra avatar Apr 04 '18 04:04 pantierra