Efficient Location-Based Service Discovery for IoT and Edge Computing in the 6G Era