onury / geolocator

A utility for getting geo-location information via HTML5 and IP look-ups, geocoding, address look-ups, distance and durations, timezone information and more...
https://onury.io/geolocator
MIT License
642 stars 107 forks source link

Locate By IP Api service shutdown #64

Closed ogadit closed 5 years ago

ogadit commented 5 years ago

Please change the api service for locatebyip as the current one throws off an error saying that it has been shutdown

ivanoats commented 5 years ago

@onury would you like a Pull Request for this?

Reference: https://github.com/nekudocom/shiny_geoip/blob/master/README.md#readme

onury commented 5 years ago

@ogadit thanks. That's already mentioned in #62.

@ivanoats I actually need help finding a new free + https geo-service to set as default.

DarthFly commented 5 years ago

Found one free https://www.geojs.io/docs/v1/endpoints/geo/ Seems to be working correctly.

{
                    provider: 'geojs.io',
                    url: 'https://get.geojs.io/v1/ip/geo.js',
                    callbackParam: 'callback',
                    schema: {
                        ip: 'ip',
                        coords: {
                            latitude: 'latitude',
                            longitude: 'longitude'
                        },
                        address: {
                            city: 'city',
                            state: 'state',
                            stateCode: '',
                            postalCode: '',
                            countryCode: 'country_code',
                            country: 'country',
                            region: 'region'
                        }
                    }
                }

Also there is another one https://geoip-db.com/ but I was unable to run it with another callback instead of default one callback(json).

onury commented 5 years ago

Thanks @DarthFly. Released v2.1.5