https://github.com/rossgodwin/geo-region
Java library that converts a list of geographical regions in a text file to a helpful format such as the syntax of a data structure in the programming language of choice (i.e. java.util.Map in Java)
https://github.com/rossgodwin/geo-region
java
Last synced: 2 months ago
JSON representation
Java library that converts a list of geographical regions in a text file to a helpful format such as the syntax of a data structure in the programming language of choice (i.e. java.util.Map in Java)
- Host: GitHub
- URL: https://github.com/rossgodwin/geo-region
- Owner: rossgodwin
- Created: 2018-01-21T18:55:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T19:01:42.000Z (over 7 years ago)
- Last Synced: 2025-01-14T20:27:20.611Z (4 months ago)
- Topics: java
- Language: Java
- Homepage:
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geo-region
This is a java micro libary that can take a list of geographical regions defined in a text file and output that to any format you need. The output format is dependent upon a class that implements ```GeoRegionOutputGenerator```. I found that several times, I have a need to perform a lookup of a U.S. state/province abbreviation and get the name of the state or vice versa, where I have the name of the state but I need the abbreviation. It would be nice to quickly be able to get a data structure, with information preloaded. There is a implementation of ```GeoRegionOutputGenerator```, ```JavaAbbreviationMapOutputGeneratorImpl```, that generates a java ```Map``` where the key is a region abbrevation or name and the value is the region abbreviation. Another potential output implementation could be a JSON mapped list of the regions.
Results are sent to the ```output``` folder and the input text files are located in ```src/main/resources```. Currently, all U.S. states and territories are included, but feel free to add your countries provinces.