How to determine location of device in Android using IP address

前端 未结 5 1794
忘掉有多难
忘掉有多难 2021-02-04 05:21

I am developing an Android app. I want to determine the location of the device using its IP address. Where do I start? The links on Google APIs are not conclusive enough. Thanks

5条回答
  •  面向向阳花
    2021-02-04 05:56

    I use this to get ip, country and city of device

    to test you can use RESTCLIENT , the firefox addon for making HTTP requests.

    simply copy https://addons.mozilla.org/en-us/firefox/addon/restclient/ this URL and test in RESTCLIENT or just past in browser address bar

    Hope This helps!

提交回复
热议问题