'Geolocation API with c++

Is there are any methods to use geolocation api by C++ on Ubuntu 18.04?

Now, I'm trying to get Lat & Long info by C++, trying to use Geolocation with WIFI, but it's not that easy..

Please let me know how to use Geolocation API with C++



Solution 1:[1]

Some time ago, I also searched for a geolocation API and ended up with the simple solution of using ipinfo.io with wget

wget -qO - ipinfo.io

In C++ you can use this call with popen.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 B-S-E