This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
'''Provides utility functions for encoding and decoding linestrings using the | |
Google encoded polyline algorithm. | |
Original Script at https://gist.github.com/signed0/2031157 | |
''' | |
from sys import argv | |
from ast import literal_eval | |
def encode_coords(coords): | |
'''Encodes a polyline using Google's polyline algorithm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import sys | |
from Foundation import * # pylint: disable=E0611 # | |
import objc | |
from SystemConfiguration import SCDynamicStoreCopyConsoleUser | |
def is_arm64(): |