All Projects → seventhmoon → ipapi-retrofit

seventhmoon / ipapi-retrofit

Licence: Apache-2.0 License
Android Library for Calling IP-API using Retrofit

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ipapi-retrofit

Countries
An example Android app using Retrofit, Realm, Parceler, Dagger and the MVVM pattern with the data binding lib.
Stars: ✭ 616 (+1210.64%)
Mutual labels:  retrofit, gson
AndroidGo
Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!
Stars: ✭ 30 (-36.17%)
Mutual labels:  volley, retrofit
Easyhttp
Android 网络请求框架,简单易用,so easy
Stars: ✭ 423 (+800%)
Mutual labels:  retrofit, gson
RxjavaSamples
This repo is a container for some samples using RXJAVA2 samples
Stars: ✭ 12 (-74.47%)
Mutual labels:  retrofit, gson
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (+68.09%)
Mutual labels:  retrofit, gson
Instagram
Instagram Project is a mini version of real Instagram app for Android 📱 built with latest Android Development Tools. Kotlin, MVVM, LiveData, GSON, Retrofit, Dagger2
Stars: ✭ 20 (-57.45%)
Mutual labels:  retrofit, gson
Easygank
💊 The project build framework based on the Rx series and MVP pattern.
Stars: ✭ 750 (+1495.74%)
Mutual labels:  retrofit, gson
OLA Play Music App
Music Streaming App
Stars: ✭ 27 (-42.55%)
Mutual labels:  volley, retrofit
SilverScreener
A feature-rich movie guide app, that lets you discover movies from TMDb.
Stars: ✭ 24 (-48.94%)
Mutual labels:  retrofit, gson
FlickOff
A lite movie guide app, with MVVM architecture, that lets you discover movies from TMDb.
Stars: ✭ 31 (-34.04%)
Mutual labels:  retrofit, gson
PlayAndroid
✌️✊👋玩安卓Mvvm组件化客户端,整合Jetpack组件DataBinding、ViewModel以及LiveData;屏幕适配✔️状态栏沉浸式✔️黑夜模式✔️,无数据、加载失败状态页;骨架屏、Koin依赖注入等
Stars: ✭ 193 (+310.64%)
Mutual labels:  retrofit, gson
JSON
Simple and easy JSON parser, JSON generator, and data holder based on JSONArray and JSONObject for android
Stars: ✭ 78 (+65.96%)
Mutual labels:  gson
sawmill
Sawmill is a JSON transformation Java library
Stars: ✭ 92 (+95.74%)
Mutual labels:  geoip
AndroidProjects
个人总结归纳Android知识点。1.Data Binding框架MVVM;2. BaseView;3.CollapseView;4.Notification;5.MultiChannelBuild;6.SwipeBack;7.CustomTabs;8.HandlerCourse;9.VolleyStudy;10.OkHttpStudy;11.PermissionManage;12.InterView;13.KotlinLearning
Stars: ✭ 32 (-31.91%)
Mutual labels:  volley
Dowy
🎬Application that displays a list of Movies and Tv Series using Modern Android Application Development tools and API's
Stars: ✭ 29 (-38.3%)
Mutual labels:  gson
DaMaiProject
大麦界面,实现多种方式网络访问、数据缓存
Stars: ✭ 24 (-48.94%)
Mutual labels:  retrofit
express-ip
An Express Middleware for getting IP information
Stars: ✭ 28 (-40.43%)
Mutual labels:  geoip
MaxMind-DB-Writer-perl
Create MaxMind DB database files
Stars: ✭ 63 (+34.04%)
Mutual labels:  geoip
ipapi
Get geoip information with an API call.
Stars: ✭ 55 (+17.02%)
Mutual labels:  geoip
geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+1014.89%)
Mutual labels:  geoip

Welcome to IpApi-retrofit

This is a wrapper of IP-API for Android platform using Retrofit. In simple words, get your location information by IP address. (for volley version, please visit https://github.com/seventhmoon/ipapi-volley)

Sample Application

Sample Application is included in app

How to install

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Step 2. Add the dependency

dependencies {
        compile 'com.github.seventhmoon:ipapi-retrofit:1.5.0'
}

How to use

  GeoIpService ipApiService = ServicesManager.getGeoIpService();
  ipApiService.getGeoIp().enqueue(new Callback<GeoIpResponseModel>() {
      @Override
      public void onResponse(Call<GeoIpResponseModel> call, retrofit2.Response<GeoIpResponseModel> response) {
          String countryName = response.body().getCountryName();
          String city = response.body().getCity();
          String country = resopnse.body().getCountry();
          double latitude = response.body().getLatitude();
          double longtidue = response.body().getLongitude();
          String region = response.body().getRegion();
          String timezone = response.body().getTimezone();
          String isp = response.body().getIsp();
      }

      @Override
      public void onFailure(Call<GeoIpResponseModel> call, Throwable t) {
          Toast.makeText(getApplicationContext(), t.toString(), Toast.LENGTH_SHORT).show();
      }
    });
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].