Skip to content

Commit 3182b15

Browse files
committed
Updated readme
1 parent 1f5d904 commit 3182b15

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44

55
C++. 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
```
920
WSJCppGeoIPResult res = WSJCppGeoIP::requestToIpApiCom("1.1.1.1");
1021
if (res.hasError()) {

src/main.cpp

-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)