GeoLite2 Country List Of Codes - geoip

In the GeoLite2 Country database does anyone know if a list of the two character country/organisation codes can be found anywhere or what source its using?

The GeoLite2 and GeoIP2 databases use GeoNames as a data source. See their list of countries. Generally, the country codes follow ISO 3166-1.

Related

PowerBI replace column names with values from a table containing translations

My report has visuals as tables, that display data. These visual names or value names are displayed in english. Once the data is published and then embedded, it needs to be displayed in the according language that is selected by a user.
How to change the value names, without messing up the data?
For example, here would be a visual:
|Electricity| 1 | 5 | 6 | 10 | in english
|Electricidad| 1 | 5 | 6 | 10 | in spanish
The dataset contains multiple tables from which data is taken and then visualized, but the translated values are in one table in one column. The table has a column fieldname that is like an identifier in all of the languages available, and text value that contains all of the translations. How could I make a measure or something, to dynamically replace the names but not touch the values?
The report has a table and a pie chart and maybe something can be done with the field Value, when selecting the pie chart. Any help is welcome, thank you!
if your report is going to be embedded, you can leverage external tool like Metadata Translator to automatically translate the metadata (column names, measures, ...) to the language of your choice using the locale of the user opening the report.
You can fetch the tool from this link. The tool is available in GitHub but you need to build it on your computer to install it, I found that installing it through Power BI Business Ops is much easier.
It's fairly simple to use and you can even automate the translation part trough API as Azure Cognitive Service or Google Translate. Behind the hood it's leveraging features that have been available in SSAS for a long time. You can even see the translation using another external tool like Tabular Editor, but it's harder to manage them from there.
Last but not least, Microsoft released very recently a very good series of videos to achieve multi language report. It's not so easy to set up but I would have been quite glad to have this kind of documentation when I had to figure this all by myself few years ago...
Hope this helps.

geodata reconciliation with OpenRefine using longitude and latitude

I have a xls table containing a column with long lat information: for example "60.974387; 25.6472465" and i would like to reconcile that information in Openrefine to get the name of that place (or nearest place)
Does anyone know a reconciliation service? and the link to it?
Many thanks,
Tim
There's this (https://simplemaps.com/data/world-cities) if you want to do the match outside of Openrefine (e.g. database queries)

Geocoding for full addresses

I have more than two million records in my dataset. The addresses are in full, not parsed out into fields such as address number, street, city and state. There isn't a standardized pattern in the way these addresses are formed and since there are two million records, I can't investigate the whole dataset fully.
Neither can I change anything in the address field as I pulled the dataset from my company's database.
I want to turn addresses into longitudes and latitudes, but the procedure from SAS requires addresses being parsed into smaller fields and as I mentioned above, it's not practical for me to do so.
http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#overview-geocode.htm
My company is in Financial sector, so due to security measures, I can't install 3rd party software or applications. I need to do so in SAS Enterprise. If you have any suggestion, that'd be greatly appreciated.

Analyzing quantitative data in WEKA

Hi My dataset contains only quantitative data(numerical). It doesn't have any class attributes. The dataset contains with sales of different years. I need to analyze the data in different ways. Can I use WEKA for this analysis? I tried to use WEKA tool. But it seemed I cannot proceed with WKA unless I have class variables for the dataset. Please kindly give me a hint.

Error W/ PROC GEOCODE

Hopefully someone out there will have run into this before. I'm trying to use the street level geocoding capability of SAS' PROC GEOCODE, but I keep getting a cryptic error. I couldn't find anything on the net about it (although to be fair I only spent a half hour looking).
First, I'm using SAS Enterprise Guide (I've tried on both v4.2 and v4.3), although I still prefer to program as I find the point and click interface quite limiting. Maybe this right here is my problem?
Anyway I first get the lookup data sets from http://support.sas.com/rnd/datavisualization/mapsonline/html/geocode.html and follow the instructions in the readme. I also use the pre-written SAS program to import the CSV files. My input dataset contains just 4 variables: street address, city, state, and zip. I then run the following code:
libname josh 'C:\Users\Josh\Desktop\Geocode\SAS files';
proc geocode
method=street
data=SASUSER.Home_Policy_Address_Detail
lookupstreet=josh.USM
out=test;
run;
However I get this error:
ERROR: Variable NAMENC not found in JOSH.USM data set.
Nowhere in the readme or the import program is a variable named "NAMENC" ever mentioned. This is what has me stumped. Is it something wrong with the simple PROC GEOCODE program I wrote? Is it due to me using SAS EG (although I've yet to run into a base SAS procedure that hasn't worked on EG)? Or something else?
Any help/guidance would be much appreciated. Thanks in advance!
Check your SAS version. You can use the 'Help' menu in DMS mode or submit this statement:
%put &sysvlong;
It looks like you are using SAS 9.3 but your lookup data JOSH.USM is the lookup data formatted for SAS 9.4.
PROC GEOCODE street lookup data comes in two slightly different formats, one for SAS 9.3 and another for 9.4. When you download the nationwide lookup data from the SAS MapsOnline geocoding page, make sure to download the version appropriate for your SAS release.