Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Last active August 14, 2023 13:14
Show Gist options
  • Save leighghunt/7748e5d9a1ced13a57e2c81a1cd02deb to your computer and use it in GitHub Desktop.
Save leighghunt/7748e5d9a1ced13a57e2c81a1cd02deb to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leighghunt
Copy link
Author

Source: https://vote.nz/assets/maps/both/1.json?modified=20201007154708

Run through following regular expression:

"coordinates": [\n\s+"(\d+.\d+)",\n\s+"(-\d+.\d+)"
"coordinates": [\n\t $1, \n\t $2

/"coordinates": [\n\s+"(\d+.\d+)",\n\s+"(-\d+.\d+)"/"coordinates": [\n\t $1, \n\t $2/g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment