Rafael T

Hamburg, Germany

Age: 29

Dec
1
awarded Famous Question
Nov
26
awarded Popular Question
Nov
20
accepted getting pythons __set__ working
Nov
20
comment getting pythons __set__ working
Thx, for the hint with classattribute. I just missed that detail. if repr(t.num) will not work as expected, at least t.num + 3 will work as expected, which is what I wanted in my real use case
Nov
20
asked getting pythons __set__ working
Nov
12
awarded Guru
Nov
11
comment Overpass relation railway segments
in example relation(1304744). there is a 27 kilometer gap at way 191079938, 0.5km at 135863150 and 0.35km at 28679354... Or relation(1788865) which has 4 open ends. However I found out, that they are ordered most of the time, so just looking up their directions will be fine mostly....
Nov
11
comment Overpass relation railway segments
I don't excpect it to be correct or very precise. I just wanted to find a method to sort the way elements of a relation. If they come not sorted (which is what I expected because of the List return-type instead of a dict which is unordered by default refereing to JSON data-structures), and there are several ways which do have no matching end (or start) node, the only way I see is to try to parse the name Tags of that relation, find the matching stop and see which way is closest to that point.
Nov
7
comment Overpass relation railway segments
my last trys shows, that you are not right with finding out the first way member. I spend like 3 hours to debug my code, only to find out, that there are sometimes missing links, meaning that there is no matching start or end node for more than one way...
Nov
5
comment Overpass relation railway segments
if the ways are not ordered either, It will be very hard to iterate over them. How am I supposed to find the first way member to start iteration?
Nov
5
accepted Overpass relation railway segments
Nov
5
asked Overpass relation railway segments
Nov
5
accepted Python character handling in terminal
Nov
4
asked Python character handling in terminal
Oct
30
comment How to find tags with only certain attributes - BeautifulSoup
best answer as it uses the full power of BS
Oct
9
awarded Popular Question
Oct
8
awarded Enlightened
Oct
8
awarded Nice Answer
Oct
4
comment HttpURLConnection wire logging in Android
With Your code you'll log only the Response Code and Header. The request will be consumed and is not accessible anymore
Oct
1
awarded Notable Question
1 2 3 4 5