diff --git a/README.md b/README.md index bcf4552..a90b83a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,18 @@ C++. Call request to another services for get location coordinates by IP-address -Example: +## Integrate to your c++ project +include files: + + src.wsjcpp/wsjcpp_core/wsjcpp_core.h + src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp + src/wsjcpp_geoip.cpp + src/wsjcpp_geoip.h + +or use a wsjcpp: `wsjcpp install https://github.com/wsjcpp/wsjcpp-geoip:master` + +## Example code usage: + ``` WSJCppGeoIPResult res = WSJCppGeoIP::requestToIpApiCom("1.1.1.1"); if (res.hasError()) { diff --git a/src/main.cpp b/src/main.cpp index cc9671b..f25043b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,6 +43,5 @@ int main(int argc, const char* argv[]) { std::cout << "Latitude: " << res.getLatitude() << std::endl; std::cout << "Longitude: " << res.getLongitude() << std::endl; } - // std::cout << "" << nDistance << std::endl; return 0; } \ No newline at end of file