pyrosm
pyrosm copied to clipboard
ENH: Please consider adding some type of regular expression-based filtering
Hi there,
This is an awesome project, thank you for putting this incredible tool together!
I'm currently dealing with trying to get all roadway links that belong to a specific highway in Texas (specifically, the I-20 highway). The problem is that this highway is really long and is coded a bunch of different ways. Some places, it has 'ref'=['I 20']
, others it has 'ref':['I 20;US 259']
, and others it has 'tiger:name_base':['I-20']
. There might be others, but it's hard to manually inspect all the names across 600ish miles of highway.
Anyways, my main point is: it would be great if there were a way to do regex
-based filtering on the text-based columns. This might help people fish out these more complicated sets of geographic features.
Thanks again for putting together such a solid tool!!!!
Hi @phildias! And thanks for bringing this up! Someone has asked about this before as well but then did not understand what the use case would be. But now your example shows that this kind of feature would indeed be quite useful, so I will look into it whether it would be feasible to add functionality that would allow regular expressions. Not promising anything yet, but I'll see what can be done. 🙂