diff --git a/README.md b/README.md index 6f96f9c..250f2c5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ### Overview -The `NYRegionIdentifier` project is a Python function that helps identify an economic region based on the county name provided as input. It is particularly useful in geospatial analyses where counties are used to categorize regions within a specific area, like New York State. The function takes the name of a county and returns the corresponding economic region based on a predefined list of counties associated with each region. +The `NYRegionIdentifier` project is a Python function that helps identify an economic region based on the county or borough name provided as input. It is particularly useful in geospatial analyses where counties are used to categorize regions within a specific area, like New York State. The function takes the name of a county or borough and returns the corresponding economic region based on a predefined list of counties associated with each region. This project is designed for use with **ArcGIS Pro**, where it can be incorporated into field calculations for geographic information systems (GIS) tasks. The function uses a dictionary to map counties to their respective regions, and based on the county input, it identifies the region the county belongs to. @@ -17,7 +17,7 @@ The function `get_region_by_county(county_name)` takes a string representing the #### Returns: - A string representing the region name, such as "Western New York" or "Capital District". -- If the county does not belong to any predefined region, the function returns "County not found in any region." +- If the county does not belong to any predefined region, the function returns "Error." --- @@ -40,7 +40,7 @@ The county Monroe belongs to the Finger Lakes region. ### Regions and Counties Mapping -The following regions and their corresponding counties are predefined in the function: +The following regions and their corresponding counties and borough are predefined in the function: - **Western New York**: Niagara, Erie, Chautauqua, Cattaraugus - **Finger Lakes**: Orleans, Genesee, Wyoming, Monroe, Livingston, Wayne, Ontario, Yates, Seneca @@ -50,7 +50,7 @@ The following regions and their corresponding counties are predefined in the fun - **Mohawk Valley**: Oneida, Herkimer, Fulton, Montgomery, Otsego, Schoharie - **Capital District**: Albany, Columbia, Greene, Warren, Washington, Saratoga, Schenectady, Rensselaer - **Hudson Valley**: Sullivan, Ulster, Dutchess, Orange, Putnam, Rockland, Westchester -- **New York City**: New York, Bronx, Queens, Kings, Richmond +- **New York City**: Manhattan (New York), Brooklyn (Kings), Queens, Bronx, Staten Island (Richmond) - **Long Island**: Nassau, Suffolk ---