Generate JSON data file from a list of IPs
- Prepare a list of IP addresses in a file, one IP address per line.
- Run the following command:
sh IP2JSON.sh IPs.txt > points.json
- Check the file character set, for example:
file -bi points.json
If the character set of your file is not us-ascii or utf-8 you can convert it to UTF-8, for example:
iconv -f iso-8859-1 -t utf-8 points.json > utf-points.json
- Now you are ready to go. You can upload your map points on http://2geojson.com/ or a similar service.