Skip to content

Spatial

Our spatial standards are broken in 4 levels:

  • Level 1: Macro World Regions and Countries
  • Level 2: Sub-national Units
  • Level 3: Cities
  • Level 4: Geolocation

Using the third party APIs like PositionStack to find geo-coordinates for a particular location or use libraries like geopandas or geopy to geocode or reverse geocode. Maintaining the highest level of precision depending upon data that is available. Sometimes it is precise only up to city or state, and in the worst case, it is country. If we are unable to find any coordinates: simply let the section be a NULL list.

The final resulting geocoded data must have all the fields listed below:

  • region_name
  • region_code
  • country_name
  • country_code
  • state
  • county
  • city
  • map_coordinates

Rest OPTIONAL and good to have fields are (if relevant)

  • locality
  • neighborhood
  • address