GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsjcpp/wsjcpp-geoip: C++ Geolation over IP-address (Colelction of service)

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
src.wsjcpp
src.wsjcpp
 
 
src
src
 
 
unit-tests.wsjcpp
unit-tests.wsjcpp
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_simple.sh
build_simple.sh
 
 
wsjcpp.yml
wsjcpp.yml
 
 

Repository files navigation

wsjcpp-geoip

Build Status Github Stars Github Stars Github Forks Total alerts Language grade: C/C++

C++. Call request to another services for get location coordinates by IP-address

Integrate to your c++ project

include files:

src.wsjcpp/wsjcpp_core/wsjcpp_core.h
src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
src.wsjcpp/wsjcpp_core/wsjcpp_validators.h
src.wsjcpp/wsjcpp_core/wsjcpp_validators.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()) {
    std::cout << "FAILED: " << res.getErrorDescription() << std::endl;
} else {
    std::cout << "Service Name: " << res.getServiceName() << std::endl;
    std::cout << "IP Address: " << res.getIpAddress() << std::endl;
    std::cout << "Country: " << res.getCountry() << std::endl;
    std::cout << "Region Name: " << res.getRegionName() << std::endl;
    std::cout << "City: " << res.getCity() << std::endl;
    std::cout << "Latitude: " << res.getLatitude() << std::endl;
    std::cout << "Longitude: " << res.getLongitude() << std::endl;
}

Output:

Service Name: ip-api.com
IP Address: 1.1.1.1
Country: Australia
Region Name: New South Wales
City: Sydney
Latitude: -33.8688
Longitude: 151.209

About

C++ Geolation over IP-address (Colelction of service)

Topics

cppgeolocationwsjcpp-package

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.