Search code examples
geolocationgoogle-geolocation

How to find Geolocation from http server?


Geolocation API Removed from Unsecured Origins. Is there any other way to find geoloaction from http server? need some suggestion.


Solution

  • You can use IP geolocation service to translate IP address to city location. It has less accuracy compare to Geolocation API. However, it is less intrusive and can be used on all web browsers.

    IP Geolocation is available in database or web service format. Below is example for free service.

    (a) Database: IP2Location LITE

    (b) Web Service: IPInfoDB

    Reference: https://www.geolocation.com