Improved code quality for query full geometry from Nominatm; added unit tests.