Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 6 of 6

Country Codes

This is a discussion on Country Codes within the Development forums, part of the MapPoint Desktop Discussion category; Hi there, I have had a little look around to see whether I could locate the answer to my question. ...

  1. #1
    Christopher Taverner is offline Junior Member White Belt
    Join Date
    Mar 2013
    Location
    Dunstable UK
    Posts
    3

    Country Codes

    Hi there, I have had a little look around to see whether I could locate the answer to my question. however it does elude me.

    I notice that when using the mappoint api, countries are represented numerically. Is there a source from which I can get a list of these codes in order to write my own module to substitute the country name for the code... or else a function within Mappoint that will do it for me?

    I am using an old version of mappoint (2004) for development purposes and coding in VB6.

    Many thanks for any hints!

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Country Codes

    Sure! It's in the Help file under GeoCountry Values.

    Hope this helps!

    Anyone have any thoughts on why they removed Iceland, Georgia, Slovenia, etc? (at the bottom of the list). Not that it's any inconvenience for anything I'm doing right now, but that baffles me.


    GeoCountry values


    GeoCountry values identify a country, region, or group of countries.
    Applies to

    Methods: FindAddressResults, GetDemographics, ImportData, ImportTerritories, LinkData, LinkTerritories
    Properties: Country (DataSet), Country (StreetAddress)
    GeoCountry Value Description
    geoCountryAlbania 6 Albania
    geoCountryArgentina 11 Argentina
    geoCountryAustralia 12 Australia
    geoCountryAustria 14 Austria
    geoCountryBangladesh 23 Bangladesh
    geoCountryBelarus 29 Belarus
    geoCountryBelgium 21 Belgium
    geoCountryBosniaHerzegovina 25 Bosnia and Herzegovina
    geoCountryBolivia 26 Bolivia
    geoCountryBrazil 32 Brazil
    geoCountryBulgaria 35 Bulgaria
    geoCountryCanada 39 Canada
    geoCountryChile 46 Chile
    geoCountryChina 45 China
    geoCountryColombia 51 Colombia
    geoCountryCongo 43 Congo
    geoCountryCongoDRC 44 Congo DRC
    geoCountryCostaRica 54 Costa Rica
    geoCountryCuba 56 Cuba
    geoCountryCzechRepublic 75 Czech Republic
    geoCountryDefault LocaleID of the user's computer
    geoCountryDenmark 61 Denmark
    geoCountryEcuador 66 Ecuador
    geoCountryEgypt 67 Egypt
    geoCountryElSalvador 72 El Salvador
    geoCountryEstonia 70 Estonia
    geoCountryFinland 77 Finland
    geoCountryFrance 84 France
    geoCountryGermany 94 Germany
    geoCountryGreece 98 Greece
    geoCountryGuatemala 99 Guatemala
    geoCountryHonduras 106 Honduras
    geoCountryHungary 109 Hungary
    geoCountryIndia 113 India
    geoCountryIndonesia 111 Indonesia
    geoCountryIran 116 Iran
    geoCountryIreland 68 Ireland
    geoCountryIsrael 117 Israel
    geoCountryItaly 118 Italy
    geoCountryJapan 122 Japan
    geoCountryLatvia 140 Latvia
    geoCountryLiechtenstein 145 Liechtenstein
    geoCountryLithuania 141 Lithuania
    geoCountryLuxembourg 147 Luxembourg
    geoCountryMalaysia 167 Malaysia
    geoCountryMexico 166 Mexico
    geoCountryMontenegro 270 Montenegro
    geoCountryMultiCountry 39070 Multiple countries or countries that do not have a GeoCountry constant
    geoCountryNewZealand 183 New Zealand
    geoCountryNicaragua 182 Nicaragua
    geoCountryNorthKorea 131 North Korea
    geoCountryNorway 177 Norway
    geoCountryPakistan 190 Pakistan
    geoCountryPanama 192 Panama
    geoCountryParaguay 185 Paraguay
    geoCountryPeru 187 Peru
    geoCountryPoland 191 Poland
    geoCountryPuertoRico 202 Puerto Rico
    geoCountryPortugal 193 Portugal
    geoCountryRomania 200 Romania
    geoCountryRussia 203 Russia
    geoCountrySerbia 271 Serbia
    geoCountrySlovakia 143 Slovakia
    geoCountrySouthAfrica 209 South Africa
    geoCountrySouthKorea 134 South Korea
    geoCountrySpain 217 Spain
    geoCountrySuriname 181 Suriname
    geoCountrySweden 221 Sweden
    geoCountrySwitzerland 223 Switzerland
    geoCountryTheNetherlands 176 The Netherlands
    geoCountryTurkey 235 Turkey
    geoCountryUkraine 241 Ukraine
    geoCountryUnitedKingdom 242 United Kingdom
    geoCountryUnitedStates 244 United States
    geoCountryUruguay 246 Uruguay
    geoCountryVenezuela 249 Venezuela
    Note The following GeoCountry values have been removed from this version of MapPoint:

    • geoCountryFrenchGuiana (French Guiana)
    • geoCountryGeorgia (Georgia)
    • geoCountryIceland (Iceland)
    • geoCountrySlovenia (Slovenia)
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Christopher Taverner is offline Junior Member White Belt
    Join Date
    Mar 2013
    Location
    Dunstable UK
    Posts
    3

    Re: Country Codes

    Many thanks - I had looked through the help files but obviously missed the page! This will save me a huge amount of time

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Country Codes

    Great, glad to help!

    By the way, I was curious what a map of this might look like and here's what I came up with --



    Here's the zipped up PTM file (MapPoint 2013 North America).

    Eric
    Last edited by Eric Frost; 03-19-2013 at 05:14 PM.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  5. #5
    Christopher Taverner is offline Junior Member White Belt
    Join Date
    Mar 2013
    Location
    Dunstable UK
    Posts
    3

    Re: Country Codes

    Quote Originally Posted by Eric Frost View Post
    Great, glad to help!

    By the way, I was curious what a map of this might look like and here's what I came up with --



    Here's the zipped up PTM file (MapPoint 2013 North America).

    Eric
    That's actually really good! I am using the European maps but I imagine the routine would still work happily.

    All the best

    C

  6. #6
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Country Codes

    I just pasted the table above into Excel, did some minor cleanup and then imported using the Import Data Wizard specifying the columns as Data, Name, and County. Then since I'm using MapPoint 2013, there is the Show Name option when you right-click on the layer in the Legend to show the single line Name balloon.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. country or state?
    By Rick in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 04-21-2006, 03:59 PM
  2. Get country for lat & lon
    By zauber in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-11-2005, 09:04 PM
  3. Country Codes
    By cwrude in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-10-2004, 10:47 AM
  4. One country view only?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-18-2003, 11:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123