File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 44
55C++. Call request to another services for get location coordinates by IP-address
66
7- Example:
7+ ## Integrate to your c++ project
8+ include files:
9+
10+ src.wsjcpp/wsjcpp_core/wsjcpp_core.h
11+ src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
12+ src/wsjcpp_geoip.cpp
13+ src/wsjcpp_geoip.h
14+
15+ or use a wsjcpp: ` wsjcpp install https://github.com/wsjcpp/wsjcpp-geoip:master `
16+
17+ ## Example code usage:
18+
819```
920WSJCppGeoIPResult res = WSJCppGeoIP::requestToIpApiCom("1.1.1.1");
1021if (res.hasError()) {
Original file line number Diff line number Diff line change @@ -43,6 +43,5 @@ int main(int argc, const char* argv[]) {
4343 std::cout << " Latitude: " << res.getLatitude () << std::endl;
4444 std::cout << " Longitude: " << res.getLongitude () << std::endl;
4545 }
46- // std::cout << "" << nDistance << std::endl;
4746 return 0 ;
4847}
You can’t perform that action at this time.
0 commit comments