You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use GeoNames' country info API combined with a CRON job to enrich database country data, no matter the source.
Their license allows storage of such data, and the API simply returns the country code.
Use GeoNames' country info API combined with a CRON job to enrich database country data, no matter the source.
Their license allows storage of such data, and the API simply returns the country code.
API: https://www.geonames.org/export/web-services.html#countryInfo
Example URL: http://api.geonames.org/countryCode?lat=35&lng=139&username=demo
Result is just the string, so a simple
file_get_contents
could be employed: https://www.php.net/manual/en/function.file-get-contentsConsiderations:
sources.json
, separate from the usual data source information.The text was updated successfully, but these errors were encountered: