Open nerg4l opened 5 years ago
Would you please elaborate a bit more? How could IP to Earth benefit this package?
We could add a driver to stevebauman's location package.
The short description of this add-on for Heroku states the following:
Find the Country and City of origin for an IP Address
This could be a useful feature for developers who already integrated their services to Heroku.
Do you mean supporting geo-constraints with not only countries but also cities and regions? (e.g. ->allowFrom('Virginia Beach, VA, US')
)
Under the hood this package is using stevebauman/location which has 5 drivers (IpApi, IpApiPro, IpInfo, GeoPlugin, MaxMind). The proposal is to add an other driver which is using a Heroku add-on called IP to Earth.
When using this add-on you send a request to https://iptoearth.expeditedaddons.com/?api_key={{API_KEY}}&ip={{IP}}
and receive a response. The respond contains country_code
which can be used for the filter.
Add support for IP to Earth Heroku add-on.
Heroku is getting more and more popular because of the cheap price and simple deployment. It would be beneficial to support one of their add-on.