5

I want to generate geoJson data for an country and its all the states. In all the examples I have seen, all the data is for USA.

I would like to know where and how can I get geoJson data for other countries and its corresponding all the states? Is it even possible?

Shekhar
  • 11,438
  • 36
  • 130
  • 186
  • 1
    I documented my steps for generating geoJSON for country regions here http://stackoverflow.com/a/17267249/352311 – bburrier Jun 24 '13 at 02:40

2 Answers2

5

Includes all countries, in addition to the US and all US states.

https://github.com/johan/world.geo.json

Alison R.
  • 4,204
  • 28
  • 33
  • Is it easy to remove countries, so that I end up with just 1 or 2 countries? – Gerard Dec 10 '15 at 10:34
  • Countries in this data set are each contained in a different file, so it is very easy to get just the country or countries you need. – Alison R. Dec 15 '15 at 03:39
4

geojson data for individual countries and the world: http://download.geonames.org/export/dump/

albert
  • 8,112
  • 3
  • 47
  • 63
  • 1
    this is a very interesting resource... but are this files really in geojson format? I tried to convert them to topojson, but it didn't work. They seem to be rather csv than json... – otmezger Sep 17 '13 at 17:22
  • 5
    its actually "The data format is tab-delimited text in utf8 encoding"...you need to convert it – albert Sep 18 '13 at 04:29