I would like to use a map API that allows me manipulating countries subregions like England and Scotland for instance (that are “provinces” of the United Kingdom, ISO-3166-1 code: GB).
All the APIs I’ve found so far only allow you to work on a ISO country basis (in which England and Scotland aren’t accessible).
The Google geomap API documentation (link) indicates that one can use “England” as a country name, however I’ve tested it and it doesn’t work.
Does anybody know an API I could use to achieve this?
Thanks.
You need to specify the ISO 3166-2 country subdivision code. For England this is
GB-ENGor for ScotlandGB-SCT. A complete lsit of codes can be found at http://docs.equest.com/eQuestCountryAndStateCodes.xls An example would be: