Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-kg committed Jan 27, 2020
1 parent 1f5d904 commit 3182b15
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 3182b15

Please sign in to comment.