Topojson file for US Cities

Hi Team,

I’m using Choropleth Map visual for more details refer this link and I have the requirement to drill down from US state --> city. To do that, I need Topojson file for US cities. Can some one help me to provide the topojson file for US cities

below are the topojson files for state & county level for your reference
State level: https://raw.githubusercontent.com/AbdullahSallam/json/master/US_adm1.json
County level : https://gist.githubusercontent.com/hmalherbe/798d5e00cd16bbc6668d8f68003a72a5/raw/389ee98eb6deab78c265e7f4e227ab179f6cea49/US_adm2.json

@mrommala,

Looking eDNA Expert @Paul in here as our resident geospatial guru. I suspect he will have a specific recommendation for you.

  • Brian

Hi, thank you @BrianJ for looping me in.

Have you tried the census.gov website? They provide shapefiles as far as I can tell. It may become a huge dataset with all cities, so you need to test with a few shapes what it brings. Furthermore I recommend to simplify the shapes in mapshaper.org, this will reduce the number of points of the shape before converting to topojson and contribute to faster handling. You can use the Mapbox visual for visualisation of shapes and multiple layers as well.

If not available at census.org, you can try geofabrik.de, website is english, otherwise you may need GIS software to create your own shapes.

Paul

1 Like

Thank you @Paul for the quick response.
But unfortunately I couldn’t find topojson file for US cities in census.gov or geofabric.de sites.

Hi, many shapes and boundaries, like for cities and postcodes may be available at a cost only. Also file size may be a problem even if you have the cities. Did you check catalog.data.gov, I have not tested it but 500 cities available for download.
Paul

In the meantime I have been digging further, a friend of mine is a US cartographer so I asked him and I am looking at David Eldersveld who has a collection of shapefiles on github, so story continues.

1 Like

Any luck with this yet? I tried my GIS software, however cities will come up as points. Have started to learn QGIS, it allows to export shp files from an OSM map, so let’s see what it can do.

@Paul - Thanks for the follow up on this request.
I didn’t find the correct shape file for US cities yet.

FYI, I got attached topojson file for US cities. but its not configuring with choropleth custom visual. usa-cities.json (518.6 KB)

Hi, Chloropeth map shows shapes, like boundaries ie states, counties, postcodes etc, these are vectors built from multiple points. Your .json file holds a point layer, which cannot be handled by a chloropeth map. You can import this as a point layer in PBI.
Paul

Hi, Can you please tell me, what are the different Map visuals support Point layer in PBI. Due to some security reason, my origination disables ArcGIS & shape Map visuals. Can you please tell me, is their any other option to drilldown from state to city with boundaries for United States.

Is this functionally doable with any R Visual?

Hi,
A map visual will, by default, assuming you have a latitude/longitude or a city, display a point layer.
Drilling down in the map visual is possible by creating a “geohierarchy” , state, city, etc.

Other custom visuals like Mapbox and Iconmap allow to create your own layers and show these. This month a Drill Down Map visual has been introduced by Zoomchart, it is a pro version at a cost, free trial.
Unfortunately R is not my field of experience.

1 Like

Hi Paul,

Thanks a lot for all the guidance’s!

Is their any provider to share US states, cities and postcodes boundaries available for cost ?
If you know the details please let me know.

My pleasure.
I am based in The Netherlands so probably not fully up to speed with US data availability. Using a GIS I can extract the shapefiles and convert myself. Github is the place to go normally or census.
Have you tried the filled map visual? If you enter the state and city in the location well, the map will render but it is very, very slow, hence my considerations about using city boundaries or even “worse” postcodes in a map visual.