As far as I can see (couldn’t find any up to date source code) onionoo is written in Java. Is that an obstacle and are there any blockers why libloc cannot be used apart from that there are no bindings for Java available?
to avoid misunderstandings: I'm not an onionoo developer, I'm just an onionoo user that is affected by the reduced ASN coverage after their geoip DB switch from maxmind. Since they are really thin on resources I figured getting this fixed upstream would help them, others and me.
your question reminded me of this past discussion on this gitlab issue: https://gitlab.torproject.org/tpo/network-health/metrics/relay-search/-/issu...
https://gitlab.torproject.org/tpo/network-health/metrics/onionoo/-/commit/49...
onionoo source: https://gitlab.torproject.org/tpo/network-health/metrics/onionoo/-/tree/mast...
kind regards, nusenu