File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
C++. Call request to another services for get location coordinates by IP-address
6
6
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
+
8
19
```
9
20
WSJCppGeoIPResult res = WSJCppGeoIP::requestToIpApiCom("1.1.1.1");
10
21
if (res.hasError()) {
Original file line number Diff line number Diff line change @@ -43,6 +43,5 @@ int main(int argc, const char* argv[]) {
43
43
std::cout << " Latitude: " << res.getLatitude () << std::endl;
44
44
std::cout << " Longitude: " << res.getLongitude () << std::endl;
45
45
}
46
- // std::cout << "" << nDistance << std::endl;
47
46
return 0 ;
48
47
}
You can’t perform that action at this time.
0 commit comments