text stringlengths 8 6.05M |
|---|
from suds.client import Client
from suds import WebFault
from model.project import Project
from test_adds import adjustement
class SoapHelper:
def __init__(self, app):
self.app = app
def can_login(self, username, password):
client = Client('http://localhost/mantisbt-1.2.19/api/soap/mantisconnect.php?wsdl')
try:
client.service.mc_login(username, password)
return True
except WebFault:
return False
def get_project_list(self, username, password):
client = Client('http://localhost/mantisbt-1.2.19/api/soap/mantisconnect.php?wsdl')
try:
projects = client.service.mc_projects_get_user_accessible(username, password)
# print(projects)
list=[]
for project in projects:
name = project['name']
status = project['status']['id']
# if project['inherit_global'] == True:
# inherit_categories = 1
# elif project['inherit_global'] == False:
# inherit_categories = 0
view_status = project['view_state']['id']
if project['description'] == None:
description = ""
else:
description = str(project['description'])
# description = str(project['description'])
list.append(Project(name=name, status=status, inherit_categories=1, view_status=view_status, description=adjustement.delete_break_line_soap(description)))
return list
except WebFault:
return False |
from collections import OrderedDict
from typing import Callable, Dict, List, Optional, Tuple
import torch.nn.functional as F
from torch import nn, Tensor
from ..ops.misc import Conv2dNormActivation
from ..utils import _log_api_usage_once
class ExtraFPNBlock(nn.Module):
"""
Base class for the extra block in the FPN.
Args:
results (List[Tensor]): the result of the FPN
x (List[Tensor]): the original feature maps
names (List[str]): the names for each one of the
original feature maps
Returns:
results (List[Tensor]): the extended set of results
of the FPN
names (List[str]): the extended set of names for the results
"""
def forward(
self,
results: List[Tensor],
x: List[Tensor],
names: List[str],
) -> Tuple[List[Tensor], List[str]]:
pass
class FeaturePyramidNetwork(nn.Module):
"""
Module that adds a FPN from on top of a set of feature maps. This is based on
`"Feature Pyramid Network for Object Detection" <https://arxiv.org/abs/1612.03144>`_.
The feature maps are currently supposed to be in increasing depth
order.
The input to the model is expected to be an OrderedDict[Tensor], containing
the feature maps on top of which the FPN will be added.
Args:
in_channels_list (list[int]): number of channels for each feature map that
is passed to the module
out_channels (int): number of channels of the FPN representation
extra_blocks (ExtraFPNBlock or None): if provided, extra operations will
be performed. It is expected to take the fpn features, the original
features and the names of the original features as input, and returns
a new list of feature maps and their corresponding names
norm_layer (callable, optional): Module specifying the normalization layer to use. Default: None
Examples::
>>> m = torchvision.ops.FeaturePyramidNetwork([10, 20, 30], 5)
>>> # get some dummy data
>>> x = OrderedDict()
>>> x['feat0'] = torch.rand(1, 10, 64, 64)
>>> x['feat2'] = torch.rand(1, 20, 16, 16)
>>> x['feat3'] = torch.rand(1, 30, 8, 8)
>>> # compute the FPN on top of x
>>> output = m(x)
>>> print([(k, v.shape) for k, v in output.items()])
>>> # returns
>>> [('feat0', torch.Size([1, 5, 64, 64])),
>>> ('feat2', torch.Size([1, 5, 16, 16])),
>>> ('feat3', torch.Size([1, 5, 8, 8]))]
"""
_version = 2
def __init__(
self,
in_channels_list: List[int],
out_channels: int,
extra_blocks: Optional[ExtraFPNBlock] = None,
norm_layer: Optional[Callable[..., nn.Module]] = None,
):
super().__init__()
_log_api_usage_once(self)
self.inner_blocks = nn.ModuleList()
self.layer_blocks = nn.ModuleList()
for in_channels in in_channels_list:
if in_channels == 0:
raise ValueError("in_channels=0 is currently not supported")
inner_block_module = Conv2dNormActivation(
in_channels, out_channels, kernel_size=1, padding=0, norm_layer=norm_layer, activation_layer=None
)
layer_block_module = Conv2dNormActivation(
out_channels, out_channels, kernel_size=3, norm_layer=norm_layer, activation_layer=None
)
self.inner_blocks.append(inner_block_module)
self.layer_blocks.append(layer_block_module)
# initialize parameters now to avoid modifying the initialization of top_blocks
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.kaiming_uniform_(m.weight, a=1)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
if extra_blocks is not None:
if not isinstance(extra_blocks, ExtraFPNBlock):
raise TypeError(f"extra_blocks should be of type ExtraFPNBlock not {type(extra_blocks)}")
self.extra_blocks = extra_blocks
def _load_from_state_dict(
self,
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
):
version = local_metadata.get("version", None)
if version is None or version < 2:
num_blocks = len(self.inner_blocks)
for block in ["inner_blocks", "layer_blocks"]:
for i in range(num_blocks):
for type in ["weight", "bias"]:
old_key = f"{prefix}{block}.{i}.{type}"
new_key = f"{prefix}{block}.{i}.0.{type}"
if old_key in state_dict:
state_dict[new_key] = state_dict.pop(old_key)
super()._load_from_state_dict(
state_dict,
prefix,
local_metadata,
strict,
missing_keys,
unexpected_keys,
error_msgs,
)
def get_result_from_inner_blocks(self, x: Tensor, idx: int) -> Tensor:
"""
This is equivalent to self.inner_blocks[idx](x),
but torchscript doesn't support this yet
"""
num_blocks = len(self.inner_blocks)
if idx < 0:
idx += num_blocks
out = x
for i, module in enumerate(self.inner_blocks):
if i == idx:
out = module(x)
return out
def get_result_from_layer_blocks(self, x: Tensor, idx: int) -> Tensor:
"""
This is equivalent to self.layer_blocks[idx](x),
but torchscript doesn't support this yet
"""
num_blocks = len(self.layer_blocks)
if idx < 0:
idx += num_blocks
out = x
for i, module in enumerate(self.layer_blocks):
if i == idx:
out = module(x)
return out
def forward(self, x: Dict[str, Tensor]) -> Dict[str, Tensor]:
"""
Computes the FPN for a set of feature maps.
Args:
x (OrderedDict[Tensor]): feature maps for each feature level.
Returns:
results (OrderedDict[Tensor]): feature maps after FPN layers.
They are ordered from the highest resolution first.
"""
# unpack OrderedDict into two lists for easier handling
names = list(x.keys())
x = list(x.values())
last_inner = self.get_result_from_inner_blocks(x[-1], -1)
results = []
results.append(self.get_result_from_layer_blocks(last_inner, -1))
for idx in range(len(x) - 2, -1, -1):
inner_lateral = self.get_result_from_inner_blocks(x[idx], idx)
feat_shape = inner_lateral.shape[-2:]
inner_top_down = F.interpolate(last_inner, size=feat_shape, mode="nearest")
last_inner = inner_lateral + inner_top_down
results.insert(0, self.get_result_from_layer_blocks(last_inner, idx))
if self.extra_blocks is not None:
results, names = self.extra_blocks(results, x, names)
# make it back an OrderedDict
out = OrderedDict([(k, v) for k, v in zip(names, results)])
return out
class LastLevelMaxPool(ExtraFPNBlock):
"""
Applies a max_pool2d (not actual max_pool2d, we just subsample) on top of the last feature map
"""
def forward(
self,
x: List[Tensor],
y: List[Tensor],
names: List[str],
) -> Tuple[List[Tensor], List[str]]:
names.append("pool")
# Use max pooling to simulate stride 2 subsampling
x.append(F.max_pool2d(x[-1], kernel_size=1, stride=2, padding=0))
return x, names
class LastLevelP6P7(ExtraFPNBlock):
"""
This module is used in RetinaNet to generate extra layers, P6 and P7.
"""
def __init__(self, in_channels: int, out_channels: int):
super().__init__()
self.p6 = nn.Conv2d(in_channels, out_channels, 3, 2, 1)
self.p7 = nn.Conv2d(out_channels, out_channels, 3, 2, 1)
for module in [self.p6, self.p7]:
nn.init.kaiming_uniform_(module.weight, a=1)
nn.init.constant_(module.bias, 0)
self.use_P5 = in_channels == out_channels
def forward(
self,
p: List[Tensor],
c: List[Tensor],
names: List[str],
) -> Tuple[List[Tensor], List[str]]:
p5, c5 = p[-1], c[-1]
x = p5 if self.use_P5 else c5
p6 = self.p6(x)
p7 = self.p7(F.relu(p6))
p.extend([p6, p7])
names.extend(["p6", "p7"])
return p, names
|
#!/usr/bin/env python3
#############################################################################
#
# ja3 window analytic: Looks for unrecognised_stream events, and if there is a
# hello handshake in the payload then try to extract ja3 signature
#
# Summary information includes: src, dest, device and ja3 md5 digest
#
# This window analytic works on small windows with large amounts of data
# by spraying the data across multiple instances of this analytic.
# The idea is that the analytic running downstream can combine these windows
# into a single summary.
#
#############################################################################
import PyAnalyticsCommon as analytics
import sys
import datetime
import time
import pickle
import json
import threading
import re
import hashlib
import os
import queue
import uuid
import argparse
import dpkt
import socket
import struct
from hashlib import md5
import base64
import codecs
#############################################################################
# Setup AMQP etc.
#############################################################################
sys.stdout.write("Create AMQP connections...\n")
sys.stdout.flush()
broker=os.getenv("AMQP_BROKER", "amqp")
in_ex=os.getenv("AMQP_INPUT_EXCHANGE", "trust_event")
in_q=os.getenv("AMQP_INPUT_QUEUE", "worker.ja3-window.in")
out_ex=os.getenv("AMQP_OUTPUT_EXCHANGE", "default")
#out_q=os.getenv("AMQP_OUTPUT_QUEUE", "worker.ja3-window.out")
window_key=os.getenv("AMQP_WINDOW_ROUTING_KEY", "ja3-window.key")
analytics.setup('ja3-window')
con = analytics.Subscriber(broker=broker, queue=in_q, routing_key="",
exchange=in_ex, exchange_type="fanout")
window_pub = analytics.Publisher(broker=broker, routing_key=window_key,
exchange=out_ex)
# Time period on which to emit summaries.
window_time=2
# Am I still running?
running=True
sys.stdout.write("Configured.\n")
sys.stdout.flush()
#############################################################################
# Initialise state
#############################################################################
#
# ja3 information state. This is a map:
# - key: (device, ja3) tuple.
# - value: map:
# - key: "count"
# value: Count of ja3 invocations.
# - key: "times"
# value: A set of times, seconds since 1970.
#
ja3_info={}
# Time logged at start of this window period
period_start=int(time.time())
# Concurrency lock
lock=threading.Lock()
#############################################################################
# Thread, emits the window state periodically, and resets it
#############################################################################
count=0
class Outputter(threading.Thread):
# Constructor: Call thread initialisation
def __init__(self):
threading.Thread.__init__(self)
pass
# Thread body
def run(self):
global ja3_info, period_start, window_pub, count
while running:
# Wait over window time
time.sleep(window_time)
sys.stdout.write("Seen %d messages.\n" % count)
sys.stdout.flush()
if len(ja3_info):
# Stop the other thread from modifying state
lock.acquire()
try:
# Bundle the window start time in with the object.
output = (period_start, ja3_info)
while running:
try:
window_pub.publish(pickle.dumps(output))
break
except Exception as e:
sys.stderr.write("Exception: %s\n" % e)
sys.stderr.flush()
# Re-connect
window_pub.connect()
sys.stderr.write("Publish failed, retrying...\n")
sys.stderr.flush()
time.sleep(5)
# Reset domain state
ja3_info={}
period_start = int(time.time())
except Exception as e:
sys.stderr.write("Exception: %s\n" % e)
sys.stderr.flush()
# On exception, reset the state. Can't meaningfully recover.
ja3_info={}
period_start = int(time.time())
# Release lock
lock.release()
#############################################################################
# ja3 functions to generate ja3digest from TLS handshake message
#############################################################################
def update_state(obj):
# Ignore stuff which isn't unrecognised_stream.
if obj["action"] != "unrecognised_stream": return
ustream = obj["unrecognised_stream"]
if 'payload' not in ustream: return
# Get time in event.
evt = datetime.datetime.strptime(obj["time"], "%Y-%m-%dT%H:%M:%S.%fZ")
evttime = evt
# Convert to UNIX time
evt = time.mktime(evt.timetuple())
# Going to modify state, acquire the state lock.
lock.acquire()
try:
result = getja3(obj)
#sys.stdout.write(str(result))
if(len(result)>1):
if(result[0].startswith('ja3:')):
ja3out = result[1]
# Construct an index of: device, ja3digest.
# This is effectively used to group the data.
ix = (obj["device"], ja3out)
# Initialise the state for this key if it does not exist.
if ix not in ja3_info:
ja3_info[ix] = {
"times": set(),
"count": 0,
}
ja3 = ja3_info[ix]
# Update ja3 type counts.
# Increment time distribution. An array holds a count of
# ja3digests, one per second of time since the window
# start.
ja3["times"].add(evt)
ja3["count"] += 1
except Exception as e:
sys.stderr.write("Exception: %s\n" % e)
sys.stderr.flush()
# Release the lions! I mean lock.
lock.release()
def ntoh(buf):
"""Convert to network order.
:param buf: Bytes to convert
:type buf: bytearray
:returns: int
"""
if len(buf) == 1:
return buf[0]
elif len(buf) == 2:
return struct.unpack('!H', buf)[0]
elif len(buf) == 4:
return struct.unpack('!I', buf)[0]
else:
raise ValueError('Invalid input buffer size for NTOH')
def process_extensions(client_handshake):
"""Process any extra extensions and convert to a JA3 segment.
:param client_handshake: Handshake data from the packet
:type client_handshake: dpkt.ssl.TLSClientHello
:returns: list
"""
if not hasattr(client_handshake, "extensions"):
# Needed to preserve commas on the join
return ["", "", ""]
exts = list()
elliptic_curve = ""
elliptic_curve_point_format = ""
for ext_val, ext_data in client_handshake.extensions:
if not GREASE_TABLE.get(ext_val):
exts.append(ext_val)
if ext_val == 0x0a:
a, b = parse_variable_array(ext_data, 2)
# Elliptic curve points (16 bit values)
elliptic_curve = convert_to_ja3_segment(a, 2)
elif ext_val == 0x0b:
a, b = parse_variable_array(ext_data, 1)
# Elliptic curve point formats (8 bit values)
elliptic_curve_point_format = convert_to_ja3_segment(a, 1)
else:
continue
results = list()
results.append("-".join([str(x) for x in exts]))
results.append(elliptic_curve)
results.append(elliptic_curve_point_format)
return results
def convert_to_ja3_segment(data, element_width):
"""Convert a packed array of elements to a JA3 segment.
:param data: Current PCAP buffer item
:type: str
:param element_width: Byte count to process at a time
:type element_width: int
:returns: str
"""
int_vals = list()
data = bytearray(data)
if len(data) % element_width:
message = '{count} is not a multiple of {width}'
message = message.format(count=len(data), width=element_width)
raise ValueError(message)
for i in range(0, len(data), element_width):
element = ntoh(data[i: i + element_width])
if element not in GREASE_TABLE:
int_vals.append(element)
return "-".join(str(x) for x in int_vals)
def parse_variable_array(buf, byte_len):
"""Unpack data from buffer of specific length.
:param buf: Buffer to operate on
:type buf: bytes
:param byte_len: Length to process
:type byte_len: int
:returns: bytes, int
"""
_SIZE_FORMATS = ['!B', '!H', '!I', '!I']
assert byte_len <= 4
size_format = _SIZE_FORMATS[byte_len - 1]
padding = b'\x00' if byte_len == 3 else b''
size = struct.unpack(size_format, padding + buf[:byte_len])[0]
data = buf[byte_len:byte_len + size]
return data, size + byte_len
GREASE_TABLE = {0x0a0a: True, 0x1a1a: True, 0x2a2a: True, 0x3a3a: True,
0x4a4a: True, 0x5a5a: True, 0x6a6a: True, 0x7a7a: True,
0x8a8a: True, 0x9a9a: True, 0xaaaa: True, 0xbaba: True,
0xcaca: True, 0xdada: True, 0xeaea: True, 0xfafa: True}
# GREASE_TABLE Ref: https://tools.ietf.org/html/draft-davidben-tls-grease-00
SSL_PORT = 443
TLS_HANDSHAKE = 22
def getja3 (event):
ustream = event["unrecognised_stream"]
payload = ustream['payload']
if payload == None:
return [str('NoJA3:'),str('NoJA3:')]
src = 'nosrc'
dest = 'nodest'
device = 'nodevice'
if 'src' in event:
srclist = event["src"]
if len(srclist)>2:
del(srclist[2])
src = str(srclist).replace('\'','"')
if 'dest' in event:
destlist = event["dest"]
if len(destlist)>2:
del(destlist[2])
dest = str(destlist).replace('\'','"')
if 'device' in event:
device = event["device"]
b64data = base64.b64decode(payload)
tls_handshake = bytearray(b64data)
if tls_handshake[0] != TLS_HANDSHAKE:
return [str('NoJA3:'),str(tls_handshake[0])]
records = list()
try:
records, bytes_used = dpkt.ssl.tls_multi_factory(b64data)
except dpkt.ssl.SSL3Exception:
return ['NoJA3:','dpkt.ssl.SSL3Exception']
except dpkt.dpkt.NeedData:
return ['NoJA3:','dpkt.dpkt.NeedData']
except Exception as e:
return ['NoJA3:',e]
#print("len(records):"+str(len(records)))
if len(records) <= 0:
return ['NoJA3:','NoRecords']
#print("len(records):"+str(len(records)))
for record in records:
if record.type != TLS_HANDSHAKE:
continue
if len(record.data) == 0:
continue
try:
client_hello = bytearray(record.data)
except client_hello:
continue
if client_hello[0] != 1:
#We only want client HELLO
continue
try:
handshake = dpkt.ssl.TLSHandshake(record.data)
except dpkt.dpkt.NeedData:
#Looking for a handshake here
continue
if not isinstance(handshake.data, dpkt.ssl.TLSClientHello):
#Still not the HELLO
continue
client_handshake = handshake.data
buf, ptr = parse_variable_array(client_handshake.data, 1)
buf, ptr = parse_variable_array(client_handshake.data[ptr:], 2)
ja3 = [str(client_handshake.version)]
# Cipher Suites (16 bit values)
ja3.append(convert_to_ja3_segment(buf, 2))
ja3 += process_extensions(client_handshake)
ja3 = ",".join(ja3)
ja3digest = md5(ja3.encode()).hexdigest()
#record = '{"src":' + src + ',"dest":' + dest +',"device":"' + device + '","ja3digest":"' + ja3digest + '"}'
record = '{"src":' + src + ',"ja3digest":"' + ja3digest + '"}'
return ['ja3:', record]
# Handler, called for each incoming message.
def callback(body):
global count
count = count + 1
try:
# Decode JSON body to event.
obj = json.loads(body)
# Update ja3 state
update_state(obj)
except Exception as e:
sys.stderr.write("Exception: %s\n" % e)
sys.stderr.flush()
# Start up the output thread.
Outputter().start()
sys.stdout.write("Initialised, start consuming...\n")
sys.stdout.flush()
con.consume(callback) |
# -*- coding: utf-8 -*-
"""Stub to allow old tools to work."""
from setuptools import setup
setup()
|
import os
import csv
import subprocess
USERNAME = os.environ['USERNAME']
PASSWORD = os.environ['PASSWORD']
WORKDIR = os.getcwd()
repo_info_csv = 'repo_info.csv'
def read_csv(repo_info_csv):
repo_info_list = list()
with open(repo_info_csv) as fh:
rd = csv.DictReader(fh, delimiter=',')
for row in rd:
repo_info_list.append(dict(row))
return repo_info_list
def sync_repo(source_repo, target_repo, repo_dir=None):
print('Sync {} to {}...'.format(source_repo, target_repo))
repo_dir = repo_dir if repo_dir else source_repo.split('/')[-1]
args = {
'source_repo': source_repo,
'target_repo': target_repo,
'repo_dir': repo_dir,
'USERNAME': USERNAME,
'PASSWORD': PASSWORD,
}
command = 'git clone --bare {source_repo} {repo_dir} && cd {repo_dir} && git push --mirror https://{USERNAME}:{PASSWORD}@{target_repo} && cd ..'.format(**args)
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
out, err = process.communicate()
process.wait()
print(out)
print('Return code: {}'.format(process.returncode))
if __name__ == '__main__':
repo_info_list = read_csv(repo_info_csv)
for repo_info in repo_info_list:
sync_repo(**repo_info)
|
import numpy as np
from numpy.linalg import inv
import quaternion
import math
from data.sample import Sample
def truncation_normalization_transform(s: Sample) -> Sample:
truncation = 3 * s.size # 3
s.tdf = np.abs(s.tdf) # Omit sign
s.tdf = np.clip(s.tdf, 0, truncation) # Truncate
s.tdf = s.tdf / truncation # Normalize [0-1]
s.tdf = 1 - s.tdf # flip [1-0]
return s
def to_flipped_occupancy_grid(s: Sample) -> Sample:
s.tdf = np.abs(s.tdf) > s.size # Omit sign
s.tdf = s.tdf.astype(np.float32)
s.tdf = s.tdf[:, :s.dimx, :s.dimy, :s.dimz]
return s
def to_occupancy_grid(s: Sample) -> Sample:
s.tdf /= s.size
s.tdf = np.less_equal(np.abs(s.tdf), 1).astype(np.float32) # 1 only when abs(tdf) <= voxel_size
s.tdf = s.tdf[:, :s.dimx, :s.dimy, :s.dimz]
return s
def get_rot_cad2scan(quat_cad2world):
quat_wc = np.quaternion(quat_cad2world[0], quat_cad2world[1], quat_cad2world[2], quat_cad2world[3])
Rwc = quaternion.as_rotation_matrix(quat_wc)
Rsw = np.zeros((3,3))
Rsw[0,0]=1
Rsw[1,2]=-1
Rsw[2,1]=1
Rzx = np.zeros((3,3))
Rzx[0,2]=1
Rzx[1,1]=1
Rzx[2,0]=1
Rsc=Rsw @ Rwc @ inv(Rsw)
return Rsc
# used for cad model to scan registration
def get_tran_init_guess(scan_grid2world, predicted_rotation_deg, flip_on: bool = True, direct_scale: bool = False,
voxel_size = 32, cad_scale_multiplier: np.array = np.ones(3)):
if direct_scale: # directly use the predicted scale of the neural network. In such case, cad_scale_multiplier should be the predicted scale itself
s_init = cad_scale_multiplier
else: # use voxel resolution and bounding box length to estimate the scale. In such case, cad_scale_multiplier should be bounding box length ratio (bbx_l_scan / bbx_l_cad)
scan_voxel_res = scan_grid2world[0,0]
#print("scan_voxel_res:", scan_voxel_res)
cad_voxel_res = 1.0 / voxel_size
# s_init = scan_voxel_res / cad_voxel_res * cad_scale_multiplier
s_x_init = scan_voxel_res / cad_voxel_res * cad_scale_multiplier[0]
s_y_init = scan_voxel_res / cad_voxel_res * cad_scale_multiplier[1]
s_z_init = scan_voxel_res / cad_voxel_res * cad_scale_multiplier[2]
s_init = np.asarray([s_x_init, s_y_init, s_z_init])
R_init = get_rot_mat_around_z((180.0 -predicted_rotation_deg) / 180.0 * math.pi) # unit: rad
t_init = scan_grid2world[3, 0:3] + scan_voxel_res * voxel_size / 2
T_init = make_T_from_trs(t_init, R_init, s_init)
T_flip = np.zeros((4,4))
T_flip[0,0]=1
T_flip[1,2]=-1
T_flip[2,1]=1
T_flip[3,3]=1
if flip_on:
T_init = T_init.dot(T_flip)
return T_init
def make_T_from_trs(t, R, s):
t_mat = np.eye(4)
t_mat[0:3, 3] = t
R_mat = np.eye(4)
R_mat[0:3, 0:3] = R
s_mat = np.eye(4)
s_mat[0:3, 0:3] = np.diag(s)
# first scale, then rotation, finally translation
Tran = t_mat.dot(R_mat).dot(s_mat)
return Tran
def decompose_mat4(Tran):
R = Tran[0:3, 0:3]
sx = np.linalg.norm(R[0:3, 0])
sy = np.linalg.norm(R[0:3, 1])
sz = np.linalg.norm(R[0:3, 2])
s = np.array([sx, sy, sz])
R[:, 0] /= sx
R[:, 1] /= sy
R[:, 2] /= sz
t = Tran[0:3, 3]
return t, R, s
def get_rot_mat_around_z(angle): # unit: rad
R_mat = np.eye(3)
R_mat[0,0] = np.cos(angle)
R_mat[0,1] = -np.sin(angle)
R_mat[1,0] = np.sin(angle)
R_mat[1,1] = np.cos(angle)
return R_mat |
def ReduceFraction(num, denom):
from fractions import gcd
divisor = gcd (num, denom)
num = num / divisor
denom = denom / divisor
print ( str(num) + "/" + str (denom) )
|
"""
Created by Alex Wang on 2018-01-09
"""
import numpy as np
from sklearn import metrics
def cal_precision_recall(predict, tags):
"""
计算roc
:param predict: (batch_size, 2)
:param tags:(batch_size, 1) 0/1
:return:
print('roc thresholds:{}'.format(','.join(['{:.4f}'.format(item) for item in roc_thresholds])))
print(' tpr:{}'.format(','.join(['{:.4f}'.format(item) for item in tpr])))
print(' fpr:{}'.format(','.join(['{:.4f}'.format(item) for item in fpr])))
print('')
print('pr thresholds:{}'.format(','.join(['{:.4f}'.format(item) for item in pr_thresholds])))
print(' prec:{}'.format(','.join(['{:.4f}'.format(item) for item in prec_list])))
print(' recall:{}'.format(','.join(['{:.4f}'.format(item) for item in recall_list])))
"""
elapsion = 1e-8
TP, FP, FN = 0, 0, 0
predict_idx = np.argmax(predict, axis=1)
for i in range(len(tags)):
if tags[i] == 1 and predict_idx[i] == 1:
TP += 1
if tags[i] == 0 and predict_idx[i] == 1:
FP += 1
if tags[i] == 1 and predict_idx[i] == 0:
FN += 1
precision = TP / (TP + FP + elapsion)
recall = TP / (TP + FN + elapsion)
# calculate auc
pred = predict[:, 1]
fpr, tpr, roc_thresholds = metrics.roc_curve(tags, pred, pos_label=1)
auc = metrics.auc(fpr, tpr)
prec_list, recall_list, pr_thresholds = metrics.precision_recall_curve(tags, pred, pos_label=1)
return precision, recall, tags, predict_idx, auc, fpr, tpr, roc_thresholds, prec_list, recall_list, pr_thresholds
|
import logging
# log=logging.getLogger('名字') # 跟配置文件中loggers日志对象下的名字对应
log=logging.getLogger('django')
|
def myfunction(old):
if old > 18:
result: str = "Maior de idade"
elif old == 18:
result: str = "completou 18 anos"
else:
result: str = "Menor de idade"
return result
pass
nome = input("What's your name?")
print(nome)
text = 2 + 2
print(text)
age = int(input("Idade"))
resultAge = myfunction(age)
print(resultAge)
|
from collective.websemantic.base import WebsemanticBaseMessageFactory as _
from collective.websemantic.base.interfaces import IWebSemanticPlugin
from zope.component import getGlobalSiteManager
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
class PluginsNames(object):
"""Creates a vocabulary with all the routes available on the site.
"""
def __call__(self, context):
sm = getGlobalSiteManager()
plugins = [SimpleTerm("", "", _("-- select a plugin --"))]
for adapter in sm.registeredAdapters():
if adapter.provided == IWebSemanticPlugin:
plugins.append(SimpleTerm(value=adapter.name,
token=adapter.name,
title=adapter.name))
return SimpleVocabulary(plugins)
PluginsNamesFactory = PluginsNames()
|
import numpy as np
import cv2
#이미지 비트 연산은 이미지에서 특정 영역을 추출하거나 직사각형 모양이 아닌 ROI를 정의하거나 할 때 매우 유용하다
def bitOperation(hpos, vpos):#인자로 로고가 있을 좌표를 받는다.
img1 = cv2.imread('images/sana.jpg')
img2 = cv2.imread('images/logo.jpg')
#로고를 사나 사진 왼쪽 윗부분에 두기 위해 해당 영역 지정
rows, cols, channels = img2.shape#로고 이미지의 크기를 구한다.
print(rows)
print(cols)
print(channels)
roi = img1[vpos:rows+vpos, hpos:cols+hpos]#img1에서 로고를 위한 영역 roi를 잡는다.
#로고를 위한 마스크와 역마스트 생성하기
img2gray = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY)
#이미지를 먼저 흑백으로 변환, 마스크를 만든다, 흑과 백으로 완전히 구분
ret, mask = cv2.threshold(img2gray, 10, 255, cv2.THRESH_BINARY)
#마스크를 씌운 후 연산을 하게 되면 특정한 효과를 낼 수가 있게 된다.
mask_inv = cv2.bitwise_not(mask)#배경이 백, 나머지 흑
#roi에서 로고에 해당하는 부분만 검정색으로 만들기
img1_bg = cv2.bitwise_and(roi, roi, mask=mask_inv)
#mask 값이 0이 아닌 부분(흰색=1)만 AND 연산, 따라서 검정색(0) 그대로 이미지에 놓여짐
#로고 이미지에서 로고 부분만 추출하기
img2_fg = cv2.bitwise_and(img2, img2, mask=mask)
#로고 이미지 배경을 cv2.add로 투명으로 만들고 roi에 로고이미지 넣기
dst = cv2.add(img1_bg, img2_fg)
#검정 픽셀값이 0이므로 두 이미지를 더하게 되면 검정색은 없어지고 검정색 아닌 색이 표출
img1[vpos:rows+vpos, hpos:cols+hpos] = dst
cv2.imshow('result', img1)
cv2.waitKey(0)
cv2.destroyAllWindows()
bitOperation(10, 10)
|
import math
from mininet.log import info
def getDistance(h1, h2):
distance = math.sqrt((int(h1.params['position'][0]) - int(h2.params['position'][0])) ** 2 + (int(h1.params['position'][1]) - int(h2.params['position'][1])) ** 2)
return distance |
from django.apps import AppConfig
class ProgressBarConfig(AppConfig):
name = 'django_celery_progressbar'
|
import numpy as np
from idlpy import interpolate
class InterpLonLat():
def __init__(self, origLon, origLat):
self.newLon = None
self.newLat = None
self.dLon = None
self.dLat = None
self._xint = None
self._yint = None
self.origLon = origLon
self.origLat = origLat
@property
def origLon(self):
return self._origLon
@origLon.setter
def origLon(self, val):
if not isinstance(val, np.ndarray):
val = np.asarray( val )
self._origLon = val
dLon = val[1] - val[0]
self._origLonPad = np.pad(val, 1, mode='edge')
self._origLonPad[ 0] -= dLon
self._origLonPad[-1] += dLon
if self.dLon is not None:
self.setLonRes( self.dLon )
@property
def origLat(self):
return self._origLat
@origLat.setter
def origLat(self, val):
if not isinstance(val, np.ndarray):
val = np.asarray( val )
self._origLat = val
if self.dLat is not None:
self.setLatRes( self.dLat )
def setLonRes(self, dLon=None):
"""
Sets longitude resolution for interpolated data
Longitude array for output resolution is also created
Arguments:
dLon (float) : Set longitude resolution for interpolated data
Returns:
None.
"""
self.dLon = dLon
if dLon is None:
self.newLon = self.origLon
else:
self.newLon = np.arange( 360.0 / dLon ) * dLon + self.origLon.min()
origLon = self._origLonPad
self._xint = np.interp(self.newLon, origLon, np.arange(origLon.size))
def setLatRes(self, dLat=None):
"""
Sets latitude resolution for interpolated data
Latitude array for output resolution is also created
Arguments:
dLat (float) : Set latitude resolution for interpolated data
Returns:
None.
"""
self.dLat = dLat
if dLat is None:
self.newLat = self.origLat
else:
self.newLat = np.arange( (180.0 / dLat) + 1 ) * dLat
if self.origLat[0] > self.origLat[1]:
self.newLat = 90.0 - self.newLat
else:
self.newLat = self.newLat - 90.0
self._yint = np.interp(self.newLat, self.origLat, np.arange(self.origLat.size))
def setLonLatRes(self, dLon, dLat):
"""
Sets longitude/latitude resolution for interpolated data
Both longitude and latitude arrays for output resolution are
also created when the dimensions are set
Arguments:
dLon (float) : Set longitude resolution for interpolated data
dLat (float) : Set latitude resolution for interpolated data
Returns:
None.
"""
self.setLonRes( dLon )
self.setLatRes( dLat )
def interpolate(self, data):
"""
Interpolate data from original resolution to output resolution
Data input are assumed to be at the resolution set at class
initialization or whatever resoltion is currently in the
self.origLon and self.origLat attributes.
We assume date being interpolated are global and so data
at the edges of longitude (assumed last dimension) are wrapped so
that interpolation near edges is accurate.
Arguments:
data (numpy.ndarray) : Array of data to interpolate
Returns:
numpy.ndarray : Interpolated data
"""
if self._xint is None:
raise Exception('Must set output longitude resolution first!')
if self._yint is None:
raise Exception('Must set output latitude resolution first!')
if self.dLon is None and self.dLat is None: # If dLon and dLat are NOT set, then do NOT interpolate
return data
pad_width = [ (1, 1) ]
for i in range( 1, data.ndim ):
pad_width.append( (0, 0) )
pad_width = pad_width[::-1]
data = np.pad(data, pad_width, mode='wrap')
oldShape = None
if data.ndim > 3:
oldShape = data.shape
newShape = ( np.product(oldShape[:-2]), *oldShape[-2:] )
data = data.reshape( newShape )
zint = np.arange(data.shape[0])
data = interpolate(data, zint, self._yint, self._xint)
if oldShape is not None:
return data.reshape( *oldShape[:-2], *data.shape[-2:] )
return data
# yint = np.interp(newLat, origLat, np.arange(origLat.size))
# xint = np.interp(newLon, origLon, np.arange(origLon.size))
|
# Generated by Django 3.1 on 2020-08-28 17:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0002_auto_20200828_1549'),
]
operations = [
migrations.AddField(
model_name='order_detail',
name='start_time',
field=models.DateTimeField(null=True, verbose_name='开始下单时间'),
),
]
|
import numpy as np
import scipy.interpolate as spi
import pandas as pd
import matplotlib.pyplot as plt
import math
#Reto 2 Analisis Numerico
#Santiago Fernandez - Mariana Galavis - German Velasco
#Principales referencias durante el desarrollo del codigo:
#https://numpy.org/
#https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html
#https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splprep.html#scipy.interpolate.splprep
#https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splev.html#scipy.interpolate.splev
#https://pandas.pydata.org/
#https://matplotlib.org/
#https://www.fisicalab.com/apartado/errores-absoluto-relativos
def cambio_punto_coma(df, col_name):
df[col_name] = df[col_name].apply(lambda x: float(x.replace(',', '.')))
return df
def creacion_data(df, columns):
df = df.pipe(cambio_punto_coma, 'Temp. Interna (ºC)')
df_dht = df[:][columns]
data = df_dht.to_numpy()
return data
def eliminacion_porcentaje(data, p):
tam = int(np.ceil(len(data) * p))
restantes = np.zeros((tam, 4))
for i in range(0, tam):
r = np.random.randint(0, len(data) - i)
restantes[i] = data[r]
data = np.delete(data, r, 0)
return (data, restantes)
#Lectura y transformacion de archivos
df_pen = pd.read_csv('/Users/safer/Desktop/Quinto Semestre Ingeniería de Sistemas/Análisis Numérico/Referencias/Quixada.csv', encoding='utf-8', sep=';')
df_sga = pd.read_csv('/Users/safer/Desktop/Quinto Semestre Ingeniería de Sistemas/Análisis Numérico/Referencias/Quixera.csv', encoding='utf-8', sep=';')
n, m = df_pen[df_pen.columns[0]].count(), df_sga[df_sga.columns[0]].count()
#Creacion indices
indices_1 = np.arange(n)
indices_2 = np.arange(m)
#Anexo nueva columna
df_pen.insert(24, 'Indice', indices_1, False)
df_sga.insert(24, 'Indice', indices_2,False)
data_pen = df_pen.pipe(creacion_data, ['Dia Juliano', 'Hora', 'Temp. Interna (ºC)','Indice'])
data_sga = df_sga.pipe(creacion_data, ['Dia Juliano', 'Hora', 'Temp. Interna (ºC)','Indice'])
#Establecer una copia de cada conjunto de datos
org_dp = data_pen
org_ds = data_sga
#Eliminacion del 20% de datos de forma aleatoria
p = 0.2
data_pen, elm_pen = eliminacion_porcentaje(data_pen, p)
data_sga, elm_sga = eliminacion_porcentaje(data_sga, p)
#Creacion de splines para primera estacion
s_pen = spi.splrep(data_pen[:, 3], data_pen[:, 2])
xn_pen = data_pen[:, 3]
yn_pen = spi.splev(xn_pen, s_pen)
#Creacion de interpolacion lineal para primera estacion
f_pen = spi.interp1d(data_pen[:, 3], data_pen[:, 2])
#Grafica de datos originales (primera parte)
plt.plot(org_dp[:, 3], org_dp[:, 2], 'k-')
#Grafica de spline cubico (primera parte)
plt.plot(xn_pen, yn_pen, 'r--')
#Grafica de interpolacion lineal (primera parte)
plt.plot(xn_pen, f_pen(xn_pen), 'm-.')
#Instancia de graficas (primera parte)
plt.xlabel("Índice Calculado")
plt.ylabel("Temperatura Interna")
plt.title("Primer Punto - Estacion Quixadá")
plt.legend(['Datos originales', 'Splines Cubicos', 'Interpolacion Lineal'])
plt.show()
#Ajuste de datos de segunda estacion
data_n = np.empty(((len(data_sga)), 4), float)
for i in range(0, len(data_sga)):
for j in range(0, len(org_dp)):
if data_sga[i][0] == org_dp[j][0] and data_sga[i][1] == org_dp[j][1]:
data_n[i] = org_dp[j]
data_n[i][3] = data_sga[i][3]
break
#Creacion de splines para segunda estacion
s_sga = spi.splrep(data_n[:, 3], data_n[:, 2])
xn_sga = data_n[:, 3]
yn_sga = spi.splev(xn_sga, s_sga)
#Creacion de interpolacion lineal para segunda estacion
f_sga = spi.interp1d(data_n[:, 3], data_n[:, 2])
#Grafica de datos originales (segunda parte)
plt.plot(org_ds[:, 3], org_ds[:, 2], 'b-')
#Grafica de interpolacion lineal (segunda parte)
plt.plot(xn_sga, yn_sga, 'g--')
#Grafica de interpolacion lineal (segunda parte)
plt.plot(xn_sga, f_pen(xn_sga), 'c-.')
#Instancia de graficas (segunda parte)
plt.xlabel("Índice Calculado")
plt.ylabel("Temperatura Interna")
plt.title("Segundo Punto - Estacion Quixeramobim")
plt.legend(['Datos originales', 'Splines Cubicos', 'Interpolacion Lineal'])
plt.show()
#Calculo de errores
errorL = np.zeros(len(elm_pen))
errorS = np.zeros(len(elm_pen))
errorEMC_L = 0
errorEMC_S = 0
for k in range (0, len(elm_pen)):
er = abs(elm_pen[k][2]-f_pen(elm_pen[k][3]))
errorL[k] = er
errorEMC_L += math.pow(er, 2)
erS = abs(elm_pen[k][2]-spi.splev(elm_pen[k][3], s_pen))
errorS[k] = erS
errorEMC_S += math.pow(erS,2)
errorL_2 = np.zeros(len(elm_sga))
errorS_2 = np.zeros(len(elm_sga))
errorEMC_L2 = 0
errorEMC_S2 = 0
for k in range (0, len(elm_sga)):
er = abs(elm_sga[k][2]-f_sga(elm_sga[k][3]))
errorL_2[k] = er
errorEMC_L2 += math.pow(er, 2)
erS = abs(elm_sga[k][2]-spi.splev(elm_sga[k][3], s_sga))
errorS_2[k] = erS
errorEMC_S2 += math.pow(erS, 2)
#CALCULO DE ERRORES DE PRIMER PUNTO
print("ERRORES PRIMER PUNTO")
#Impresion de errores - Lineal
print("ERROR MAXIMO LINEAL {}".format(np.amax(errorL)))
print("ERROR MINIMO LINEAL {}".format(np.amin(errorL)))
media = np.sum(errorL)/len(errorL)
print ("ERROR MEDIA LINEAL {}".format(media))
absoluto = 0
for k in range (0, len(errorL)):
absoluto += abs(media-errorL[k])
absoluto = absoluto/len(errorL)
print("ERROR ABSOLUTO LINEAL {}".format(absoluto))
print("ERROR MEDIO CUADRADO LINEAL {}".format(math.sqrt(errorEMC_L/len(elm_pen))))
print("----------------------------------------------")
#Impresion de errores Spline
print("ERROR MAXIMO SPLINE {}".format(np.amax(errorS)))
print("ERROR MINIMO SPLINE {}".format(np.amin(errorS)))
media = np.sum(errorS)/len(errorS)
print("ERROR MEDIA SPLINE {}".format(media))
absoluto = 0
for k in range (0,len(errorS)):
absoluto += abs(media-errorS[k])
absoluto = absoluto/len(errorS)
print("ERROR ABSOLUTO SPLINE {}".format(absoluto))
print("ERROR MEDIO CUADRADO SPLINE {}".format(math.sqrt(errorEMC_S/len(elm_pen))))
print("--------------------------------------------------------------------------------------------------------------------------")
#CALCULO DE ERRORES DE SEGUNDO PUNTO
print("ERRORES SEGUNDO PUNTO")
#Impresion de errores - Lineal
print("ERROR MAXIMO LINEAL {}".format(np.amax(errorL_2)))
print("ERROR MINIMO LINEAL {}".format(np.amin(errorL_2)))
media = np.sum(errorL_2)/len(errorL_2)
print ("ERROR MEDIA LINEAL {}".format(media))
absoluto = 0
for k in range (0, len(errorL_2)):
absoluto += abs(media-errorL_2[k])
absoluto = absoluto/len(errorL_2)
print("ERROR ABSOLUTO LINEAL {}".format(absoluto))
print("ERROR MEDIO CUADRADO LINEAL {}".format(math.sqrt(errorEMC_L2/len(elm_sga))))
print("----------------------------------------------")
#Impresion de errores Spline
print("ERROR MAXIMO SPLINE {}".format(np.amax(errorS_2)))
print("ERROR MINIMO SPLINE {}".format(np.amin(errorS_2)))
media = np.sum(errorS_2)/len(errorS_2)
print("ERROR MEDIA SPLINE {}".format(media))
absoluto = 0
for k in range (0,len(errorS_2)):
absoluto += abs(media-errorS_2[k])
absoluto = absoluto/len(errorS_2)
print("ERROR ABSOLUTO SPLINE {}".format(absoluto))
print("ERROR MEDIO CUADRADO SPLINE {}".format(math.sqrt(errorEMC_S2/len(elm_sga)))) |
import json
from redis import StrictRedis
db = StrictRedis(host='localhost', port=6379)
jokes = [dict(json.loads(db.get(k))['log_data'].items() + [('jokeId', k)]) for k in db.keys('jokes:*')]
with open('_static/jokedata.json', 'w') as f:
json.dump(jokes, f, indent=2)
|
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
# 自定义动画
# 定义画布,默认值,这个fig需要,虽然默认大小设置,fig需要挂在动画上
fig = plt.figure()
# 坐标轴刻度
ax = plt.axes(xlim=(0, 2), ylim=(-2, 2))
# color='blue'=蓝色,否则默认为清淡蓝色
line, = ax.plot([], [], lw=2, color='blue')
# 因为动画,所以初始化列表线条
def init():
line.set_data([], [])
return line, # 注意逗号
# 定义动画
def animate(i):
# x取值范围从0~2,等差数列,分成1000,越大线条越平滑
x = np.linspace(0, 2, 1000)
# 动画x和y的值与i的从0~i的取值有关,才动起来
y = np.sin(2 * np.pi * (x - 0.01 * i))
line.set_data(x, y)
return line, # 注意逗号
# 将fig挂在动画上面
anim = animation.FuncAnimation(fig, animate, init_func=init, frames=200, interval=20, blit=True)
# 如果需要保存动画,就这样
# anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
# 标题名称
plt.title('Sin-a-subplot')
plt.show()
|
from ApplicationManager import ApplicationManager
from PyQt5 import QtWidgets
import LoggersConfig
from LoggersConfig import loggers
if __name__ == "__main__":
import sys
try:
app = QtWidgets.QApplication(sys.argv)
LoggersConfig.init_loggers()
AppManager = ApplicationManager()
AppManager.MainWindow.show()
sys.exit(app.exec_())
loggers['Application'].info('Exiting application!')
except:
loggers['Debug'].debug(f'Main: {sys.exc_info()}')
|
from __future__ import print_function, division
import os
from isochrones.starfit import starfit
from .data import dirname, STARMODELDIR
from .models import GaiaDR1_StarModel
from .write import write_ini
def tgas_starfit(i, write_ini_file=True, ini_kwargs=None, rootdir=STARMODELDIR,
**kwargs):
d = dirname(i, rootdir=rootdir)
if not os.path.exists(os.path.join(d, 'star.ini')):
if not write_ini_file:
raise ValueError('star.ini not written for {} (dir={})'.format(i,d))
if ini_kwargs is None:
ini_kwargs = {}
if 'raise_exceptions' not in ini_kwargs:
ini_kwargs['raise_exceptions'] = True
write_ini(i, **ini_kwargs)
return starfit(d, starmodel_type=GaiaDR1_StarModel, **kwargs)
|
import torch as tc
x=tc.ones(2,2,requires_grad=True)
print(x)
y=x+2;print(y)
print(y.grad_fn)
z=y*y*3;print(z)
out=z.mean();print(z,out)
a=tc.randn(2,2);a=((a*3)/(a-1))
print(a.requires_grad)
a.requires_grad_(True)
print(a.requires_grad)
b=(a*a).sum()
print(b.grad_fn)
out.backward()
print(x.grad)
x=tc.randn(3,requires_grad=True);y=x*2;print(y)
while y.data.norm()<1000:
y=y*2
print(y)
v=tc.tensor([0.1,1.0,0.0001],dtype=tc.float)
y.backward(v)
print(x.grad) |
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import selenium.webdriver.support.expected_conditions as EC
import selenium.webdriver.support.ui as ui
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.webfocus.webfocus import WF_Functions
import time
class LaunchIA(object):
def __init__(self,driver):
self.driver = driver
def validate_tool(self):
time.sleep(2)
if len(self.driver.window_handles) == 2:
self.driver.switch_to_window(self.driver.window_handles[1])
WF_Functions(self.driver).is_visible('#paneIbfsExplorer_exTree > div.bi-tree-view-body-content > table > tbody')
def Report(self):
ActionChains(self.driver).send_keys(Keys.DOWN, Keys.RIGHT).perform()
validate_tool(self)
def Chart(self):
ActionChains(self.driver).send_keys(Keys.DOWN, Keys.RIGHT,Keys.DOWN).perform()
validate_tool(self)
def Document(self):
ActionChains(self.driver).send_keys(Keys.DOWN, Keys.RIGHT,Keys.DOWN,Keys.DOWN,Keys.DOWN).perform()
validate_tool(self)
def Dashboard(self):
ActionChains(self.driver).send_keys(Keys.DOWN, Keys.RIGHT,Keys.DOWN,Keys.DOWN).perform()
validate_tool(self)
def Visualization(self):
ActionChains(self.driver).send_keys(Keys.DOWN, Keys.RIGHT,Keys.DOWN,Keys.DOWN,Keys.DOWN,Keys.DOWN).perform()
validate_tool(self)
|
import time
from datetime import date
def test():
assert calc_working_day(3, 2016, 9, 1) == 5
assert calc_working_day(11, 2016, 9, 2) == 17
def what_week_day(year, month, day):
return date(year, month, day).weekday()
def calc_working_day(x, year, month, day):
day = 5 - what_week_day(year, month, day) - 1
var = x / 5
mod = x % 5
if mod > day:
var += 1
return var*2+x
test()
print calc_working_day(5, 2016, 9, 5)
|
# user 별로 model 생성
import tensorflow as tf
import pandas as pd
from keras.layers import Input, Dense, Dropout
from keras.models import Model
from keras.metrics import Precision, Recall
from keras.optimizers import Adam
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
import joblib
import os
import datetime
# dataframe에서 label만 one-hot encoding
def label_one_hot_encoding(df):
label = df['label']
label = pd.get_dummies(label)
return label
# path에서 data와 label 추출하여 반환
def load_data_label(path):
df = pd.read_csv(path)
data = df.drop(['filename', 'label', 'time'],axis=1)
label = label_one_hot_encoding(df)
return data, label
# model 구조
def make_model(input_size, output_size, unit, rate):
inputs =Input(shape=(input_size,))
X = Dense(units = unit, kernel_initializer = 'glorot_uniform', activation = 'relu')(inputs)
H = Dense(units = unit, kernel_initializer = 'glorot_uniform', activation = 'relu')(X)
H = Dropout(rate)(H)
H = Dense(units = unit, kernel_initializer = 'glorot_uniform', activation = 'relu')(H)
H = Dropout(rate)(H)
H = Dense(units = unit, kernel_initializer = 'glorot_uniform', activation = 'relu')(H)
H = Dropout(rate)(H)
Y = Dense(units = output_size, kernel_initializer = 'glorot_uniform', activation = 'sigmoid')(H)
return inputs, Y
# model 생성
def compile_model(inputs, Y, lr=0.01):
model = Model(inputs=inputs, outputs=Y)
model.compile(optimizer = Adam(lr=lr), loss = 'binary_crossentropy', metrics = ['accuracy', Precision(), Recall()])
model.summary()
return model
# model 정확도 시각화
def acc_graph(history):
from pylab import rcParams
from matplotlib import pyplot as plt
rcParams['figure.figsize'] = 10, 4
plt.plot(history.history['accuracy'])
plt.plot(history.history['val_accuracy'])
plt.title('model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.show()
# summarize history for loss
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('model loss')
plt.ylabel('loss')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.show()
# 모델 정확도, 예측값, 실제값 출력
def evaluate(model, test_X, test_Y, batch_size=256):
evaluation = model.evaluate(test_X,test_Y, batch_size=batch_size)
print("acc : ", evaluation[1])
pred = pd.DataFrame(model.predict(test_X))
pred = pred.round(decimals=2)
print(pred)
print(test_Y)
# df(scaler 학습 대상), filename(scaler 이름)
def save_MinMaxScaler(df,filename):
df = df.fillna(0)
scaler = MinMaxScaler()
scaler.fit(df)
model_dir = os.environ.get('MODEL_DIR', '')
joblib.dump(scaler, model_dir+filename)
return scaler
# type(mouse or resource)
def train(user, type, unit=15, dropout=0.3, lr=0.0005, batch_size=256, epochs=1000):
scaler_name = user+'_scaler_'
model_name = user+'_model_'
if(type == 'mouse'):
scaler_name += '_m.gz'
model_name += '_m.h5'
feature_file = os.environ.get('M_FEATURE_FILE', '')
else:
scaler_name += '_r.gz'
model_name += '_r.h5'
feature_file = os.environ.get('R_FEATURE_FILE', '')
# data(X), labeling & one-hot encoding(Y)
data, labels = load_data_label(feature_file)
label = labels[[user]]
# 데이터 셋 분할 전 전처리
data = data.fillna(0)
# 데이터 셋 분할
train_X, test_X, train_Y, test_Y = train_test_split(data, label, test_size=0.3, stratify=labels)
# data scaler 생성 및 저장
scaler = save_MinMaxScaler(train_X, scaler_name)
# data 전처리
train_X = scaler.transform(train_X)
test_X = scaler.transform(test_X)
# shape 정의
input_size = test_X.shape[-1]
output_size = 1
# AI
inputs, Y = make_model(input_size, output_size, unit, dropout)
model = compile_model(inputs, Y, lr)
es = tf.keras.callbacks.EarlyStopping(monitor='val_loss',mode='min', patience=100) # epoch 과적합 방지
history = model.fit(train_X, train_Y, batch_size=batch_size, epochs=epochs, validation_data=(test_X, test_Y),callbacks=[es])
acc_graph(history)
evaluate(model, test_X, test_Y)
print(model.evaluate(test_X, test_Y))
# model 저장
model_dir = os.environ.get('MODEL_DIR', '')
model.save(model_dir+model_name)
# 근래 생긴 데이터만을 가지고 기존 모델 재학습(like fine-tuning)
# @@ freeze 조정 필요
def retrain(user, type, base_model, days=2, lr=0.00005, batch_size=256, epochs=1000):
scaler_name = user+'_scaler_'
model_name = user+'_model_'
if(type == 'mouse'):
scaler_name += '_m.gz'
model_name += '_m.h5'
feature_file = os.environ.get('M_FEATURE_FILE', '')
else:
scaler_name += '_r.gz'
model_name += '_r.h5'
feature_file = os.environ.get('R_FEATURE_FILE', '')
retain_allowed_days = (datetime.datetime.today() + datetime.timedelta(days=-days)).strftime("%Y-%m-%d") # default: 3일간 데이터 재학습에 사용
# data(X), labeling & one-hot encoding(Y)
df = pd.read_csv(feature_file)
df = df[df['time']>=retain_allowed_days]
data = df.drop(['filename', 'label', 'time'],axis=1)
labels = label_one_hot_encoding(df)
label = labels[[user]]
# 데이터 셋 분할 전 전처리
data = data.fillna(0)
# 데이터 셋 분할
train_X, test_X, train_Y, test_Y = train_test_split(data, label, test_size=0.3, stratify=labels)
# Load scaler & data 전처리
scaler = joblib.load(scaler_name)
train_X = scaler.transform(train_X)
test_X = scaler.transform(test_X)
# shape 정의
input_size = test_X.shape[-1]
# AI
inputs = Input(shape=(input_size,))
# freeze some layers
for layer in base_model.layers[:-3]:
layer.trainable = False
Y = base_model.output
model = compile_model(inputs, Y, lr)
es = tf.keras.callbacks.EarlyStopping(monitor='val_loss',mode='min', patience=100) # epoch 과적합 방지
history = model.fit(train_X, train_Y, batch_size=batch_size, epochs=epochs, validation_data=(test_X, test_Y),callbacks=[es])
acc_graph(history)
evaluate(model, test_X, test_Y)
print(model.evaluate(test_X, test_Y))
# model 저장
model_dir = os.environ.get('MODEL_DIR', '')
model.save(model_dir+model_name) |
# -*- coding: utf-8 -*-
__author__ = 'Tom Raz'
__email__ = 'tom@zeitgold.com'
__version__ = '0.1.0'
|
# people = [
# ["Chad", "Reynolds", 35],
# ["Taylor", "Reynolds", 29]
# ]
# coords = [
# [10,10],
# [20,10],
# [10,20]
# ]
# print(people[0])
# print(people[0][2]) # 0 points to the first list and the 2 points to the item in the first list at index 2
# me = people[0]
# print(me[2]) #will print 35
# #different example looping through nested lists
# more_people = [
# ["Chad", "Reynolds", 35],
# ["Taylor", "Reynolds", 29],
# ["Bob", "Hope", 99],
# ["Bassy", "Jones", 95]
# ]
# for person in more_people:
# print("first", "last", "age")
# for attribute in person:
# print(attribute)
# #different example - printing x,y coords, looping through nested lists
# coordinates = [[10,10], [20,10],[10,20]]
# for coord in coordinates:
# idx = 0
# print("Position:")
# for position in cord:
# p = "X"
# if idx == 1:
# p = "Y"
# print(f"{p}-{position}")
# idx += 1
# # Exercise 1
# shopping = [
# ["Corn", "Potatoes", "Tomatoes"],
# ["milk","eggs","cheese","yogurt"],
# ['frozen pizza','popsicle']
# ]
# for lists in shopping:
# print(lists)
# Exercise 2
shopping = [
["Corn", "Potatoes", "Tomatoes"],
["milk","eggs","cheese","yogurt"],
['frozen pizza','popsicle']
]
index = 0
for lists in shopping:
print("%d. %s" % (index + 1,lists)) |
import sys
import re
data = sys.stdin.readlines()
# wordsInTheText = data[0].split(' ')
wordsInTheText = re.findall(r"[\w']+", data[0])
lengthOfData = len(wordsInTheText)
# commonly occuring words in Wikipedia articles
placeMetadata = ['at','from','where','here','place','near','to','North','Northern','South',
'Southern','West','Western','East','Eastern','nearby','village','city','country','coastal',
'humid','hot','summer','winter','autumn','kms','via','the','The','world','cold','harsh',
'desert','mountains','valley','tropical']
personMetadata = ['named','age','his','her','was','is','of','did','old','he','she','they','lived',
'we','father','mother','son','daughter','intelligent','smart','had','has','have','been','led',
'worked','born','lived','earned','by','occupation','died','years','ago']
vicinityCheckThreshold = 5
processedData = {}
for wIndex, word in enumerate(wordsInTheText):
# find words that are capitalized i.e. could be proper nouns
for index,char in enumerate(word):
if char.isupper():
word = word.strip(',')
word = word.strip('"')
wType = ""
# define classification rule/s to ascertain the kind of word
# search for most likely words in the vicinity of the word
# processing usage clues | common context of the usage words
# in the English language
indexToStart = wIndex - vicinityCheckThreshold
if indexToStart < 0:
indexToStart = 0 # check for bounds
indexToEnd = wIndex + vicinityCheckThreshold
if indexToEnd > lengthOfData:
indexToEnd = lengthOfData # check for bounds
itr = indexToStart
while itr < indexToEnd:
wordBeingChecked = wordsInTheText[itr]
wordBeingChecked = wordBeingChecked.strip(',')
for keyword in personMetadata:
if keyword == wordBeingChecked:
wType = 'person'
break;
for keyword in placeMetadata:
if keyword == wordBeingChecked:
wType = 'place'
break;
itr = itr+1
if wType == 'place' or wType == 'person':
processedData[word] = wType
else:
processedData[word] = 'place'
# traverse through the dictionary formed and try & understand the
# context of the complete article and make an intelligent guess
# of the unknown
unknown = ''
placeCount = 0;
personCount = 0;
for key in processedData:
if processedData[key] == 'place':
placeCount = placeCount + 1;
else:
personCount = personCount + 1;
if personCount > placeCount:
unknown = 'person'
else:
unknown = 'place'
queries = int(data[1]) + 2
query = 2;
while query < queries:
queryWord = data[query].strip('\n')
if queryWord in processedData.keys():
print processedData[queryWord]
else:
print unknown
query = query + 1 |
a1=(input("Enter alphabet: "))
if(a1=='a' or a1=='A' or a1=='e' or a1=='E' or a1=='i' or a1=='I' or a1=='o' or a1=='O' or a1=='u' or a1=='U'):
print("It is Vowel.")
else:
print("It is Consonant.") |
class Secrets:
'''
Secrets here because I am bad at secret management.
'''
netbox_url = ''
netbox_username = ''
netbox_token = ''
napalm_username = ''
napalm_password = '' |
import qgis.core
#get Rasterr layer
#now it i not the best way to do
rlayer = qgis.utils.iface.activeLayer()
#getting sample from raster
#identity() object
ident = rlayer.dataProvider().identify(QgsPoint(100,-100),QgsRaster.IdentifyFormatValue)
sampleValue = ident.results()
#gdal import
gtif=gdal.Open("/home/user/thesis/IMG_0048_4.tif")
|
import argparse, glob, sys, json, ast, copy
from random import shuffle
def txt_to_np_arr(phrase, chat_dict):
word_arr = phrase.split()
normalized_arr = []
for word in word_arr:
normalized_arr.append(chat_dict[word])
return normalized_arr
def txt_to_dict(phrase):
chat_dict = {}
#split phrase into arr, and for each, add to dictionary
word_arr = phrase.split()
for word in word_arr:
if (word in chat_dict):
chat_dict[word] += 1
else:
chat_dict[word] = 1
return chat_dict
def generate_dict(word_dict):
word_id = 0
sorted_word_keys = sorted(word_dict, key=word_dict.get, reverse=True)
dictionary = {}
for key in sorted_word_keys:
dictionary[key] = word_id
word_id += 1
reverse_dictionary = dict((v,k) for k,v in dictionary.items())
return [dictionary, reverse_dictionary]
def generate_data(file):
f = open(file, "r")
print("Reading " + file + "...")
phrase = f.read()
chat_dict = txt_to_dict(phrase)
data_dictionary = generate_dict(chat_dict)
normalized_word_arr = txt_to_np_arr(phrase, data_dictionary[0])
input_batch = []
output_batch = []
for i in range(0, len(normalized_word_arr) - 4):
input_batch.append([normalized_word_arr[i],
normalized_word_arr[i+1],
normalized_word_arr[i+2]])
output = [0] * len(data_dictionary[0])
output[normalized_word_arr[i + 3]] = 1
output_batch.append(output)
#print(len(input_batch))
#print(len(output_batch))
#print(input_batch[0])
#print(output_batch[0])
return [input_batch, output_batch, data_dictionary]
"""for file in files:
# For each replay, train the model
f = open(file, "r")
print("Reading "+file+"...")
phrase = f.read()
chat_dict = txt_to_dict(phrase)
data_dictionary = generate_dict(chat_dict)
print(txt_to_np_arr(phrase, data_dictionary[0]))
generate_data(file)
# print(data_dictionary)""" |
# Generated by Django 2.2.4 on 2019-10-06 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('security_guards', '0002_security_identity_no'),
]
operations = [
migrations.AlterModelOptions(
name='devicenumber',
options={'verbose_name': 'Tracking Device', 'verbose_name_plural': 'Tracking Devices'},
),
migrations.AlterModelOptions(
name='passnumber',
options={'verbose_name': 'Visitor Pass', 'verbose_name_plural': 'Visiter Pass'},
),
migrations.AlterModelOptions(
name='security',
options={'verbose_name': 'Security Guard', 'verbose_name_plural': 'Security Guards'},
),
migrations.AlterField(
model_name='devicenumber',
name='device_no',
field=models.CharField(max_length=150, verbose_name='Device No.'),
),
migrations.AlterField(
model_name='passnumber',
name='pass_no',
field=models.CharField(max_length=150, verbose_name='Pass No.'),
),
]
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import raft.protos.raft_pb2 as raft__pb2
class NodeStub(object):
"""The generic server node definition.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.AppendEntries = channel.unary_unary(
'/raft.Node/AppendEntries',
request_serializer=raft__pb2.AppendEntryRequest.SerializeToString,
response_deserializer=raft__pb2.AppendEntryReply.FromString,
)
self.RequestVote = channel.unary_unary(
'/raft.Node/RequestVote',
request_serializer=raft__pb2.RequestVoteRequest.SerializeToString,
response_deserializer=raft__pb2.RequestVoteReply.FromString,
)
class NodeServicer(object):
"""The generic server node definition.
"""
def AppendEntries(self, request, context):
"""AppendEntriesRPC - used by leaders to add entries to the followers during normal operation and for heartbeats
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RequestVote(self, request, context):
"""RequestVoteRPC - used by candidates for requesting votes during an election
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_NodeServicer_to_server(servicer, server):
rpc_method_handlers = {
'AppendEntries': grpc.unary_unary_rpc_method_handler(
servicer.AppendEntries,
request_deserializer=raft__pb2.AppendEntryRequest.FromString,
response_serializer=raft__pb2.AppendEntryReply.SerializeToString,
),
'RequestVote': grpc.unary_unary_rpc_method_handler(
servicer.RequestVote,
request_deserializer=raft__pb2.RequestVoteRequest.FromString,
response_serializer=raft__pb2.RequestVoteReply.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'raft.Node', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
|
import numpy as np
from shapely.geometry import Polygon, MultiPolygon, LineString, MultiLineString, Point, LinearRing
from shapely.ops import polygonize, cascaded_union
from scipy.spatial.qhull import Delaunay
from crowddynamics.core.distance import distance_circle_line
from crowddynamics.core.sampling import triangle_area_cumsum, random_sample_triangle
from crowddynamics.core.vector2D import length
from crowddynamics.core.geometry import geom_to_linear_obstacles
from crowddynamics.simulation.agents import Circular, ThreeCircle, NO_TARGET, \
Agents, AgentGroup
from crowddynamics.simulation.field import Field
from crowddynamics.simulation.logic import Reset, InsideDomain, Integrator, \
Fluctuation, Adjusting, Navigation, ExitDetection, \
Orientation, AgentAgentInteractions, AgentObstacleInteractions, \
LeaderFollower, TargetReached
from crowddynamics.simulation.multiagent import MultiAgentSimulation
from shapely.geometry import Polygon
from shapely.geometry.linestring import LineString
from traitlets.traitlets import Enum, Int, default
class FinlandiaTalo2ndFloorField(Field):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def f(value, scale=10 / 1.5):
if value:
return tuple(map(lambda x: scale * x, value))
else:
return None
A = list(map(f, [
None,
(19.226, 4.194),
(19.444, 3.887),
(21.368, 1.179),
(1.567, 1.179),
(1.574, 2.682),
(1.565, 4.603),
(4.012, 5.296),
(2.736, 2.689),
]))
B = list(map(f, [
None,
(4.421, 3.862),
(3.881, 5.755),
(4.998, 6.024),
(5.209, 5.169),
(4.677, 5.041),
(4.787, 4.587),
(5.394, 5.168),
(4.858, 7.154),
(6.048, 7.667),
(5.993, 7.823),
(6.71, 8.026),
]))
C = list(map(f, [
None,
(6.916, 8.038),
(7.043, 8.08),
(7.291, 7.926),
(7.411, 7.45),
(7.669, 7.408),
(7.709, 7.224),
(8.026, 7.317),
(8.257, 6.494),
(8.141, 6.472),
None,
(8.387, 4.775),
(6.416, 4.501),
(6.372, 4.631),
(6.047, 4.587),
(6.336, 4.992),
(5.889, 4.955),
(5.549, 6.147),
]))
D = list(map(f, [
(),
(8.198, 6.705),
(10.513, 7.321),
(10.598, 7.06),
(10.705, 6.803),
(10.441, 6.747),
(10.806, 5.387),
(12.112, 5.329),
(8.915, 4.884),
(8.518, 6.328),
(9.929, 6.703),
(10.304, 5.281),
(11.936, 3.715),
(12.488, 8.787),
(15.002, 9.438),
(18.288, 4.784),
(18.634, 4.98),
(18.906, 4.63),
(19.6, 5.093),
(21.673, 2.116),
]))
E = list(map(f, [
(),
(17.693, 4.928),
(18.233, 4.09),
(16.799, 2.954),
(16.457, 3.582),
(15.73, 3.979),
(15.998, 3.024),
(14.23, 2.634),
(14.142, 3.571),
(13.579, 3.582),
(13.568, 3.064),
(12.311, 3.34),
(12.311, 3.88),
(8.859, 2.682),
(8.435, 2.625),
(8.266, 3.685),
(8.718, 3.741),
(8.333, 3.265),
(8.208, 3.21),
(8.267, 2.861),
(7.978, 2.827),
(7.816, 2.708),
(5.787, 5.313),
(6.217, 2.716),
(5.732, 2.734),
(4.432, 2.722),
(4.332, 2.923),
(4.24, 3.134),
(4.07, 3.656),
(2.375, 3.656),
(2.375, 3.233),
(3.675, 3.247),
(16.487, 1.687),
(18.101, 1.682),
(18.107, 1.179),
(18.734, 1.652),
(19.087, 3.491),
(6.295, 3.232),
(4.571, 3.225),
(4.444, 3.696),
]))
G = list(map(f, [
(),
(12.327, 4.117),
(12.356, 4.281),
(12.374, 4.428),
(12.4, 4.6),
(12.428, 4.747),
(12.456, 4.905),
(12.484, 5.059),
(12.509, 5.22),
(12.537, 5.396),
(12.558, 5.551),
(12.588, 5.718),
(12.616, 5.887),
(12.644, 6.035),
(12.66, 6.204),
(12.702, 6.358),
(12.715, 6.554),
(12.748, 6.719),
]))
H = list(map(f, [
(),
(12.996, 3.897),
(13.024, 4.053),
(13.044, 4.209),
(13.069, 4.362),
(13.06, 4.526),
(13.113, 4.679),
(13.119, 4.843),
(13.137, 4.995),
(13.177, 5.169),
(13.214, 5.308),
(13.239, 5.461),
(13.253, 5.62),
(13.297, 5.78),
(13.313, 5.936),
(13.364, 6.088),
(13.385, 6.241),
(13.4, 6.4),
]))
I = list(map(f, [
(),
(13.572, 3.769),
(13.595, 3.93),
(13.608, 4.092),
(13.613, 4.259),
(13.631, 4.412),
(13.626, 4.574),
(13.64, 4.74),
(13.649, 4.884),
(13.671, 5.046),
(13.676, 5.217),
(13.689, 5.374),
(13.703, 5.523),
(13.698, 5.671),
(13.716, 5.846),
(13.73, 6.004),
(13.743, 6.166),
(13.748, 6.323),
]))
J = list(map(f, [
(),
(16.789, 4.838),
(16.713, 4.98),
(16.666, 5.117),
(16.6, 5.282),
(16.506, 5.428),
(16.465, 5.592),
(16.36, 5.72),
(16.301, 5.89),
(16.205, 6.039),
(16.083, 6.12),
(16.044, 6.314),
(15.987, 6.454),
(15.895, 6.624),
(15.796, 6.734),
(15.692, 6.866),
(15.6, 7),
(15.516, 7.161),
]))
K = list(map(f, [
(),
(17.339, 5.382),
(17.263, 5.524),
(17.16, 5.672),
(17.067, 5.798),
(16.99, 5.941),
(16.888, 6.081),
(16.8, 6.2),
(16.703, 6.367),
(16.59, 6.484),
(16.495, 6.624),
(16.396, 6.761),
(16.31, 6.881),
(16.217, 7.027),
(16.113, 7.179),
(16.005, 7.31),
(15.898, 7.471),
(15.793, 7.635),
]))
O = list(map(f, [
(),
(5.152, 6.067),
(6.837, 7.333),
(7.07, 6.03),
(8.192, 6.119),
(12.288, 6.949),
(8.895, 1.179),
(12.027, 1.179),
(16.478, 1.179),
(3.672, 3.656),
(4.249, 4.467),
(17.815, 5.455),
(11.97, 4.027),
(14.846, 6.717),
(14.097, 6.472),
(12.699, 6.912),
(15.987, 8.042),
]))
U = list(map(f, [
(),
(14.169, 3.788),
(14.153, 3.954),
(14.159, 4.103),
(14.167, 4.264),
(14.162, 4.431),
(14.176, 4.573),
(14.177, 4.743),
(14.179, 4.894),
(14.176, 5.052),
(14.187, 5.239),
(14.2, 5.4),
(14.19, 5.543),
(14.192, 5.697),
(14.195, 5.848),
(14.195, 6.025),
(14.2, 6.168),
(14.2, 6.322),
]))
V = list(map(f, [
(),
(14.908, 3.879),
(14.855, 4.029),
(14.897, 4.216),
(14.83, 4.347),
(14.847, 4.523),
(14.763, 4.649),
(14.735, 4.807),
(14.745, 4.969),
(14.739, 5.133),
(14.737, 5.301),
(14.702, 5.456),
(14.656, 5.618),
(14.634, 5.769),
(14.594, 5.907),
(14.613, 6.079),
(14.599, 6.246),
(14.564, 6.397),
]))
W = list(map(f, [
(),
(15.676, 4.123),
(15.644, 4.269),
(15.588, 4.431),
(15.549, 4.576),
(15.496, 4.723),
(15.449, 4.865),
(15.399, 5.031),
(15.359, 5.176),
(15.297, 5.332),
(15.259, 5.484),
(15.203, 5.629),
(15.151, 5.78),
(15.119, 5.928),
(15.063, 6.087),
(15.009, 6.252),
(14.963, 6.386),
(14.914, 6.553),
]))
X = list(map(f, [
(),
(6.007, 7.828),
(5.869, 8.313),
(12.146, 9.886),
(12.447, 8.775),
(12.41, 8.381),
(12.308, 7.364),
(10.598, 7.06),
(10.552, 7.294),
(9.632, 7.087),
(9.575, 7.309),
(8.878, 7.138),
(8.926, 6.899),
(8.205, 6.707),
(8.028, 7.31),
(7.76, 7.316),
(7.462, 7.42),
(7.291, 7.926),
(7.046, 8.071),
(6.71, 8.026),
]))
Y = list(map(f, [
(),
(6.588, 8.493),
]))
Z = list(map(f, [
(),
(16.176, 4.36),
(16.099, 4.502),
(16.053, 4.639),
(15.986, 4.804),
(15.947, 4.949),
(15.876, 5.106),
(15.84, 5.303),
(15.758, 5.436),
(15.704, 5.573),
(15.662, 5.743),
(15.6, 5.876),
(15.559, 6.06),
(15.495, 6.244),
(15.421, 6.379),
(15.374, 6.527),
(15.316, 6.659),
(15.239, 6.822),
]))
A[3] = (21.368 * 10 / 1.5, 1.55 * 10 / 1.5)
A[4] = (1.567 * 10 / 1.5, 1.55 * 10 / 1.5)
# E[32] = ()
# E[33] = ()
E[34] = (18.107 * 10 / 1.5, 1.55 * 10 / 1.5)
E[35] = (18.734 * 10 / 1.5, 2.3 * 10 / 1.5)
O[6] = (8.895 * 10 / 1.5, 1.55 * 10 / 1.5)
O[7] = (12.027 * 10 / 1.5, 1.55 * 10 / 1.5)
O[8] = (16.478 * 10 / 1.5, 1.55 * 10 / 1.5)
rest_midpoint = (6 * 10 / 1.5, 1.55 * 10 / 1.5)
# New points for "Traffic Jam Puzzle"
rest1 = (4*10/1.5, 1.55*10/1.5)
rest2 = (8*10/1.5, 1.55*10/1.5)
obstacles = Polygon()
obstacles |= LineString(A[1:5 + 1] + [A[8]])
obstacles |= LineString(A[5:7 + 1])
obstacles |= LineString(B[1:6 + 1])
obstacles |= LineString(B[7:11 + 1])
# obstacles |= LineString(C[1:10] + C[11:14 + 1])
obstacles |= LineString(C[1:6]) # INCLUDE
obstacles |= LineString(C[7:10] + C[11:15]) # EXCLUDE?
obstacles |= LineString(C[15:19]) # EXCLUDE?
# obstacles |= LineString(D[1:7 + 1])
obstacles |= LineString(D[2:7 + 1]) # INCLUDE
obstacles |= LineString(D[8:11 + 1]) # INCLUDE
# obstacles |= LineString(D[12:19 + 1])
obstacles |= LineString([D[12]] + [X[5]]) # INCLUDE
obstacles |= LineString(D[13:19 + 1]) # INCLUDE
obstacles |= LineString(E[1:4 + 1])
obstacles |= LineString(E[5:8 + 1])
obstacles |= LineString(E[9:12 + 1])
obstacles |= LineString(E[13:16 + 1])
obstacles |= LineString(E[17:21 + 1] + [E[23]])
obstacles |= LineString(E[24:26 + 1])
obstacles |= LineString(E[27:31 + 1])
# obstacles |= LineString(E[32:34 + 1])
obstacles |= LineString(E[35:36 + 1])
obstacles |= LineString(E[35:36 + 1])
obstacles |= LineString(E[37:39 + 1])
obstacles |= LineString(X[1:4] + [D[13]]) # INCLUDE
# obstacles |= LineString(X[6:19]) # EXCLUDE?
obstacles |= LineString(D[1:3] + [X[6]]) # INCLUDE
obstacles |= LineString(X[9:12]) # INCLUDE
# New obstacles for "Traffic Jam Puzzle"
obstacles |= LineString([C[11]] + [E[16]])
obstacles |= LineString([E[39]] + [B[1]])
# These are the obstacles for the agents that start outside the Finlandia hall
obstacles_finlandia = Polygon()
# changes start
# obstacles |= LineString(C[1:10] + C[11:14 + 1])
obstacles_finlandia |= LineString(C[1:6]) # INCLUDE
obstacles_finlandia |= LineString(C[7:10] + C[11:15]) # EXCLUDE?
obstacles_finlandia |= LineString(C[15:19]) # EXCLUDE?
# obstacles |= LineString(D[1:7 + 1])
obstacles_finlandia |= LineString(D[2:7 + 1]) # INCLUDE
obstacles_finlandia |= LineString(D[8:11 + 1]) # INCLUDE
# obstacles_finlandia |= LineString(D[12:19 + 1])
obstacles_finlandia |= LineString([D[12]] + [X[5]]) # INCLUDE
obstacles_finlandia |= LineString(D[13:19 + 1]) # INCLUDE
obstacles_finlandia |= LineString(X[1:4] + [D[13]]) # INCLUDE
# obstacles |= LineString(X[6:19]) # EXCLUDE?
obstacles_finlandia |= LineString(D[1:3] + [X[6]]) # INCLUDE
obstacles_finlandia |= LineString(X[9:12]) # INCLUDE
# changes end
obstacles_finlandia |= LineString(A[1:5 + 1] + [A[8]])
obstacles_finlandia |= LineString(A[5:7 + 1])
obstacles_finlandia |= LineString(B[1:6 + 1])
obstacles_finlandia |= LineString(B[7:11 + 1])
# obstacles_finlandia |= LineString(D[1:7 + 1])
# obstacles_finlandia |= LineString(D[8:11 + 1])
# obstacles_finlandia |= LineString(D[12:19 + 1])
obstacles_finlandia |= LineString(E[1:4 + 1])
obstacles_finlandia |= LineString(E[5:8 + 1])
obstacles_finlandia |= LineString(E[9:12 + 1])
obstacles_finlandia |= LineString(E[13:16 + 1])
obstacles_finlandia |= LineString(E[17:21 + 1] + [E[23]])
obstacles_finlandia |= LineString(E[24:26 + 1])
obstacles_finlandia |= LineString(E[27:31 + 1])
obstacles_finlandia |= LineString(E[32:34 + 1])
obstacles_finlandia |= LineString(E[35:36 + 1])
obstacles_finlandia |= LineString(E[35:36 + 1])
obstacles_finlandia |= LineString(E[37:39 + 1])
obstacles_finlandia |= LineString([D[12]] + [E[11]] + [E[10]] + [E[7]] + [E[6]] + [E[3]] + [E[2]])
# Benchrows
# for i in range(1, 18):
# obstacles |= LineString([G[i], H[i], I[i]])
# obstacles |= LineString([U[i], V[i], W[i]])
# obstacles |= LineString([Z[i], J[i], K[i]])
finlandiahall = Polygon(
[O[12], E[12], E[9], E[8], E[5], E[1], O[11], O[16],
O[13], O[14], O[15], O[5]])
foyer = Polygon([B[6], C[12], E[15], E[21], E[23], E[38], E[39], B[1]])
helsinkihall = Polygon([O[4], C[11], C[12], C[13], C[15], C[16], C[17],
O[1], B[8], B[9], C[3], C[4], O[2], O[3]])
piazza_1 = Polygon(
[C[11], E[16], E[13], O[6], O[7], (77.5, 24.767), (77.5, 26.847), (79, 35.527), D[6],
D[11], D[8]])
piazza_2 = Polygon(
[O[7], O[8], E[32], E[3], E[6], E[7], E[10], E[11], D[12]])
piazza_3 = Polygon(
[O[8], A[3], A[2], A[1], D[17], E[2], E[3]])
restaurant = Polygon(
[A[4], A[5], A[8], E[25], E[24], rest_midpoint]
)
outer_bubblegum_finlandia = Polygon(
[D[12], (75, 15), E[3], E[2], D[15], D[14], D[13]]
)
inner_bubblegum_finlandia = Polygon(
[D[12], E[11], E[10], E[7], E[6], E[3], E[2], D[15], D[14], D[13]])
orchestra_foyer = Polygon([X[1], X[2], X[3], D[13], X[5], X[6], D[2], X[13], X[14], C[5], C[4],
C[3], C[2], C[1], X[19]])
# New spawn areas for "Traffic jam puzzle"
finlandia_spawn = Polygon([O[12], O[5], O[13], E[6], E[8], E[10], E[12]])
piazza_3_spawn = Polygon([D[17], E[2], E[3], E[32], E[33], E[36]])
piazza_1_spawn = Polygon([D[12], E[11], O[7], O[6], E[13]])
restaurant_spawn = Polygon([rest1, rest2, E[21], E[25]])
foyer_spawn = Polygon([E[15], C[11], C[12], B[1], E[38], E[37]])
helsinki_spawn = Polygon([C[4], C[6], C[9], C[11], C[15], C[17], B[9]])
orchestra_spawn = Polygon([X[3], X[4], X[5], X[6], X[8]])
exit1 = LineString([D[17], A[1]])
exit2 = LineString([D[8], D[11]])
exit3 = LineString([E[31], O[9]])
exit4 = LineString([O[10], B[6]])
exit5 = LineString([Y[1], X[19]])
exit6 = LineString([X[11], X[12]])
fex = np.array([
[11.936, 3.715],
[12.311, 3.34],
[13.568, 3.064],
[14.23, 2.634],
[15.998, 3.024],
[16.799, 2.954],
[18.288, 4.784],
[18.233, 4.09]])
fex = fex * 10 / 1.5
slopes = np.array([
(fex[1][1] - fex[0][1]) / (fex[1][0] - fex[0][0]),
(fex[3][1] - fex[2][1]) / (fex[3][0] - fex[2][0]),
(fex[5][1] - fex[4][1]) / (fex[5][0] - fex[4][0]),
(fex[7][1] - fex[6][1]) / (fex[7][0] - fex[6][0])
])
gradient_vectors = np.array([
[-1, -slopes[0]],
[-1, -slopes[1]],
[-1, -slopes[2]],
[-1, -slopes[3]]
])
norms = np.hypot([gradient_vectors[0][0], gradient_vectors[1][0], gradient_vectors[2][0],
gradient_vectors[3][0]], [gradient_vectors[0][1], gradient_vectors[1][1],
gradient_vectors[2][1], gradient_vectors[3][1]])
gradient_vectors = np.array([
[slopes[0] / norms[0], -1 / norms[0]],
[slopes[1] / norms[1], -1 / norms[1]],
[slopes[2] / norms[2], -1 / norms[2]],
[slopes[3] / norms[3], 1 / norms[3]]
])
dx = 0.2
fex = np.array([
[11.936 + dx * gradient_vectors[0][0], 3.715 + dx * gradient_vectors[0][1]],
[12.311 + dx * gradient_vectors[0][0], 3.34 + dx * gradient_vectors[0][1]],
[13.568 + dx * gradient_vectors[1][0], 3.064 + dx * gradient_vectors[1][1]],
[14.23 + dx * gradient_vectors[1][0], 2.634 + dx * gradient_vectors[1][1]],
[15.998 + 0.3 * dx * gradient_vectors[2][0], 3.024 + 0.3 * dx * gradient_vectors[2][1]],
[16.799 + 0.3 * dx * gradient_vectors[2][0], 2.954 + 0.3 * dx * gradient_vectors[2][1]],
[18.288 + dx * gradient_vectors[3][0], 4.784 + dx * gradient_vectors[3][1]],
[18.233 + dx * gradient_vectors[3][0], 4.09 + dx * gradient_vectors[3][1]]])
fex = fex * 10 / 1.5
fexit1 = LineString([fex[0], fex[1]])
fexit2 = LineString([fex[2], fex[3]])
fexit3 = LineString([fex[4], fex[5]])
fexit4 = LineString([fex[6], fex[7]])
# fexit1 = LineString([D[12], E[11]])
# fexit2 = LineString([E[10], E[7]])
# fexit3 = LineString([E[6], E[3]])
# fexit4 = LineString([D[15], E[2]])
# Spawns
# Guides can be spawned anywhere (finlandiahall, foyer, helsinkihall, piazza_1, piazza_2, piazza_3, restaurant,
# orchestra_foyer), and followers to the "spawn areas" (finlandia_spawn, piazza_3_spawn, piazza_1_spawn,
# restaurant_spawn, foyer_spawn, helsinki_spawn, orchestra_spawn).
spawns = [
finlandiahall,
foyer,
helsinkihall,
piazza_1,
piazza_2,
piazza_3,
restaurant,
orchestra_foyer,
finlandia_spawn,
piazza_3_spawn,
piazza_1_spawn,
restaurant_spawn,
foyer_spawn,
helsinki_spawn,
orchestra_spawn
]
# Targets (exits)
targets = [exit1, exit3, exit4, exit5, exit6]
#targets = [exit1, exit2, exit3, exit4, exit5, fexit1, fexit2, fexit3, fexit4]
#targets = [exit1, exit2, exit3, exit4, exit5, exit6, fexit1, fexit2, fexit3, fexit4]
#targets = [exit1, exit2, exit3, exit4, exit5, exit6]
self.obstacles = obstacles # obstacles
self.obstacles_finlandia = obstacles_finlandia # obstacles_finlandia
self.targets = targets
self.spawns = spawns
#self.domain_f = self.convex_hull()
#self.domain = self.domain_f.difference(finlandiahall)
self.domain = self.convex_hull()
self.finlandiahall_extended = outer_bubblegum_finlandia # this should be made as small as possible
self.finlandiahall = inner_bubblegum_finlandia
self.helsinkihall = helsinkihall
self.orchestra_foyer = orchestra_foyer
self.piazza_2 = piazza_2
self.piazza_3 = piazza_3
class FinlandiaTalo2ndFloor(MultiAgentSimulation):
agent_type = Enum(
default_value=Circular,
values=(Circular, ThreeCircle))
body_type = Enum(
default_value='adult',
values=('adult',))
def attributes(self, familiar, in_finlandia: bool = False, in_finlandia_extended: bool = False,
has_target: bool = True, is_follower: bool = True):
def wrapper():
target = familiar if has_target else NO_TARGET
orientation = np.random.uniform(-np.pi, np.pi)
d = dict(
target=target,
is_leader=not is_follower,
is_follower=is_follower,
body_type=self.body_type,
orientation=orientation,
velocity=np.zeros(2),
angular_velocity=0.0,
target_direction=np.zeros(2),
target_orientation=orientation,
familiar_exit=familiar,
in_finlandia_extended=in_finlandia_extended,
in_finlandia=in_finlandia,
in_orchestra = False,
in_helsinki = False,
in_piazza_2 = False,
in_piazza_3 = False
)
return d
return wrapper
def attributes_leader(self, fin_ext_iter, fin_iter, target_iter, has_target: bool = True,
is_follower: bool = False):
def wrapper():
target = next(target_iter)
in_finlandia_extended = next(fin_ext_iter)
in_finlandia = next(fin_iter)
orientation = np.random.uniform(-np.pi, np.pi)
d = dict(
target=target,
is_leader=not is_follower,
is_follower=is_follower,
body_type=self.body_type,
orientation=orientation,
velocity=np.zeros(2),
angular_velocity=0.0,
target_direction=np.zeros(2),
target_orientation=orientation,
familiar_exit=4,
in_finlandia_extended=in_finlandia_extended,
in_finlandia=in_finlandia,
in_orchestra = False,
in_helsinki = False,
in_piazza_2 = False,
in_piazza_3 = False)
return d
return wrapper
@default('logic')
def _default_logic(self):
return Reset(self) << \
TargetReached(self) << (
Integrator(self) << (
Fluctuation(self),
Adjusting(self) << (
Navigation(self) << ExitDetection(
self) << LeaderFollower(self),
Orientation(self)),
AgentAgentInteractions(self),
AgentObstacleInteractions(self)))
@default('field')
def _default_field(self):
return FinlandiaTalo2ndFloorField()
@default('agents')
def _default_agents(self):
agents = Agents(agent_type=self.agent_type)
return agents
|
from helpers import *
def main():
tests_specs = [
("Merge sort", 'merge_sort', [10000000, 100]),
("Insertion sort", 'insertion_sort', [100000, 100]),
("Prime sum", 'prime_sum', [20000]),
("Tag", 'tag', [300]),
("String perm", 'perm', ["ABCDEFGHIJ"]),
("Prime count", 'prime_count', [1000000000]),
("Hash table", 'hash_table', [40000, 13])
]
print("Running options test...")
print_separator()
# No options
no_options = do_option_tests(tests_specs, [])
print_separator()
# --nobounds
no_bounds = do_option_tests(tests_specs, ['--nobounds'])
print_separator()
# --nofree
no_free = do_option_tests(tests_specs, ['--nofree'])
print_separator()
# --noref
no_ref = do_option_tests(tests_specs, ['--noref'])
print_separator()
# --nonull
no_null = do_option_tests(tests_specs, ['--nonull'])
print_separator()
# for testing purposes
# no_options = [1, 1, 1, 1, 1]
# no_bounds = [1, 1, 1, 1, 1]
# no_free = [1, 1, 1, 1, 1]
# no_ref = [1, 1, 1, 1, 1]
print(F'{"no options":>29}, {"--nobounds":>11}, {"--nofree":>10}, {"--noref":>10}, {"--nonull":>10}')
for i in range(len(tests_specs)):
print(F'{tests_specs[i][0]:>14}: {(1000*no_options[i]):11.0f}ms {(1000*no_bounds[i]):10.0f}ms {(1000*no_free[i]):9.0f}ms {(1000*no_ref[i]):9.0f}ms {(1000*no_null[i]):9.0f}ms')
print_separator()
if __name__ == "__main__":
main() |
def last(s):
return sorted(s.split(),key=lambda x: x[-1])
'''
Given a string of words (x), you need to return an array of the words,
sorted alphabetically by the final character in each.
If two words have the same last letter, they returned array should show them
in the order they appeared in the given string.
All inputs will be valid.
'''
|
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_excel("../data/data.xlsx", sheetname="fiscal",
index_col=0, dec=',', skiprows=[0, 1])
df = df*(-1)/1000
df["target"] = -139
df['12 months rolling'] = df.iloc[:, [0]].rolling(window=12).sum()
df.dropna(inplace=True)
# charts
def gen_chart(df, title, y_title, date_ini):
""""""
plt.style.use("ggplot")
df_final = df[df.index >= date_ini]
# Choose colors from http://colorbrewer2.org/ under "Export"
fig = plt.figure()
ax = fig.add_subplot(111)
df_final.iloc[:, 2].plot(ax=ax, style="-", color='red', linewidth=2, legend=True)
df_final.iloc[:, 1].plot(ax=ax, style="--", color='orange', linewidth=2, legend=True)
# labels labels
for label in ax.xaxis.get_ticklabels():
label.set_fontsize(14)
for label in ax.yaxis.get_ticklabels():
label.set_fontsize(14)
# title
ax.set_title(title, fontsize=24)
ax.title.set_position([.5,1.03])
ax.set_ylabel(y_title)
ax.set_xlabel('')
#margins
ax.margins(0.0, 0.2)
ax.set_xlim(ax.get_xlim()[0]-5, ax.get_xlim()[1]+ 5)
#legend
ax.legend(loc='lower left', fontsize=16)
# label
fig.tight_layout()
return fig
# fig
date_ini = "2010-01-01"
fig_cli = gen_chart(df, "Primary Surplus", "x Earnings", date_ini)
plt.savefig("./primary.png")
|
from Tree import Tree
from Node import Node
import re
class TreeBuilder:
def __init__(self, data):
self.data = data
self.tree = None
def computeLevel(self, rawNode):
level = 1
for c in rawNode:
if(c == '|'):
level = level + 1
elif(c == '+' or c == '\\'):
break
# fix some special issue
space = re.search(r'\|\s+',rawNode)
if space:
space_count = len(space.group(0))
# print(space_count)
level = level + (space_count - 3) / 3
return level
def build(self):
with open(self.data) as f:
mvn_result = f.read()
nodeList = mvn_result.split('\n')
parent = Node(nodeList[0])
self.tree = Tree(parent)
for rawNode in nodeList[1:]:
level = self.computeLevel(rawNode)
child = Node(rawNode)
while(parent.getLevel() >= level):
parent = parent.getParent()
parent.addChild(child)
parent = child
return self.tree
def main():
dataFile = "dependency.txt"
tree = TreeBuilder(dataFile).build()
print(len(tree.toList()))
# for i in tree.toList():
# print(i.handled_data)
if __name__ == '__main__':
main()
|
# Author: Giuseppe Di Giacomo s263765
# Academic year: 2018/19
from lib.timeControl import TimeControl
from lib.peopleControl import PeopleControl
from lib.roomControl import RoomControl
import time
import requests
import json
# IP of room catalog
catalog_IP = '172.20.10.11'
# port of room catalog
catalog_port = '9090'
# URL of catalog
broker_url = "http://" + catalog_IP + ":" + catalog_port + "/broker"
# the broker IP and port are requested to the room catalog
r = requests.get(broker_url)
print("Broker IP and port obtained from Room Catalog")
obj = json.loads(r.text)
broker_IP = obj["broker"]
broker_port = obj["port"]
# URL to get the interacquisition time: in the room catalog it is in minutes, so it must be multiplied by 60
interacquistion_url = "http://" + catalog_IP + ":" + catalog_port + "/interacquisition"
# request of the interacquisition value
print("Interacquisition time obtained from Room Catalog")
r = requests.get(interacquistion_url )
obj = json.loads(r.text)
# inter-acuisition time is multiplied by 60, since in the room catalog the value is in minutes
interacquistion = obj["interacquisition"] * 60
# Time controller: initialization, start and subscription to the proper topics
time_controller = TimeControl("Time controller", broker_IP, broker_port, catalog_IP, catalog_port)
time_controller.run()
time_controller.myMqttClient.mySubscribe("measure/heat_stat")
time_controller.myMqttClient.mySubscribe("measure/light_stat")
# People controller: initialization, start and subscription to the proper topics
people_controller = PeopleControl("People controller", broker_IP, broker_port, catalog_IP, catalog_port)
people_controller.run()
people_controller.myMqttClient.mySubscribe("trigger/th")
people_controller.myMqttClient.mySubscribe("measure/people/detection")
people_controller.myMqttClient.mySubscribe("system")
# Room controller: initialization, start and subscription to the proper topics
room_controller = RoomControl("Room controller", broker_IP, broker_port, catalog_IP, catalog_port)
room_controller.run()
room_controller.myMqttClient.mySubscribe("trigger/th")
room_controller.myMqttClient.mySubscribe("measure/light_stat")
room_controller.myMqttClient.mySubscribe("measure/temperature")
room_controller.myMqttClient.mySubscribe("measure/humidity")
room_controller.myMqttClient.mySubscribe("measure/people/detection")
room_controller.myMqttClient.mySubscribe("measure/heat_stat")
tmp = 0
# room and people controllers status is set to 1(working) if the the musuem is open
if time_controller.isOpened():
room_controller.setWorking(True)
people_controller.setWorking(True)
# loop
while 1:
# the loop does nothing until synch is set to 0 and start working only if it becomes 1
if people_controller.synch == 1:
# check if the museum switches from closed to open, setting the status of the controllers as working
if time_controller.checkOpening():
room_controller.setWorking(True)
people_controller.setWorking(True)
# check if the museum switches from open to closed: if true it sends a MQTT message to turn off the ligth and
# the heating system if they are on and setting the status of the controllers as not working
elif time_controller.checkClosing():
if time_controller.heatStatus == 1:
time_controller.myMqttClient.myPublish("trigger/heat", '{"msg" : "void"}')
if time_controller.lightStatus == 1:
time_controller.myMqttClient.myPublish("trigger/light", '{"msg" : "void"}')
room_controller.setWorking(False)
people_controller.setWorking(False)
if time_controller.isOpened():
if room_controller.expiredTimeOut():
if room_controller.lightStatus == 1:
room_controller.setLightStatus(0)
room_controller.myMqttClient.myPublish("alert/light_down", '{"msg" : "void"}')
room_controller.myMqttClient.myPublish("trigger/light", '{"msg" : "void"}')
people_controller.updateArray()
if tmp % interacquistion == interacquistion-1:
people_controller.myMqttClient.myPublish("measure/people", '{"msg": %d}' % round(people_controller.getMeanPeople()))
people_controller.clearArray()
tmp += 1
time.sleep(1)
time_controller.end() |
import sqlite3 as lite
import sys
import os
import csv
import urllib
import datetime
f = open('D:/Users/zjy/documents/bikeshare/2015_Q3.csv')
csv_f = csv.reader(f)
next(csv_f,None) #skip the headers
#dic for start_time and from_station_id, key is trip_id
start_day = dict()
start_hour = dict()
from_station_id = dict()
for row in csv_f:
#print row[1]
starttime = datetime.datetime.strptime(row[1],"%m/%d/%Y %H:%M")
day = starttime.strftime("%w") #%w --Weekday as a decimal number [0(Sunday),6].
if day == '0' :
day = '7' ##mark Sunday = 7 instead of 0
hour = starttime.strftime("%H")
#print day
#print hour
start_day[row[0]] = int(day)
start_hour[row[0]] = int(hour)+1 #0-1:1
from_station_id[row[0]] = row[5]
'''
print start_day['13565048'] #Sunday
print start_day['11713543']
print start_hour['11713543']
print from_station_id['11713543']
'''
con = None
## Creates a folder for the database
## Set directory to YOUR computer and folder
directoryForDB = "D:/Users/zjy/documents/DBClass/"
if not os.path.exists(directoryForDB):
os.makedirs(directoryForDB)
directoryForDB = directoryForDB + "bikeshare2015Q3.db"
## If database does not exist, creates items
## If database does exist, opens it
con = lite.connect(directoryForDB)
##### add data table1--starttime and fromstationid
with con:
cur = con.cursor()
cur.execute("DROP TABLE IF EXISTS table1")
cur.execute("CREATE TABLE table1(tripid TEXT, startday INT, starthour INT, fromstationid text)")
for key in start_day:
insertStatement = """INSERT INTO table1(tripid, startday, starthour, fromstationid) VALUES ( '%s','%d','%d','%s')""" % (key,start_day[key],start_hour[key],from_station_id[key])
cur.execute(insertStatement)
## NEEDED, if not, database does not update
con.commit()
##count creat new table2
with con:
cur = con.cursor()
cur.execute("DROP TABLE IF EXISTS table2")
cur.execute("CREATE TABLE table2(day INT,hour INT,value INT, fromstationid text)")
cur.execute("SELECT startday,starthour,count(tripid),fromstationid FROM table1 GROUP BY startday,starthour,fromstationid")
rows = cur.fetchall()
for row in rows:
if row[3]:
insertStatement = """INSERT INTO table2(day, hour, value, fromstationid) VALUES ('%d','%d','%d','%s')""" % (int(row[0]),int(row[1]),int(row[2]),str(row[3]))
cur.execute(insertStatement)
con.commit()
with con:
cur = con.cursor()
cur.execute("SELECT * FROM table2")
with open("D:/Users/zjy/documents/bikeshare/out.csv","wb") as csv_file:
csv_writer = csv.writer(csv_file)
csv_writer.writerow([i[0] for i in cur.description])
csv_writer.writerows(cur) |
import folium
import geoip2.database
from geopy.geocoders import Nominatim
from geopy.distance import geodesic
from django.shortcuts import render, get_object_or_404
from django.views.generic import TemplateView
from .models import Visitor, Measurement
from .forms import MeasurementModelForm
from .utils import get_geo, get_center_coodinates, get_zoom, get_ip_address
# Create your views here.
def calculate_distance_view(request):
#initial Values
distance = None
destination = None
form = MeasurementModelForm(request.POST or None)
geolocator = Nominatim(user_agent='ip_address')
ip, ip_status = get_ip_address(request)
country, city, l_lat, l_lon = get_geo(ip)
location = geolocator.geocode(city)
# location coordinates
pointA = (l_lat, l_lon )
# Initial folium map
m = folium.Map(width=800, height=500,
location=get_center_coodinates(l_lat, l_lon),
zoom_start=1)
# draw visitors
for visitor in Visitor.objects.all():
folium.Marker([visitor.latitud, visitor.longitud], tooltip='click here for more',
popup='hi', icon=folium.Icon(color='purple', icon='user')).add_to(m)
# new visitor
folium.Marker([l_lat, l_lon], tooltip='click here for more',
popup='you', icon=folium.Icon(color='red', icon='user')).add_to(m)
# register visitor
if Visitor.objects.filter(ip=ip, latitud = l_lat, longitud= l_lon).count()==0:
visitor = Visitor.objects.create(
ip = ip,
latitud = l_lat,
longitud= l_lon
)
total_visitors = Visitor.objects.all().count()
if form.is_valid():
instance = form.save(commit=False)
destination_ = form.cleaned_data.get('destination')
destination = geolocator.geocode(destination_)
d_lat = destination.latitude
d_lon = destination.longitude
# destination coordinates
pointB = (d_lat, d_lon)
# distance calculation
distance= round(geodesic(pointA, pointB).km,2)
# folium map modification
m = folium.Map(width=800, height=500,
location= get_center_coodinates(l_lat, l_lon, d_lat, d_lon),
zoom_start=get_zoom(distance)
)
# location Marker
folium.Marker([l_lat, l_lon], tooltip='click here for more',
popup=city['city'], icon=folium.Icon(color='red', icon='user')).add_to(m)
# destination Marker
folium.Marker([d_lat, d_lon], tooltip='click here for more',
popup=destination, icon=folium.Icon(color='purple', icon='heart')).add_to(m)
# draw line
line = folium.PolyLine(locations=[pointA, pointB], weight=5, color='red')
m.add_child(line)
instance.location = location
instance.distance= distance
instance.save()
m = m._repr_html_()
context ={
'distance': distance,
'form': form,
'map': m,
'destination': destination,
'ip': ip,
'ip_status': ip_status,
'total_visitors': total_visitors
}
return render(request, 'base/main.html', context)
|
from abc import ABC, abstractmethod
# Абстрактный класс для дополнения данных
class Autocompleter(ABC):
def __init__(self):
super().__init__()
# Получение автодополнений, где
# con - соединение
# tokens (list) - список лексем
# content (str) - содержимое файла
# line (int) - строка
# position (int) - позиция в строке
# chatId (str) - ID чата
# branchId (str) - ID ветки
@abstractmethod
def getAutocompletions(self, con, tokens, content, line, position, chatId, branchId):
pass
|
fahrenheit=float(input("Enter the temperature in fahrenheit"))
celsius = (fahrenheit - 32) / 1.8
print("Temperature in celcius is",celsius)
|
import os
import csv
csvpath = os.path.join('Resources', 'budget_data.csv')
#establish lists
months = []
profit_losses = []
profit_loss_differential = []
print (csvpath)
# Open and Read the CSV file
with open(csvpath, 'r') as csvfile:
# split the data on commas
csvreader = csv.reader(csvfile, delimiter=',')
header = next(csvreader)
# Total months can be calculated by taking a count of the rows in a list
for row in csvreader:
# capture row[0] as the list
months.append(row[0])
# use length to get the total count of the list months
# capture row[1] as the list
profit_losses.append(int(row[1]))
# use sum to get the net total of the list profit_losses
# need to print length of months at the end.
# print(len(months))
# Need to print the net total at the end.
# print(sum(profit_losses))
# (len(profit_losses))
# looping over the above list
for i in range(1,len(profit_losses)):
# print(i)
# print(profit_losses[i])
# print(profit_losses[i-1])
profit_loss_differential.append(profit_losses[i] - profit_losses[i-1])
Total = sum(profit_loss_differential)
# This is correct. Need to print this at the end.
# print(int(sum(profit_loss_differential)/len(profit_loss_differential)))
# print(profit_loss_differential[0])
# the greatest increase in profits over the period
profit_increase = max(profit_loss_differential)
# print(profit_increase)
# the greatest decrease in profits over the period
profit_decrease = min(profit_loss_differential)
# print(profit_decrease)
# Print Results
print("Financial Analysis")
print("--------------------------")
print(f"Total Months: {len(months)}")
print(f"Total profits: {sum(profit_losses)}")
print(f"Average Change: ${int(sum(profit_loss_differential)/len(profit_loss_differential))}")
print(f"Greatest Increase in Profits: ${max(profit_loss_differential)}")
print(f"Greatest Decrease in Profits: ${min(profit_loss_differential)}")
|
# 取一个list或tuple部分元素
L=['pengrong','super','bilaisheng','chenzhongyi','changjie','lily']
# 笨方法
[L[0],L[1]]
# 切片
L[0:2]
|
# coding=utf-8
from __future__ import unicode_literals
from django.db import models
from django.contrib.gis.db import models
from django.utils.translation import ugettext as _
from userprofiles.models import User
class CustomPhoneNumber(models.Model):
choices_phone_type = (
('M', _('Móvil')),
('W', _('Trabajo')),
('H', _('Casa')),
('P', _('Principal')),
('WF', _('Fax laboral')),
('PF', _('Fax personal')),
('L', _('Localizador')),
('O', _('Otro'))
)
phone_type = models.CharField(verbose_name=_('Tipo'), choices=choices_phone_type, max_length=12)
phone_number = models.CharField(verbose_name=_('Número de teléfono'), max_length=15)
extension = models.CharField(verbose_name=_('Extensión'), blank=True, max_length=5)
user = models.ForeignKey(User)
class Meta:
unique_together = ("phone_type","phone_number", "user")
verbose_name = 'Teléfono'
verbose_name_plural = 'Teléfonos'
class CustomEmail(models.Model):
choices_email_type = (
('H', _('Casa')),
('W', _('Trabajo')),
('O', _('Otro'))
)
email_type = models.CharField(verbose_name=_('Tipo'), choices=choices_email_type, max_length=8)
email = models.EmailField(verbose_name=_('Correo electrónico'), max_length=255, unique=True)
user = models.ForeignKey(User)
class Meta:
unique_together = ('email_type', 'email', 'user')
verbose_name = 'Correo electrónico'
verbose_name_plural = 'Correos electrónicos' |
import os
import numpy as np
import autodisc as ad
from autodisc.representations.static.pytorchnnrepresentation.helper import DatasetHDF5
import torch
from torch.utils.data import DataLoader
from torch.autograd import Variable
from autodisc.gui.jupyter.misc import create_colormap, transform_image_from_colormap
from PIL import Image
# INPUT INFO
experiment_id = 171102
dataset_id = 7
n_max_images = 300
# OUTPUT INFO
output_image_folder = './images_colored/'
if not os.path.exists(output_image_folder):
os.makedirs(output_image_folder)
img_filename_template = output_image_folder + 'pattern_{:06d}_{}'
img_suffix = '.png'
colored = True
colormap = create_colormap(np.array([[255,255,255], [119,255,255],[23,223,252],[0,190,250],[0,158,249],[0,142,249],[81,125,248],[150,109,248],[192,77,247],[232,47,247],[255,9,247],[200,0,84]])/255*8)
# LOAD MODEL
model_path = '../../experiments/experiment_{:06d}/training/models/best_weight_model.pth'.format(experiment_id)
#model_path = '../../prior_data/pretrained_representation/representation_000118/best_weight_model.pth'
#model_path = '../../experiments/experiment_{:06d}/repetition_{:06d}/trained_representation/saved_models/stage_{:06d}_weight_model.pth'.format(experiment_id, repetition_id, stage_id)
print("Loading the trained model ... \n")
if os.path.exists(model_path):
saved_model = torch.load (model_path, map_location='cpu')
model_cls = getattr(ad.representations.static.pytorchnnrepresentation, saved_model['type'])
if 'self' in saved_model['init_params']:
del saved_model['init_params']['self']
model = model_cls (**saved_model['init_params'])
model.load_state_dict(saved_model['state_dict'])
model.eval()
model.use_gpu = False
else:
raise ValueError('The model {!r} does not exist!'.format(model_path))
input_size = model.input_size
# LOAD DATASET
test_filepath = '../../data/data_{:03d}/dataset/dataset.h5'.format(dataset_id)
#test_npz_filepath = '../../../representation_pretrain/data/data_006/valid_dataset.npz'
#test_npz_filepath = '../../experiments/experiment_{:06d}/repetition_{:06d}/trained_representation/stages_summary/stage_{:06d}/valid_dataset.npz'.format(experiment_id, repetition_id, stage_id)
print("Loading the test dataset ... \n")
if os.path.exists(test_filepath):
test_dataset = DatasetHDF5(filepath=test_filepath,
split='test',
img_size = input_size)
test_loader = DataLoader(test_dataset,
batch_size=1,
shuffle=True)
# test_dataset_npz = np.load(test_npz_filepath)
# test_batch_size = 1
# test_dataset = DatasetHDF5(input_size)
# if 'images' in test_dataset_npz:
# test_dataset.update(test_dataset_npz['images'].shape[0], torch.from_numpy(test_dataset_npz['images']).float(), test_dataset_npz['labels'])
# elif 'observations' in test_dataset_npz:
# test_dataset.update(test_dataset_npz['observations'].shape[0], torch.from_numpy(test_dataset_npz['observations']).float(), test_dataset_npz['labels'])
# else:
# raise ValueError('dataset not properly defined')
# test_loader = DataLoader(test_dataset, batch_size=1, shuffle=True)
else:
raise ValueError('The dataset {!r} does not exist!'.format(test_npz_filepath))
# LOOP OVER DATA
print("Testing the images ... \n")
with torch.no_grad():
img_idx = 0
for data in test_loader:
# input
x = Variable(data['image'])
output = model(x)
recon_x = torch.sigmoid(output['recon_x'])
# convert to array
x = x.cpu().data.numpy().reshape((input_size[0], input_size[1]))
recon_x = recon_x.cpu().data.numpy().reshape((input_size[0], input_size[1]))
# convert to image
x_PIL = Image.fromarray(np.uint8(x*255.0))
recon_x_PIL = Image.fromarray(np.uint8(recon_x*255.0))
# convert to color image
if colored:
x_PIL = transform_image_from_colormap(x_PIL, colormap).convert('RGBA')
recon_x_PIL = transform_image_from_colormap(recon_x_PIL, colormap).convert('RGBA')
# save image
x_PIL.save(img_filename_template.format(img_idx, 'original') + img_suffix)
recon_x_PIL.save(img_filename_template.format(img_idx, 'reconstructed') + img_suffix)
img_idx += 1
if img_idx >= n_max_images:
break;
|
num=int(input("enter the number"))
val= num//10
print (val)
|
from os import makedirs
from os.path import join, exists, dirname
import sys
import datetime
import shutil
import csv
def setup_logfile(log_file_dir):
if not exists(log_file_dir):
makedirs(log_file_dir)
log_file_path = join(log_file_dir, datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S") + "_Logfile.txt")
global log_file
log_file = open(log_file_path, "w+")
def read_csv(metadata_csv):
collection_priorities = {'cambridge-mt': 4, 'dsd100': 2, 'MedleyDBs': 3, 'MIR-1K': 7, 'musdb18': 1, 'RockBand-GuitarHero-moggs': 6, 'RockBand-GuitarHero_rb-spreadsheet': 5}
entries = []
duplicate_entries = []
with open(metadata_csv, 'r', encoding='utf-8', newline='') as my_file:
csvreader = csv.reader(my_file, delimiter=';')
next(csvreader)
for line in csvreader:
if line[2] not in entries:
entries.append(line[2])
else:
duplicate_entries.append(line[2])
removed_files = 0
if len(duplicate_entries) > 0:
for duplicate in duplicate_entries:
with open(metadata_csv, 'r', encoding='utf-8', newline='') as my_file:
csvreader = csv.reader(my_file, delimiter=';')
next(csvreader)
duplicates = []
for line in csvreader:
if line[2] == duplicate:
duplicates.append(line)
print(duplicates[0][9] + " - " + duplicates[1][9] + " = " + str(float(duplicates[0][9]) - float(duplicates[1][9])))
priority = -1
file_to_delete = ''
for dupl in duplicates:
if priority == -1 or collection_priorities[dupl[4]] > priority:
priority = collection_priorities[dupl[4]]
file_to_delete = dupl[1]
try:
shutil.rmtree(dirname(file_to_delete))
print("Removed: " + dirname(file_to_delete))
log_file.write("Removed: " + dirname(file_to_delete) + "\n")
log_file.flush()
removed_files += 1
except Exception as inst:
print("Error: " + str(type(inst)) + "could not remove " + dirname(file_to_delete))
log_file.write("Error: " + str(type(inst)) + "could not remove " + dirname(file_to_delete) + "\n")
log_file.flush()
else:
print("No repetitions")
log_file.write("Totaly removed folders: " + str(removed_files) + "\n")
print("Totaly removed folders: " + str(removed_files))
def init():
# Initialize logfile
setup_logfile("./logfiles")
if __name__ == '__main__':
maxCopy = 3
override = True
unmix_server = "//192.168.1.29/unmix-server"
print('Argument List:', str(sys.argv))
if sys.argv.__len__() == 2:
unmix_server = sys.argv[1]
metadata_csv = unmix_server + "/3_filter/metadata_overview.csv"
init()
try:
read_csv(metadata_csv)
finally:
log_file.close()
print('Finished converting files')
|
from django.conf.urls import patterns, url
from competition import views
urlpatterns = patterns('',
url(r'^category/$', views.category, name="category"),
url(r'^$', views.competition_home, name="competition_home"),
url(r'^info/$', views.competition_info, name="competition_info"),
url(r'^sponsors/$', views.competition_sponsors, name="competition_sponsors"),
url(r'^results/$', views.competition_results, name="competition_results"),
url(r'^judge/register/$', views.judge_register, name="judge_register"),
url(r'^judge/register/confirm/', views.judge_confirm, name="judge_confirm"),
url(r'^register/$', views.register, name="register"),
url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'competition_login.html'}, name="login"),
url(r'^login/password/reset/$', 'django.contrib.auth.views.password_reset', {'post_reset_redirect' : '/competition/login/password/reset/done/'}, name="password_reset"),
url(r'^login/password/reset/done/$', 'django.contrib.auth.views.password_reset_done'),
url(r'^login/password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', {'post_reset_redirect' : '/competition/login/password/done/'}),
url(r'^login/password/done/$', 'django.contrib.auth.views.password_reset_complete'),
url(r'^login/profile/$', views.login_result, name="brewer_profile"),
url(r'^login/entry/$', views.add_entry, name="add_entry"),
url(r'^login/address/$', views.address_change, name="address_change"),
url(r'^login/entry/update/(?P<e_pk>\d+)', views.entry_update, name="entry_update"),
url(r'^login/entry/remove/(?P<e_pk>\d+)', views.entry_remove, name="entry_remove"),
url(r'^login/print/(?P<e_pk>\d+)', views.print_label, name="print_label"),
url(r'^officertools/$', views.ot_home, name="ot_home"),
url(r'^officertools/entries/$', views.ot_entries, name="ot_entries"),
url(r'^officertools/brewers/$', views.ot_brewers, name="ot_brewers"),
url(r'^officertools/categories/$', views.ot_categories, name="ot_categories"),
url(r'^officertools/judges/$', views.ot_judges, name="ot_judges"),
url(r'^officertools/tables/$', views.ot_tables, name="ot_tables"),
url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '../login/'}, name="logout"),
url(r'^locations/$', views.competition_locations, name="competition_locations"),
)
|
#challenge number 2: Even Fibonnachi Numbers
Total = 0
varOld = 1
varNew = 2
buffer = 0
def checkEven(Total, arg1):
number = arg1 % 2
if number == 0:
return arg1
else:
return 0
while varNew < 4000000:
Total += checkEven(Total, varNew)
buffer = varNew + varOld
varOld = varNew
varNew = buffer
buffer = 0
print(varNew)
print("The Total is " + str(Total))
|
#!/usr/bin/env python3
from random import shuffle as y
from random import randint as r
from time import sleep as o
from base64 import b64decode as u
t = print
g = range
n = input
l = len
f = "WVRKMGVtVXpVbTloV0UxNFl6STFkbVJIV25OWlYyUm1XVmRLYWxwSFZtMU5SRVY1VFhwUk1VNXFZelJQV0RBOQ=="
m = [x for x in g(l(f))]
def a(d, e):
if d[0x00:0b100:0o1] == e[0:0x4:0b1]:
if d[-1::] == e[-1::0o132]:
if e[0x04:0b10010:0o4] == d[4:4+2*4:2]:
if e[9:---3:0x06] == d[5:0x0C:2]:
if d[0o14:-1:1] == e[-2:0:-0b111]:
t("Success!")
return None
t("Nope!")
def b(d):
y(d)
return d
def c():
for i in g(2**3**2**1**1**3**8):
t(".", end="", flush=True)
if i % 2**2**2 == 0x0000000F:
t()
o(1)
def d(dd):
a(dd, u(u(u(f))).decode())
exit(0)
if __name__ == "__main__":
k = n("> ")
c()
d(k)
|
# -*- coding: utf-8 -*-
from typing import List
class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
index = {}
for i, num in enumerate(sorted(nums)):
if num not in index:
index[num] = i
return [index[num] for num in nums]
if __name__ == "__main__":
solution = Solution()
assert [4, 0, 1, 1, 3] == solution.smallerNumbersThanCurrent([8, 1, 2, 2, 3])
assert [2, 1, 0, 3] == solution.smallerNumbersThanCurrent([6, 5, 4, 8])
assert [0, 0, 0, 0] == solution.smallerNumbersThanCurrent([7, 7, 7, 7])
|
import numpy as np
import sys
import time
from multiprocessing import Process, Queue
from . import plotter_base
from plotter.utils.helper import overrides
import importlib
try:
motorlib_loader = importlib.util.find_spec('RPi.GPIO')
except:
motorlib_loader = None
if motorlib_loader is None:
print("RPi.GPIO not found. HardwarePlotter not available.")
else:
class HardwarePlotter(plotter_base.BasePlotter):
"""Hardware plotter. The actual implementation which controls the steppers and the servo.
This implementation uses the 3 interconnected processes in order to execute all required
movements in a smooth way:
- The main process is used to push gcode commands into the queue. (default behaviour of baseclass)
- The plotter process parses a command, uses the Bresenham line algorithm to break down the move
into seperate short movements. (We can't do a simple linear interpolation due to the belt coordinate system).
Linear interpolation is used for the short segments (<1 mm) after applying the bresenham algorithm.
- These short segments are executed by parallel lienar interpolation of cord/belt lengths in the MotorControl process.
This process actually controls the stepper motors and the servo.
"""
def __init__(self, config, initial_lengh, physicsEngineClass):
self.servo_pos_up = config["servo_pos_up"]
self.servo_pos_down = config["servo_pos_down"]
plotter_base.BasePlotter.__init__(
self, config, initial_lengh, physicsEngineClass)
@overrides(plotter_base.BasePlotter)
def penUp(self):
self.mcq.queuePenPos(self.servo_pos_up)
@overrides(plotter_base.BasePlotter)
def penDown(self):
self.mcq.queuePenPos(self.servo_pos_down)
@overrides(plotter_base.BasePlotter)
def moveToPos(self, targetPos):
# Bresenham line algorithm
# This algorithm is used to walk along a straight line on a
# 2D plane in order to move from A(x,y) to B(x,y).
# self.calib.resolution indicates the step size for this walking procedure.
d = np.abs(targetPos - self.currPos)/self.calib.resolution
d *= [1, -1]
s = np.ones((2,))
for i in range(2):
if self.currPos[i] >= targetPos[i]:
s[i] = -1
err = d[0] + d[1]
e2 = 0
while(True):
newCordLength = self.physicsEngine.point2CordLength(
self.currPos)
deltaCordLength = newCordLength - self.currCordLength
# Round steps to integer
deltaCordLength = (
deltaCordLength*self.calib.stepsPerMM).astype(int)
# Used rounded length as new lenth
self.currCordLength = self.currCordLength + \
deltaCordLength/self.calib.stepsPerMM
self.mcq.queueStepperMove(deltaCordLength, self.speed)
# Are we close to our target point ?
if(np.linalg.norm(targetPos - self.currPos) < self.calib.resolution):
break
e2 = 2*err
if e2 > d[1]:
err += d[1]
self.currPos[0] += s[0]*self.calib.resolution
if e2 < d[0]:
err += d[0]
self.currPos[1] += s[1]*self.calib.resolution
@overrides(plotter_base.BasePlotter)
def processQueueAsync(self):
"""Override the default behavior because we need to
launch an additional process for the MotorCtrl process.
This process has to be connected to the plotter process."""
print("Plotter process started")
self.mcq = MotorCtrlQueue(self.config)
self.mcq.start()
i = 0
item = self.workerQueue.get()
start = time.time()
while(item is not None):
self.executeCmd(item)
i += 1
if i % 1000 == 0:
print("Processed %d commands. %f ms per cmd. " %
(i, (time.time() - start)*1000/i))
item = self.workerQueue.get()
# Wait for stepper queue
self.mcq.join()
print("Plotter process stopped")
exit(0)
def runMovementExecutor(ctrlQueue):
"""Callback function for the motor control process."""
ctrlQueue.processMovementAsync()
class MotorCtrlQueue():
def __init__(self, config):
self.workerProcessSteps = Process(
target=runMovementExecutor, args=(self,))
self.workerQueueSteps = Queue(100)
self.config = config
def start(self):
self.workerProcessSteps.start()
def join(self):
self.workerQueueSteps.put(None)
self.workerQueueSteps.close()
self.workerQueueSteps.join_thread()
self.workerProcessSteps.join()
def processMovementAsync(self):
"""Converts the queued movements from mm to actual steps and executes the movements."""
print("Movement process started")
sys.stdout.flush()
from . import motorctrl
motorctrl.initMotorCtrl()
# GPIO Pins
dir_pins = self.config["dir_pins"]
step_pins = self.config["step_pins"]
res_pins = self.config["res_pins"]
micro_stepping = self.config["micro_stepping"]
self.steppers = motorctrl.StepperCtrl(
dir_pins, step_pins, [res_pins for i in range(2)], micro_stepping=micro_stepping)
# GPIO Pins
servo_pin = self.config["servo_pin"]
self.servo_pos_up = self.config["servo_pos_up"]
self.servo_pos_down = self.config["servo_pos_down"]
self.servo = motorctrl.ServoCtrl(
servo_pin, init_duty_cycle=self.servo_pos_up)
self.steppers.initGPIO()
self.servo.initGPIO()
print("Waiting for movements")
item = self.workerQueueSteps.get()
start = time.time()
while(item is not None):
id = item[0]
# Move stepper
if id == 0:
#print("Execute steps %d %d" % (item[1][0], item[1][1]))
unsigned_steps = [int(np.abs(i)) for i in item[1]]
dirs = [int(item[1][0] > 0), int(item[1][1] < 0)]
if self.config["invert_step_dir"][0]:
dirs[0] = (~dirs[0] & 0x01)
if self.config["invert_step_dir"][1]:
dirs[1] = (~dirs[1] & 0x01)
self.steppers.doSteps(
dirs, unsigned_steps, 1/item[2]*micro_stepping)
# Move pen
elif id == 1:
#print("Execute pen move to %d"% (param))
self.servo.moveTo(item[1])
else:
print("Unknown value")
exit(1)
item = self.workerQueueSteps.get()
motorctrl.cleanup()
print("Movement process stopped")
exit(0)
def queuePenPos(self, pos):
self.workerQueueSteps.put((1, pos))
def queueStepperMove(self, move, speed):
self.workerQueueSteps.put((0, move, speed))
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2020 the HERA Project
# Licensed under the MIT License
"""Command-line drive script for hera_cal.xtalk_filter with baseline parallelization. Only performs DAYENU Filtering"""
from hera_cal import xtalk_filter
import sys
import hera_cal.io as io
parser = xtalk_filter.xtalk_filter_argparser(mode='dayenu', multifile=True)
a = parser.parse_args()
# set kwargs
filter_kwargs = {'tol': a.tol, 'max_frate_coeffs': a.max_frate_coeffs}
baseline_list = io.baselines_from_filelist_position(filename=a.infilename, filelist=a.datafilelist)
# modify output file name to include index.
outfilename = a.res_outfilename
spw_range = a.spw_range
# allow none string to be passed through to a.calfile
if isinstance(a.calfile_list, str) and a.calfile_list.lower() == 'none':
a.calfile_list = None
# Run Xtalk Filter
xtalk_filter.load_xtalk_filter_and_write_baseline_list(a.datafilelist, calfile_list=a.calfilelist, round_up_bllens=True,
baseline_list=baseline_list, spw_range=a.spw_range,
cache_dir=a.cache_dir, res_outfilename=outfilename,
clobber=a.clobber, write_cache=a.write_cache,
read_cache=a.read_cache, mode='dayenu',
factorize_flags=a.factorize_flags, time_thresh=a.time_thresh,
trim_edges=a.trim_edges, max_contiguous_edge_flags=a.max_contiguous_edge_flags,
add_to_history=' '.join(sys.argv), **filter_kwargs)
|
"""
threading.local #可以保存全局变量,但是只针对当前线程
"""
import threading,time
a = threading.local()
def working():
a.x = 0
for x in range(20):
time.sleep(0.01)
a.x += 1
print(threading.current_thread(),a.x)
for i in range(10):
threading.Thread(target = working).start() |
import os, platform
from PyQt5 import QtWidgets, uic, QtCore, QtGui, Qt
from functools import partial
import GlobalSettings
import gzip
import traceback
import math
#global logger
logger = GlobalSettings.logger
class OffTarget(QtWidgets.QMainWindow):
def __init__(self):
try:
super(OffTarget, self).__init__()
uic.loadUi(GlobalSettings.appdir + 'off_target.ui', self)
self.setWindowIcon(Qt.QIcon(GlobalSettings.appdir + "cas9image.ico"))
self.setWindowTitle("Off-Target Analysis")
self.progressBar.setMinimum(0)
self.progressBar.setMaximum(100)
self.progressBar.setValue(0)
self.Run.clicked.connect(self.run_analysis)
# self.tolerancehorizontalSlider.valueChanged.connect(self.tol_change)
# self.tolerancehorizontalSlider.setMaximum(100)
# self.tolerancehorizontalSlider.setMinimum(0)
self.tolerance = 0.0
self.cancelButton.clicked.connect(self.exit)
self.fill_data_dropdown()
self.perc = False
self.bool_temp = False
self.running = False
self.process = QtCore.QProcess()
# make sure to intialize the class variable in init. That way elsewhere and other classes can access it
self.output_path = ''
groupbox_style = """
QGroupBox:title{subcontrol-origin: margin;
left: 10px;
padding: 0 5px 0 5px;}
QGroupBox#Step1{border: 2px solid rgb(111,181,110);
border-radius: 9px;
font: bold 14pt 'Arial';
margin-top: 10px;}"""
self.Step1.setStyleSheet(groupbox_style)
self.Step2.setStyleSheet(groupbox_style.replace("Step1", "Step2"))
self.Step3.setStyleSheet(groupbox_style.replace("Step1", "Step3"))
#scale UI
self.scaleUI()
except Exception as e:
logger.critical("Error initializing OffTarget class.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#scale UI based on current screen
def scaleUI(self):
try:
self.repaint()
QtWidgets.QApplication.processEvents()
screen = self.screen()
dpi = screen.physicalDotsPerInch()
width = screen.geometry().width()
height = screen.geometry().height()
# font scaling
fontSize = 12
self.fontSize = fontSize
self.centralWidget().setStyleSheet("font: " + str(fontSize) + "pt 'Arial';")
# CASPER header scaling
fontSize = 20
self.title.setStyleSheet("font: bold " + str(fontSize) + "pt 'Arial';")
self.adjustSize()
currentWidth = self.size().width()
currentHeight = self.size().height()
# window scaling
# 1920x1080 => 850x750
scaledWidth = int((width * 400) / 1920)
scaledHeight = int((height * 450) / 1080)
if scaledHeight < currentHeight:
scaledHeight = currentHeight
if scaledWidth < currentWidth:
scaledWidth = currentWidth
screen = QtWidgets.QApplication.desktop().screenNumber(QtWidgets.QApplication.desktop().cursor().pos())
centerPoint = QtWidgets.QApplication.desktop().screenGeometry(screen).center()
x = centerPoint.x()
y = centerPoint.y()
x = x - (math.ceil(scaledWidth / 2))
y = y - (math.ceil(scaledHeight / 2))
self.setGeometry(x, y, scaledWidth, scaledHeight)
self.repaint()
QtWidgets.QApplication.processEvents()
except Exception as e:
logger.critical("Error in scaleUI() in Off-Target.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#center UI on current screen
def centerUI(self):
try:
self.repaint()
QtWidgets.QApplication.processEvents()
# center window on current screen
width = self.width()
height = self.height()
screen = QtWidgets.QApplication.desktop().screenNumber(QtWidgets.QApplication.desktop().cursor().pos())
centerPoint = QtWidgets.QApplication.desktop().screenGeometry(screen).center()
x = centerPoint.x()
y = centerPoint.y()
x = x - (math.ceil(width / 2))
y = y - (math.ceil(height / 2))
self.setGeometry(x, y, width, height)
self.repaint()
QtWidgets.QApplication.processEvents()
except Exception as e:
logger.critical("Error in centerUI() in Off-Target.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#copied from MT to fill in the chromo and endo dropdowns based on CSPR files user provided at the startup
def fill_data_dropdown(self):
try:
try:
self.EndocomboBox.diconnect()
except:
pass
try:
self.OrgcomboBox.diconnect()
except:
pass
self.OrgcomboBox.clear()
self.EndocomboBox.clear()
self.mismatchcomboBox.clear()
self.organisms_to_files = {}
self.organisms_to_endos = {}
#fill in chromosome and endo dropdowns
onlyfiles = [f for f in os.listdir(GlobalSettings.CSPR_DB) if os.path.isfile(os.path.join(GlobalSettings.CSPR_DB , f))]
self.orgsandendos = {}
self.shortName = {}
for file in onlyfiles:
if file.find('.cspr') != -1:
newname = file[0:-4]
endo = newname[newname.rfind("_") + 1:-1]
hold = open(file, 'r')
buf = (hold.readline())
hold.close()
buf = str(buf)
buf = buf.strip()
species = buf.replace("GENOME: ", "")
if species in self.organisms_to_files:
self.organisms_to_files[species][endo] = [file, file.replace(".cspr", "_repeats.db")]
else:
self.organisms_to_files[species] = {}
self.organisms_to_files[species][endo] = [file, file.replace(".cspr", "_repeats.db")]
if species in self.organisms_to_endos:
self.organisms_to_endos[species].append(endo)
else:
self.organisms_to_endos[species] = [endo]
if self.OrgcomboBox.findText(species) == -1:
self.OrgcomboBox.addItem(species)
# fill in endos dropdown based on current organism
endos = self.organisms_to_endos[str(self.OrgcomboBox.currentText())]
self.EndocomboBox.addItems(endos)
self.OrgcomboBox.currentIndexChanged.connect(self.update_endos)
self.EndocomboBox.currentIndexChanged.connect(self.change_endos)
# update file names for current org/endo combo
self.cspr_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][endos[0]][0]
self.db_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][endos[0]][1]
#fill in Max Mismatch dropdown
mismatch_list = ['1','2','3','4','5','6','7','8','9','10']
self.mismatchcomboBox.addItems(mismatch_list)
self.mismatchcomboBox.setCurrentIndex(3) ### Max number of mismatches is 4 by default
except Exception as e:
logger.critical("Error in fill_data_dropdown() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
def change_endos(self):
try:
#update file names based on current org/endo combo
self.cspr_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][str(self.EndocomboBox.currentText())][0]
self.db_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][str(self.EndocomboBox.currentText())][1]
except Exception as e:
logger.critical("Error in change_endos() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
def update_endos(self):
try:
#try to disconnect index changed signal on endo dropdown if there is one
try:
self.EndocomboBox.currentIndexChanged.disconnect()
except:
pass
#clear endo dropdown and fill in with endos relative to the current organism
self.EndocomboBox.clear()
endos = self.organisms_to_endos[str(self.OrgcomboBox.currentText())]
self.EndocomboBox.addItems(endos)
self.cspr_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][endos[0]][0]
self.db_file = self.organisms_to_files[str(self.OrgcomboBox.currentText())][endos[0]][1]
#reconnect index changed signal on endo dropdown
self.EndocomboBox.currentIndexChanged.connect(self.change_endos)
except Exception as e:
logger.critical("Error in update_endos() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#tolerance slider / entry box. Allows for slider to update, or the user to input in text box
# def tol_change(self):
# try:
# if(self.tolerance == float(self.tolerancelineEdit.text())):
# self.tolerance = self.tolerancehorizontalSlider.value() / 100 * 0.5
# self.tolerance = round(self.tolerance, 3)
# self.tolerancelineEdit.setText(str(self.tolerance))
# else:
# self.tolerance = float(self.tolerancelineEdit.text())
# self.tolerance = round(self.tolerance, 3)
# self.tolerancehorizontalSlider.setValue(round(self.tolerance/0.5 * 100))
# except Exception as e:
# logger.critical("Error in tol_change() in OffTarget.")
# logger.critical(e)
# logger.critical(traceback.format_exc())
# exit(-1)
#run button linked to run_analysis, which is linked to the run button
def run_command(self):
try:
#get tolerance value
self.tolerance = self.toleranceSpinBox.value()
#reset bools for new command to run
self.perc = False
self.bool_temp = False
self.running = False
if (self.AVG.isChecked()):
avg_output = r'TRUE'
detailed_output = r' FALSE '
else:
avg_output = r'FALSE'
detailed_output = r' TRUE '
#setup arguments for C++ .exe
app_path = GlobalSettings.appdir.replace('\\','/')
if platform.system() == 'Windows':
exe_path = app_path + r'OffTargetFolder/OT_Win.exe'
elif platform.system() == 'Linux':
exe_path = app_path + r'OffTargetFolder/OT_Lin'
else:
exe_path = app_path + r'OffTargetFolder/OT_Mac'
exe_path = '"' + exe_path + '"'
data_path = ' "' + app_path + 'OffTargetFolder/temp.txt' + '"' ##
cspr_path = ' "' + GlobalSettings.CSPR_DB + '/' + self.cspr_file + '"'
db_path = ' "' + GlobalSettings.CSPR_DB + '/' + self.db_file + '"'
self.output_path = ' "' + GlobalSettings.CSPR_DB + '/' + self.FileName.text() + '"'
filename = self.output_path
filename = filename[:len(filename) - 1]
filename = filename[1:]
filename = filename.replace('"', '')
exists = os.path.isfile(filename)
CASPER_info_path = r' "' + app_path + 'CASPERinfo' + '" '
num_of_mismathes = int(self.mismatchcomboBox.currentText())
tolerance = self.tolerance
endo = ' "' + self.EndocomboBox.currentText() + '"'
hsu = ' "' + GlobalSettings.mainWindow.Results.endo_data[self.EndocomboBox.currentText()][2] + '"'
#create command string
cmd = exe_path + data_path + endo + cspr_path + db_path + self.output_path + CASPER_info_path + str(num_of_mismathes) + ' ' + str(tolerance) + detailed_output + avg_output + hsu
if platform.system() == 'Windows':
cmd = cmd.replace('/', '\\')
#used to know when the process is done
def finished():
self.running = False
self.progressBar.setValue(100)
#used to know when data is ready to read from stdout
def dataReady():
#filter the data from stdout, bools used to know when the .exe starts outputting the progress
#percentages to be able to type cast them as floats and update the progress bar. Also, must
#split the input read based on '\n\ characters since the stdout read can read multiple lines at
#once and is all read in as raw bytes
line = str(self.process.readAllStandardOutput())
line = line[2:]
line = line[:len(line)-1]
if platform.system() == 'Windows':
for lines in filter(None, line.split(r'\r\n')):
if line.find("Parsing Input Arguments") != -1:
self.progressBar.setValue(10)
elif line.find("Loading data for algorithm") != -1:
self.progressBar.setValue(25)
elif line.find("Running OffTarget Analysis") != -1:
self.progressBar.setValue(50)
else:
for lines in filter(None, line.split(r'\n')):
if lines.find("Parsing Input Arguments") != -1:
self.progressBar.setValue(10)
elif lines.find("Loading data for algorithm") != -1:
self.progressBar.setValue(25)
elif lines.find("Running OffTarget Analysis") != -1:
self.progressBar.setValue(50)
#connect QProcess to the dataReady func, and finished func, reset progressBar only if the outputfile name
#given does not already exist
if(exists == False):
self.process.readyReadStandardOutput.connect(partial(dataReady))
self.process.readyReadStandardError.connect(partial(dataReady))
self.progressBar.setValue(1)
QtCore.QTimer.singleShot(100, partial(self.process.start, cmd))
self.process.finished.connect(finished)
else: #error message about file already being created
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Error")
msgBox.setText("Output file already exists. Please choose a new output file name.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Ok)
msgBox.exec()
except Exception as e:
logger.critical("Error in run_command() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#linked to run button
def run_analysis(self):
try:
#make sure an analysis isn't already running before starting
if(self.running == False):
self.running = True
self.run_command()
except Exception as e:
logger.critical("Error in run_analysis() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#exit linked to user clicking cancel, resets bools, and kills process if one was running
def exit(self):
try:
self.perc = False
self.bool_temp = False
self.running = False
self.process.kill()
self.hide()
except Exception as e:
logger.critical("Error in exit() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
#closeEvent linked to user pressing the x in the top right of windows, resets bools, and
#kills process if there was one running
def closeEvent(self, event):
try:
self.process.kill()
self.perc = False
self.bool_temp = False
self.running = False
event.accept()
except Exception as e:
logger.critical("Error in closeEvent() in OffTarget.")
logger.critical(e)
logger.critical(traceback.format_exc())
msgBox = QtWidgets.QMessageBox()
msgBox.setStyleSheet("font: " + str(self.fontSize) + "pt 'Arial'")
msgBox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
msgBox.setWindowTitle("Fatal Error")
msgBox.setText("Fatal Error:\n"+str(e)+ "\n\nFor more information on this error, look at CASPER.log in the application folder.")
msgBox.addButton(QtWidgets.QMessageBox.StandardButton.Close)
msgBox.exec()
exit(-1)
|
import tornado
from tornado.options import define, options
import json
import logging
import urllib
import urllib2
#import settings
class Pay( object ):
def __init__( self, amount, sender, receiver, return_url, cancel_url, remote_address, secondary_receiver=None, ipn_url=None, shipping=False ):
self.headers = {
'X-PAYPAL-SECURITY-USERID': options.SANDBOX_API_USER_NAME,
'X-PAYPAL-SECURITY-PASSWORD': options.SANDBOX_API_PASSWORD,
'X-PAYPAL-SECURITY-SIGNATURE': options.SANDBOX_API_SIGNATURE,
'X-PAYPAL-REQUEST-DATA-FORMAT': 'JSON',
'X-PAYPAL-RESPONSE-DATA-FORMAT': 'JSON',
'X-PAYPAL-APPLICATION-ID': options.SANDBOX_APPLICATION_ID,
'X-PAYPAL-DEVICE-IPADDRESS': '127.0.0.1',
}
data = {
'senderEmail': sender,
'currencyCode': 'USD',
'returnUrl': return_url,
'cancelUrl': cancel_url,
'requestEnvelope': { 'errorLanguage': 'en_US' },
}
if shipping:
data['actionType'] = 'CREATE'
else:
data['actionType'] = 'PAY'
if secondary_receiver == None: # simple payment
data['receiverList'] = { 'receiver': [ { 'email': receiver, 'amount': '%f' % amount } ] }
else: # chained
commission = amount * options.PAYPAL_COMMISSION
data['receiverList'] = { 'receiver': [
{ 'email': receiver, 'amount': '%0.2f' % amount, 'primary': 'true' },
{ 'email': secondary_receiver, 'amount': '%0.2f' % ( amount - commission ), 'primary': 'false' },
]
}
if ipn_url != None:
data['ipnNotificationUrl'] = ipn_url
self.raw_request = json.dumps(data)
#request = urllib2.Request( "%s%s" % ( settings.PAYPAL_ENDPOINT, "Pay" ), data=self.raw_request, headers=headers )
#self.raw_response = urllib2.urlopen( request ).read()
#url_test = "%s%s" % ( options.SANDBOX_ENDPOINT, "Pay" )
#print url_test
def makepayment(self):
self.raw_response = url_request( "%s%s" % ( options.SANDBOX_ENDPOINT, "Pay" ), data=self.raw_request, headers=self.headers ).content()
logging.debug( "response was: %s" % self.raw_response )
return json.loads( self.raw_response )
class url_request( object ):
'''wrapper for urlfetch'''
response = None
def __init__( self, url, data=None, headers={} ):
# urlfetch - validated
http_client = tornado.httpclient.HTTPClient()
try:
self.response = http_client.fetch(url, body=data, headers=headers, method="POST", validate_cert=True )
print self.response.body
#return self.response.body
except tornado.httpclient.HTTPError, e:
print "Error:", e
#self.response = ss.fetch( url, payload=data, headers=headers, method=urlfetch.POST, validate_certificate=True )
# urllib - not validated
#request = urllib2.Request(url, data=data, headers=headers)
#self.response = urllib2.urlopen( https_request )
def content( self ):
return self.response.body
def code( self ):
return self.response.status_code
class requestbuilder(object):
def __init__(self, data):
self.body = ''
for key in data:
self.body += str(key)+'='+str(data[key])+'&'
self.body = self.body.replace('','')[:-1]
print self.body
def content(self):
return self.body |
# author: Yixuan Duan
import pandas as pd
class DataManager:
def __init__(self, file_path):
self._data = pd.read_csv(file_path)
self._back_up = self._data.copy()
def load_dataframe(self, df):
self._data = df
def group_sales_by(self, column_name):
try:
self._data = self._data.groupby(column_name, as_index=False).sum()
except KeyError:
print(f'Column \'{column_name}\' does not exsist')
return
for c in self._data.columns:
if '_Sales' in c or c in column_name:
pass
else:
del self._data[c]
def filter_by_list(self, column_name, filter_list):
try:
self._data = self._data.loc[self._data[column_name].isin(filter_list), :]
except KeyError:
print(f'Column \'{column_name}\' does not exsist')
def filter_by_range(self, column_name, min_val, max_val, include_max=True):
try:
if include_max:
self._data = self._data.loc[(self._data[column_name] >= min_val) & (self._data[column_name] <= max_val), :]
else:
self._data = self._data.loc[(self._data[column_name] >= min_val) & (self._data[column_name] < max_val), :]
except KeyError:
print(f'Column \'{column_name}\' does not exsist')
def sort(self, column_name, ascending=True):
try:
self._data = self._data.sort_values(by=column_name, ascending=ascending)
except KeyError:
print(f'Column \'{column_name}\' does not exsist')
def reset_data(self):
self._data = self._back_up
def get_data(self):
return self._data
@property
def data(self):
return self._data
@property
def column_names(self):
return list(self._data.columns) |
import datetime
import re
from transliterate import translit
from django.db import models
from django.utils import timezone
from authentication.models import CustomUser
class BaseModel(models.Model):
objects = models.Manager()
class Meta:
abstract = True
class Genre(BaseModel):
name = models.CharField(max_length=63, verbose_name='название')
slug = models.CharField(max_length=255, verbose_name='Ссылка', null=True, blank=True)
class Meta:
verbose_name = 'Жанр'
verbose_name_plural = 'Жанры'
ordering = ['name']
def __str__(self):
return self.name
def save(self, *args, **kwargs):
if not self.slug:
self.slug = re.sub(r'[^a-z0-9_]', '', translit(str(self.name), 'ru', reversed=True)
.replace(' ', '_').lower()).strip('_')
super(Genre, self).save(*args, **kwargs)
class Actor(BaseModel):
name = models.CharField(max_length=255, verbose_name='полное имя')
photo = models.ImageField(verbose_name='фото', null=True, blank=True)
class Meta:
verbose_name = 'Актер'
verbose_name_plural = 'Актеры'
def __str__(self):
return f'{self.pk}: {self.name}'
class Director(BaseModel):
name = models.CharField(max_length=255, verbose_name='Полное имя')
slug = models.CharField(max_length=255, verbose_name='Ссылка', null=True, blank=True)
photo = models.ImageField(verbose_name='фото', null=True, blank=True)
class Meta:
verbose_name = 'Режиссер'
verbose_name_plural = 'Режиссеры'
ordering = ['name']
def __str__(self):
return self.name
def save(self, *args, **kwargs):
if not self.slug:
self.slug = re.sub(r'[^a-z0-9_]', '', translit(str(self.name), 'ru', reversed=True)
.replace(' ', '_').lower()).strip('_')
super(Director, self).save(*args, **kwargs)
class Movie(BaseModel):
title = models.CharField(max_length=255, verbose_name='заголовок')
slug = models.CharField(max_length=255, verbose_name='Ссылка', null=True, blank=True)
description = models.TextField(verbose_name='Описание')
short_description = models.TextField(default='', verbose_name='Краткое описание')
serial = models.BooleanField(default=False)
posterUrl = models.URLField(verbose_name='Постер', null=True, blank=True)
year = models.IntegerField(verbose_name='Год выхода', default=2021)
country = models.CharField(max_length=63, verbose_name='Страна производства', null=True, blank=True)
genres = models.ManyToManyField(Genre, verbose_name='Жанры')
actors = models.ManyToManyField(Actor, verbose_name='Актеры')
trailer = models.URLField(verbose_name='Ссылка на трейлер', null=True, blank=True)
age = models.IntegerField(default=0, verbose_name='Возраст')
director = models.ForeignKey(Director, verbose_name='Режиссер', on_delete=models.SET_NULL, null=True, blank=True)
class Meta:
verbose_name = 'фильм'
verbose_name_plural = 'фильмы'
def __str__(self):
return self.title
def save(self, *args, **kwargs):
if not self.slug:
self.slug = re.sub(r'[^a-z0-9_]', '', translit(str(self.title), 'ru', reversed=True)
.replace(' ', '_').lower()).strip('_')
super(Movie, self).save(*args, **kwargs)
class Service(BaseModel):
name = models.CharField(max_length=63, verbose_name='Название')
logo = models.ImageField(verbose_name='Лого', null=True, blank=True)
class Meta:
verbose_name = 'Сервис'
verbose_name_plural = 'Сервисы'
ordering = ['name']
def __str__(self):
return self.name
class UseService(BaseModel):
movie = models.ForeignKey(Movie, on_delete=models.CASCADE, verbose_name='Фильм')
service = models.ForeignKey(Service, on_delete=models.CASCADE, verbose_name='Сервис')
type = models.IntegerField(default=0, null=True, blank=True, verbose_name='Тип')
money = models.IntegerField(null=True, blank=True, verbose_name='Стоимость')
link = models.URLField(verbose_name='Ссылка')
class Meta:
verbose_name = 'Где посмотреть'
verbose_name_plural = 'Где посмотреть'
def __str__(self):
return f'{self.service} - {self.movie}'
class Review(BaseModel):
movie = models.ForeignKey(Movie, on_delete=models.CASCADE, verbose_name='Фильм')
author = models.ForeignKey(CustomUser, on_delete=models.CASCADE, verbose_name='Автор рецензии')
title = models.CharField(max_length=255, verbose_name='Заголовок')
date = models.DateField(auto_now_add=True, verbose_name='Дата публикации')
content = models.TextField(blank=False, null=False, verbose_name='Контент')
permissions = models.IntegerField(default=0, verbose_name='Доступ')
def __str__(self):
return f'{self.movie} by {self.author}'
class Meta:
verbose_name = 'Рецензия'
verbose_name_plural = 'Рецензии'
class Quote(BaseModel):
movie = models.ForeignKey(Movie, on_delete=models.CASCADE, verbose_name='Фильм')
hero = models.CharField(max_length=255, blank=True, null=True, verbose_name='Кто сказал')
author = models.ForeignKey(CustomUser, on_delete=models.CASCADE, verbose_name='Автор киноцитаты')
date = models.DateField(auto_now_add=True, verbose_name='Дата публикации')
content = models.TextField(blank=False, null=False, verbose_name='Контент')
permissions = models.IntegerField(default=0, verbose_name='Доступ')
def __str__(self):
return f'{self.movie} by {self.author}'
class Meta:
verbose_name = 'Киноцитата'
verbose_name_plural = 'Киноцитаты'
ordering = ['-id']
class Mark(BaseModel):
movie = models.ForeignKey(Movie, on_delete=models.CASCADE, verbose_name='Фильм')
user = models.ForeignKey(CustomUser, on_delete=models.CASCADE, verbose_name='Юзер')
value = models.IntegerField(default=0, verbose_name='Рейтинг')
date = models.DateField(auto_now_add=True, null=True)
class Meta:
verbose_name = 'Оценка'
verbose_name_plural = 'Рейтинг фильма'
def __str__(self):
return f'{self.movie} by {self.user}'
def save(self, *args, **kwargs):
if not self.date:
self.date = timezone.now()
super(Mark, self).save(*args, **kwargs)
class Watcher(BaseModel):
movie = models.ForeignKey(Movie, on_delete=models.CASCADE, verbose_name='Фильм')
user = models.ForeignKey(CustomUser, on_delete=models.CASCADE, verbose_name='Зритель')
date = models.DateField(auto_now_add=True, verbose_name='Дата добавления')
class Meta:
verbose_name = 'Зритель'
verbose_name_plural = 'Зрители'
def __str__(self):
return f'{self.user} watched {self.movie}'
|
from .logic import get_timed_loop_from_config, get_exchange_data, currencies_list_from_config, convert_dic_to_list, \
create_mongo_dic, get_mongo_url
|
from setuptools import setup, find_packages
with open('README.md') as f:
read_me = f.read()
with open('requirements.txt') as rf:
requirements = rf.read()
setup(
name='PyReQTL',
version='0.4.0',
description='A python library equivalent to R ReQTL Toolkit.',
long_description=read_me,
long_description_content_type='text/markdown',
author='Nawaf Alomran',
author_email='nawafalomran@hotmail.com',
url='https://github.com/nalomran/PyReQTL',
download_url='https://github.com/nalomran/PyReQTL/archive/PyReQTL-0.1.0.tar.gz',
packages=find_packages(),
install_requires=requirements,
classifiers=[
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
'Natural Language :: English',
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
'Topic :: Scientific/Engineering :: Information Analysis',
],
python_requires='>=3.5',
) |
import base64
import http.client
import json
from random import SystemRandom
from django.conf import settings
__all__ = (
'Routee',
'random_with_n_digits',
)
def random_with_n_digits(n):
return "".join(SystemRandom().choice('123456789') for _ in range(n))
class Routee(object):
def __init__(self):
conn = http.client.HTTPSConnection("auth.routee.net")
payload = "grant_type=client_credentials"
encode_key = base64.b64encode(
f'{settings.ROUTEE_APPLICATION_ID}:{settings.ROUTEE_APPLICATION_SECRET}'.encode("utf-8"))
headers = {
'authorization': f'Basic {encode_key.decode()}:',
'content-type': "application/x-www-form-urlencoded"
}
conn.request("POST", "/oauth/token", payload, headers)
res = conn.getresponse()
data = res.read()
data = json.loads(data.decode())
self.access_token = data['access_token']
def send_sms(self, phone_number: str, code: int):
conn = http.client.HTTPSConnection("connect.routee.net")
payload = json.dumps({
'body': f'Your Parking Verification Code {code}',
'to': f'+{phone_number}',
'from': 'Parking'
})
headers = {
'Authorization': f'Bearer {self.access_token}',
'Content-type': "application/json"
}
conn.request("POST", "/sms", payload, headers)
|
# Generated by Django 2.2.6 on 2020-03-04 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('work', '0092_auto_20200303_1124'),
]
operations = [
migrations.AddField(
model_name='historicalsiteextra',
name='is_divertion',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='siteextra',
name='is_divertion',
field=models.BooleanField(default=False),
),
]
|
from django.conf import settings
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^$', 'profile.views.view', name='profile_view'),
url(r'^update/$', 'profile.views.update', name='profile_update'),
url(r'^delete/$', 'profile.views.delete', name='profile_delete'),
#@todo: bad-regexp needs to be fixed.
url(r'^(?P<username>\w+|\w+\@\w+\.\w+)/$', 'profile.views.userprofile', name='user_profile'),
)
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time, ConfigParser, urllib2
sys.path.append('/usr/lib64/mpd_validator_automation')
sys.path.append('/usr/lib64/mpd_validator_automation/selenium')
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import selenium.webdriver.support.wait
from selenium.webdriver.support.ui import WebDriverWait
import re
from selenium.webdriver.support import expected_conditions as EC
def dashif_conformance_test( url, option="mpd"):
'''
Usage:
Pass MPD URL to "dashif_conformance_test()"
ex: dashif_conformance_test("http://www.digitalprimates.net/dash/
streams/gpac/mp4-main-multi-mpd-AV-NBS.mpd")
'''
try:
urllib2.urlopen(url)
except urllib2.HTTPError, e:
logger.console("NOT VALID URL", newline=True)
logger.console(e.code, newline=True)
raise AssertionError()
except urllib2.URLError, e:
logger.console("NOT VALID URL", newline=True)
logger.console(e.args, newline=True)
raise AssertionError()
driver = webdriver.Firefox()
driver.implicitly_wait(30)
config = ConfigParser.RawConfigParser()
readfrom = '/usr/lib64/mpd_validator_automation/example.cfg'
config.read(readfrom)
base_url = config.get('Section1', 'baseurl')
urlname = config.get('Section1', 'url')
framename = config.get('Section1', 'framename')
urlinput = config.get('Section1', 'urlinput')
buttonclick = config.get('Section1', 'buttonclick')
text = config.get('Section1', 'text')
tabledata = config.get('Section1', 'tabledata')
network = config.get('Section1', 'network')
search_text = config.get('Section1', 'search_text')
verificationErrors = []
accept_next_alert = True
driver.get(base_url + urlname)
driver.set_page_load_timeout(30)
if network == "nonlocal":
driver.switch_to.frame(framename)
driver.switch_to.frame(framename)
driver.find_element(By.ID, urlinput).clear()
driver.find_element_by_id(urlinput).send_keys(url)
if option == "mpd":
driver.find_element_by_id("mpdvalidation").click()
driver.find_element_by_xpath(buttonclick).click()
driver.implicitly_wait(10)
driver.find_element_by_xpath(buttonclick).click()
text_element = WebDriverWait(driver, 10).until\
(EC.presence_of_element_located((By.XPATH, text)))
i = 1
if network == "nonlocal":
while text_element.text != search_text:
text_element = WebDriverWait(driver, 10).until\
(EC.presence_of_element_located((By.XPATH, text)))
i = i+1
else:
while text_element.text == search_text:
text_element = WebDriverWait(driver, 10).until\
(EC.presence_of_element_located((By.XPATH, text)))
i = i+1
driver.implicitly_wait(10)
table_data = driver.find_element_by_xpath(tabledata)
page_src = driver.page_source
text_found = re.search(r'Conformance test completed', page_src)
if text_found == None:
driver.close()
return "Failed"
else:
driver.close()
#raise AssertionError()
return "Passed"
if ( 2 > len(sys.argv) ):
print 'Failed'
print 'Insufficient number of commands'
sys.exit(1)
report = dashif_conformance_test(sys.argv[1])
print report
|
from scapy.all import *
# packet callback
def packet_callback(packet):
print(packet.show())
# run the sniffer
sniff(prn=packet_callback,count=1)
|
import unittest
from katas.beta.how_much_coffee_do_you_need import how_much_coffee
class HowMuchCoffeeTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(how_much_coffee([]), 0)
def test_equal_2(self):
self.assertEqual(how_much_coffee(['cw']), 1)
def test_equal_3(self):
self.assertEqual(how_much_coffee(['CW']), 2)
def test_equal_4(self):
self.assertEqual(how_much_coffee(['cw', 'CAT']), 3)
def test_equal_5(self):
self.assertEqual(how_much_coffee(['cw', 'CAT', 'DOG']),
'You need extra sleep')
def test_equal_6(self):
self.assertEqual(how_much_coffee(['cw', 'CAT', 'cw=others']), 3)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Merge all subcrawlers into one stream.
For the ground-truth stream, the lower bound is the merged tweets (as they are what we observed/what happened).
The upper bound is the number of merged tweets plus the sum of all rate limit messages,
assuming all missing tweets in each sub-crawler are disjointed, representing a upper bound of total missing tweets.
Usage: python merge_subcrawlers.py
Input data files: ../data/[app_name]_out/[app_name]_*/timestamp/*.txt
Output data files: ../data/[app_name]_out/[app_name]_*/ts_[app_name]_*.bz2, ../data/[app_name]_out/complete_ts_[app_name]_*.bz2
Time: ~1H
"""
import sys, os, bz2
sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
from utils.helper import Timer, melt_snowflake, make_snowflake
def find_next_item(nextline_list):
end_flag = all(v.rstrip() == '' for v in nextline_list)
if end_flag:
return None, None, True
else:
lst = []
for item in nextline_list:
if item.rstrip() == '':
lst.append('END')
else:
lst.append(item)
index_min = min(range(len(lst)), key=lst.__getitem__)
return index_min, lst[index_min], False
def main():
app_name = 'covid'
if app_name == 'cyberbullying':
target_suffix = ['1', '2', '3', '4', '5', '6', '7', '8', 'all']
elif app_name == 'youtube' or app_name == 'covid':
target_suffix = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', 'all']
else:
target_suffix = ['1', '2', '3', '4', '5', '6', '7', '8', 'all']
archive_dir = '../data/{0}_out'.format(app_name)
best_offset = 5000
# merge timestamps
timer = Timer()
timer.start()
for suffix_idx, suffix in enumerate(target_suffix):
print('>>> Merging suffix {0}_{1}...'.format(app_name, suffix))
visited_tid = set()
ts_streaming_dict = {}
for subdir, _, files in os.walk(os.path.join(archive_dir, '{0}_{1}'.format(app_name, suffix), 'timestamp')):
for f in sorted(files):
with open(os.path.join(subdir, f), 'r') as fin:
for line in fin:
split_line = line.rstrip().split(',')
if len(split_line) == 3:
ts_streaming_dict[str(make_snowflake(int(split_line[0]) - best_offset, 31, 31, suffix_idx))] = 'ratemsg{0},{1}'.format(suffix, split_line[2])
else:
tweet_id = split_line[1]
if tweet_id not in visited_tid:
ts_streaming_dict[tweet_id] = split_line[0]
visited_tid.add(tweet_id)
with bz2.open(os.path.join(archive_dir, '{0}_{1}/ts_{0}_{1}.bz2'.format(app_name, suffix)), 'wt') as ts_output:
for tid in sorted(ts_streaming_dict.keys()):
if ts_streaming_dict[tid].startswith('ratemsg'):
ts = melt_snowflake(tid)[0]
ts_output.write('{0},{1}\n'.format(ts, ts_streaming_dict[tid]))
else:
ts_output.write('{0},{1}\n'.format(ts_streaming_dict[tid], tid))
print('>>> Finishing merging suffix {0}_{1}'.format(app_name, suffix))
print('>>> Merging complete stream for {0}...'.format(app_name))
inputfile_list = ['{0}_{1}/ts_{0}_{1}.bz2'.format(app_name, suffix) for suffix in target_suffix]
inputfile_handles = [bz2.BZ2File(os.path.join(archive_dir, inputfile), mode='r') for inputfile in inputfile_list]
visited_item_set = set()
with bz2.open(os.path.join(archive_dir, 'complete_ts_{0}.bz2'.format(app_name)), 'wt') as ts_output:
nextline_list = [inputfile.readline().decode('utf-8') for inputfile in inputfile_handles]
while True:
next_idx, next_item, end_flag = find_next_item(nextline_list)
if end_flag:
break
# omit rate limit messages in the all crawler
if 'ratemsg' not in next_item and next_item not in visited_item_set:
ts_output.write(next_item)
visited_item_set.add(next_item)
nextline_list[next_idx] = inputfile_handles[next_idx].readline().decode('utf-8')
for inputfile in inputfile_handles:
inputfile.close()
print('>>> Finishing merging complete stream for {0}'.format(app_name))
timer.stop()
if __name__ == '__main__':
main()
|
import PySimpleGUIWeb as sg
layout=[[sg.Text("name:")], [sg.Input(key="-INPUT-")], [sg.Text(size=(40,1,), key="-OUTPUT-")], [sg.Button("Ok"), sg.Button("Quit")]]
window=sg.Window("Window Title", layout)
while (True):
event, values=window.read()
if ( (event in (sg.WIN_CLOSED,"Quit",)) ):
break
window["-OUTPUT-"].update((("Hello ")+(values["-INPUT-"])+("! Thanks for trying.")))
window.close() |
#-*- encoding:utf-8 -*-
from hello import Collage,db
f= open('collage.txt','rt',encoding="utf-8")
for x in f:
db.session.add(Collage(cname=x[:-1]))
db.session.commit()
f.close() |
import random
import datetime
from collections import Counter
__author__ = "William Hardy Gest"
__version__ = "1.0"
try:
import yagmail
except ModuleNotFoundError as e:
print("External library 'yagmail' required to send emails. Try 'pip install -r requirements.txt'")
exit()
try:
from participants import PARTICIPANTS
except ModuleNotFoundError as e:
print("No 'participants.py' file found.")
exit()
try:
import configuration
except ModuleNotFoundError as e:
print("No 'configuration.py' file found.")
exit()
# Change to False to send emails to participant accounts and seal their fates
TEST_MODE = True
class ParticipantsFileError(BaseException):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
class InvalidResultsError(BaseException):
def __init__(self, *args, **kwargs):
super().__init__(self, *args, **kwargs)
def assign_participants():
completed_assignments = {}
invalid_matches_for_participant = {}
available_recievers = list(PARTICIPANTS.keys())
available_givers = list(PARTICIPANTS.keys())
# Randomize order
participants_list = list(PARTICIPANTS.items())
participants_list.sort(key=lambda x: random.randint(1, 256))
# Assign any rigged selections
for name, data in participants_list:
rigged_match = data.get('rigged')
if rigged_match:
completed_assignments[name] = rigged_match
available_givers.remove(name)
available_recievers.remove(rigged_match)
# Randomly assign remaining participants
for name, data in [p for p in participants_list if p[0] in available_givers]:
exclude = data.get('exclude', [])
# Add excluded participants and self to list of invalid options
invalid_recipients = list(exclude)
invalid_recipients.append(name)
# Add reciprocal match, if applicable, to list of invalid options
try:
who_has_me_already = [k for k, v in completed_assignments.items() if v == name].pop()
invalid_recipients.append(who_has_me_already)
except IndexError:
who_has_me_already = None
# Store copy of invalid matches for later use if needed
invalid_matches_for_participant[name] = list(invalid_recipients)
# Remove invalid options from final selection
available_recievers_for_giver = set(available_recievers).difference(invalid_recipients)
# Match and remove receiver from pool
try:
match = random.choice(list(available_recievers_for_giver))
if match == who_has_me_already:
raise InvalidResultsError
completed_assignments[name] = match
available_recievers.remove(match)
except IndexError:
# No valid match available for the last participant, trading matches
invalid_recipient_to_trade = available_recievers[0]
# Find a valid trade partner with this epic listcomp
try:
trade_partner = random.choice([p[0] for p in participants_list
if completed_assignments.get(p[0])
and invalid_recipient_to_trade not in invalid_matches_for_participant.get(p[0], [])
and completed_assignments.get(p[0], None) not in invalid_recipients])
match = invalid_recipient_to_trade
available_recievers.remove(match)
except (IndexError, KeyError):
raise ParticipantsFileError("The restrictions in your participant file cannot be satisfied."
" No possible solution.")
# Do the trade
completed_assignments[name] = completed_assignments[trade_partner]
completed_assignments[trade_partner] = match
invalid_matches_for_participant.get(match, []).append(name)
test_results(completed_assignments)
print("Assignments successful under configured restrictions.")
return completed_assignments
def test_results(completed_assignments):
# Insurance policy. These tests will always run before email sending, but should never fail without
# code changes or impossible or malformed participants input data
for name, data in PARTICIPANTS.items():
if name not in completed_assignments.keys():
print("Invalid results:", name, "not matched")
print(completed_assignments)
raise InvalidResultsError
if name not in completed_assignments.values():
print("Invalid results:", name, "not receiving")
print(completed_assignments)
raise InvalidResultsError
if completed_assignments[completed_assignments[name]] == name:
print("Invalid results: Reciprocal match:", name, "and", completed_assignments[name])
print(completed_assignments)
raise InvalidResultsError
if completed_assignments[name] in data['exclude']:
print("Invalid results:", name, "assigned to excluded participant", completed_assignments[name])
print(completed_assignments)
raise InvalidResultsError
if data.get('rigged') and completed_assignments[name] != data.get('rigged'):
print("Invalid results: Rigged match for", name, "and", data.get('rigged'), "not respected.")
print(completed_assignments)
raise InvalidResultsError
def send_emails(completed_assignments):
yag = yagmail.SMTP(configuration.ORIGIN_ADDRESS, configuration.ORIGIN_PASSWORD)
for participant in completed_assignments:
if TEST_MODE:
email_address = configuration.TEST_EMAIL
else:
email_address = PARTICIPANTS[participant]["email"]
msg = configuration.generate_msg(participant, completed_assignments[participant])
try:
yag.send(email_address, subject=configuration.INVITATION_SUBJECT, contents=msg)
print(f"Successfully sent email to {participant} ({email_address})")
except:
print(f"Mail to {email_address} failed!")
return True
def validate_participants_file():
if len(PARTICIPANTS) < 3:
raise ParticipantsFileError(f"Not enough participants for meaningful matching. ({len(PARTICIPANTS)} found.")
all_names = [n for n, d in PARTICIPANTS.items()]
for name, data in PARTICIPANTS.items():
exclude = data.get('exclude', [])
rigged = data.get('rigged', None)
if not data.get('email'):
raise ParticipantsFileError(f"Participant '{name}' has no configured email address.")
if rigged and rigged not in all_names:
raise ParticipantsFileError(f"Rigged match '{rigged}' is not a participant.")
if rigged and rigged == name:
raise ParticipantsFileError(f"{name} is rigged to themself.")
invalid_excludes = [x for x in exclude if x not in all_names]
if exclude and len(invalid_excludes):
raise ParticipantsFileError(f"'{invalid_excludes[0]}' is not a participant but is present in exclude list for '{name}'")
if rigged and rigged in exclude:
raise ParticipantsFileError(f"Participant '{name}' is rigged for '{rigged}', who is excluded.")
all_rigged = [data.get('rigged') for name, data in PARTICIPANTS.items() if data.get('rigged')]
duplicates = [key for key, count in Counter(all_rigged).items() if count > 1]
if len(duplicates):
raise ParticipantsFileError(f"More than one person is rigged for participant '{duplicates[0]}'.")
def main():
validate_participants_file()
print(f"Santatron is attempting to assign {len(PARTICIPANTS)} participants...")
completed_assignments = assign_participants()
now = datetime.datetime.now().strftime('%m-%d-%y')
with open(f"santatron_assignments_{now}.txt", "w") as assignments_record:
assignments_record.write(str(completed_assignments))
send_emails(completed_assignments)
print("Santratron operation complete!")
if __name__ == "__main__":
main()
|
#To find the last term of an arithmetic progression
import math
a=input("Enter the starting term of AP 'a':")
n=input("Enter the number of terms of AP 'n':")
d=input("Enter the common difference of AP 'd':")
if n>=1:
an=a+(n-1)*(d)
print "The last term of the AP is",an
else:
print "The information provided is invalid as the value of 'n' should always be a whole number"
|
class MyStack:
def __init__(self):
self.arr=[]
#Function to push an integer into the stack.
def push(self,data):
self.data=data
self.arr.append(self.data)
#Function to remove an item from top of the stack.
def pop(self):
if len(self.arr):
return self.arr.pop()
else:
return -1
|
try:
import numpy as np
from pm4py.objects.log import log as event_log
from pm4py.objects.log.exporter.xes import factory as xes_exporter
from pm4py.objects.log.importer.xes import factory as xes_import_factory
import datetime
from dateutil.tz import tzutc
import sys
import sqlite3
import os
import subprocess
import requests
import time
import shutil
TRACE_START = "TRACE_START"
TRACE_END = "TRACE_END"
EVENT_DELIMETER = ">>>"
def privatize_tracevariants(log, epsilon,P,N):
# transform log into event view and get prefix frequencies
print("Retrieving true prefix frequencies", end='')
event_int_mapping = create_event_int_mapping(log)
known_prefix_frequencies = get_prefix_frequencies_from_log(log)
events = list(event_int_mapping.keys())
events.remove(TRACE_START)
print("Done")
final_frequencies = {}
trace_frequencies = {"": 0}
for n in range(1, N + 1):
# get prefix_frequencies, using either known frequency, or frequency of parent, or 0
trace_frequencies = get_prefix_frequencies_length_n(trace_frequencies, events, n, known_prefix_frequencies)
# laplace_mechanism
trace_frequencies = apply_laplace_noise_tf(trace_frequencies, epsilon)
# prune
trace_frequencies = prune_trace_frequencies(trace_frequencies, P, known_prefix_frequencies)
# print(trace_frequencies)
# add finished traces to output, remove from list, sanity checks
new_frequencies = {}
for entry in trace_frequencies.items():
if TRACE_END in entry[0]:
final_frequencies[entry[0] ] = entry[1]
else:
new_frequencies[entry[0]] = entry[1]
trace_frequencies = new_frequencies
# print(trace_frequencies)
print(n)
return generate_pm4py_log(final_frequencies)
def create_event_int_mapping(log):
event_name_list=[]
for trace in log:
for event in trace:
event_name = event["concept:name"]
if not str(event_name) in event_name_list:
event_name_list.append(event_name)
event_int_mapping={}
event_int_mapping[TRACE_START]=0
current_int=1
for event_name in event_name_list:
event_int_mapping[event_name]=current_int
current_int=current_int+1
event_int_mapping[TRACE_END]=current_int
return event_int_mapping
def get_prefix_frequencies_from_log(log):
prefix_frequencies = {}
for trace in log:
current_prefix = ""
for event in trace:
current_prefix = current_prefix + event["concept:name"] + EVENT_DELIMETER
if current_prefix in prefix_frequencies:
frequency = prefix_frequencies[current_prefix]
prefix_frequencies[current_prefix] += 1
else:
prefix_frequencies[current_prefix] = 1
current_prefix = current_prefix + TRACE_END
if current_prefix in prefix_frequencies:
frequency = prefix_frequencies[current_prefix]
prefix_frequencies[current_prefix] += 1
else:
prefix_frequencies[current_prefix] = 1
return prefix_frequencies
def get_prefix_frequencies_length_n(trace_frequencies, events, n, known_prefix_frequencies):
prefixes_length_n = {}
for prefix, frequency in trace_frequencies.items():
for new_prefix in pref(prefix, events, n):
if new_prefix in known_prefix_frequencies:
new_frequency = known_prefix_frequencies[new_prefix]
prefixes_length_n[new_prefix] = new_frequency
else:
prefixes_length_n[new_prefix] = 0
return prefixes_length_n
def prune_trace_frequencies(trace_frequencies, P, known_prefix_frequencies):
pruned_frequencies = {}
for entry in trace_frequencies.items():
if entry[1] >= P:
pruned_frequencies[entry[0]] = entry[1]
return pruned_frequencies
def pref(prefix, events, n):
prefixes_length_n = []
if not TRACE_END in prefix:
for event in events:
current_prefix = ""
if event == TRACE_END:
current_prefix = prefix + event
else:
current_prefix = prefix + event + EVENT_DELIMETER
prefixes_length_n.append(current_prefix)
return prefixes_length_n
def apply_laplace_noise_tf(trace_frequencies, epsilon):
lambd = 1 / epsilon
for trace_frequency in trace_frequencies:
noise = int(np.random.laplace(0, lambd))
trace_frequencies[trace_frequency] = trace_frequencies[trace_frequency] + noise
if trace_frequencies[trace_frequency] < 0:
trace_frequencies[trace_frequency] = 0
return trace_frequencies
def generate_pm4py_log(trace_frequencies):
log = event_log.EventLog()
trace_count = 0
for variant in trace_frequencies.items():
frequency=variant[1]
activities=variant[0].split(EVENT_DELIMETER)
for i in range (0,frequency):
trace = event_log.Trace()
trace.attributes["concept:name"] = trace_count
trace_count = trace_count + 1
for activity in activities:
if not TRACE_END in activity:
event = event_log.Event()
event["concept:name"] = str(activity)
event["time:timestamp"] = datetime.datetime(1970, 1, 1, 0, 0, 0, tzinfo=tzutc())
trace.append(event)
log.append(trace)
return log
filePath = sys.argv[1]
epsilon = sys.argv[2]
n = sys.argv[3]
p = sys.argv[4]
dbName = sys.argv[5]
secure_token = sys.argv[6]
print("\n starting tv Query \n")
log = xes_import_factory.apply(filePath)
private_log = privatize_tracevariants(log, float(epsilon),int(p),int(n))
#preprocess file
os.mkdir(secure_token)
outPath = filePath.replace(".xes","_%s_%s_%s.xes" % (epsilon, n, p))
print("\n exporting log \n")
xes_exporter.export_log(private_log,outPath)
#write to db
print("Writing to DB")
puffer,targetFile = outPath.split("media"+os.path.sep)
conn = sqlite3.connect(dbName)
c = conn.cursor()
c.execute("UPDATE eventlogUploader_document SET status = ?, docfile = ? WHERE token = ?", ("FINISHED", targetFile, secure_token))
conn.commit()
conn.close()
#cleanup
shutil.rmtree(os.getcwd()+os.path.sep+secure_token)
except Exception as e:
f=open("debug","w+")
f.write(str(e))
if hasattr(e, 'message'):
f.write(str(e.__class__.__name__) + ": " + e.message)
filePath = sys.argv[1]
epsilon = sys.argv[2]
n = sys.argv[3]
p = sys.argv[4]
dbName = sys.argv[5]
secure_token = sys.argv[6]
f.write(filePath)
f.write(epsilon)
f.write(dbName)
f.write(secure_token)
f.close()
#cleanup
shutil.rmtree(os.getcwd()+os.path.sep+secure_token)
conn = sqlite3.connect(dbName)
c = conn.cursor()
c.execute("UPDATE eventlogUploader_document SET status = ? WHERE token = ?", ("ERROR", secure_token))
conn.commit()
conn.close()
|
from keras.callbacks import LambdaCallback
from keras import backend as K
import matplotlib.pyplot as plt
import numpy as np
import tempfile
class LearningRateFinder:
def __init__(self, model, stop_factor=4, beta=0.98):
# store the model, stop factor, and beta value (for computing a smoothed, average loss)
self.model = model
self.stop_factor = stop_factor
self.beta = beta
# initialize our list of lr and losses respectively
self.lrs = []
self.losses = []
# initialize lr multiplier, average loss, best loss found thus far, current batch number, and weight file
self.lr_mult = 1
self.avg_loss = 0
self.best_loss = 1e9
self.batch_num = 0
self.weights_file = None
def reset(self):
# re-initialize all variables from our constructor
self.lrs = []
self.losses = []
self.lr_mult = 1
self.avg_loss = 0
self.best_loss = 1e9
self.batch_num = 0
self.weights_file = None
def is_data_iter(self, data):
# define the set of class types we will check for
iter_classes = ['NumpyArrayIterator', 'DirectoryIterator', 'DataFrameIterator', 'Iterator', 'Sequence']
return data.__class__.__name__ in iter_classes
def on_batch_end(self, batch, logs):
# grab the current learning rate and add log it to the lr that we've tried
lr = K.get_value(self.model.optimizer.lr)
self.lrs.append(lr)
# grab the loss at the end this batch, increase total number of batches processed, compute the average loss, smooth it, and update the losses list with the smoothed value
l = logs['loss']
self.batch_num += 1
self.avg_loss = (self.beta * self.avg_loss) + ((1 - self.beta) * l)
smooth = self.avg_loss / (1 - (self.beta ** self.batch_num))
self.losses.append(smooth)
# compute the maximum loss stopping factor value
stop_loss = self.stop_factor * self.best_loss
# check to see whether the loss has grown too large
if self.batch_num > 1 and smooth > stop_loss:
# stop returning and return from the method
self.model.stop_training = True
return
# check to see if the best loss should be updated
if self.batch_num == 1 or smooth < self.best_loss:
self.best_loss = smooth
# increase the lr
lr *= self.lr_mult
K.set_value(self.model.optimizer.lr, lr)
def find(self, train_X, start_lr, end_lr, epochs=None, steps_per_epoch=None, batch_size=32, sample_size=2048, verbose=2):
# reset class-specific variables
self.reset()
# determine if we are using a data generator or not
use_gen = self.is_data_iter(train_X)
# if we're using a generator and steps per epoch is not supplied, raise an error
if use_gen and steps_per_epoch is None:
msg = 'Using generator without supplying steps_per_epoch'
raise Exception(msg)
# if we're not using a generator then our entire dataset must already be in memory
elif not use_gen:
# grab the number of samples in the training data and then derive the number of steps per epoch
num_samples = len(train_X[0])
steps_per_epoch = num_samples / float(batch_size)
# if no number of training epochs are supplied, compute the training epochs based on a default sample size
if epochs is None:
epochs = int(np.ceil(sample_size / float(batch_size)))
# compute the total number of batch updates that will take place while we are trying to find a good starting lr
num_batch_updates = epochs * steps_per_epoch
# derive the lr multiplier based on the ending lr, starting lr, and total number of batch updates
self.lr_mult = (end_lr / start_lr) ** (1./num_batch_updates)
# create a temp file path for the model weights and save the weights
self.weights_file = tempfile.mkstemp()[1]
self.model.save_weights(self.weights_file)
# grab the original lr, and set starting lr
orig_lr = K.get_value(self.model.optimizer.lr)
K.set_value(self.model.optimizer.lr, start_lr)
# construct a callback that will be called at the end of each batch, enable us to increase lr as training processes
callback = LambdaCallback(on_batch_end=lambda batch, logs: self.on_batch_end(batch, logs))
# check to see if we are using data iterator
if use_gen:
self.model.fit_generator(train_X, steps_per_epoch=steps_per_epoch, epochs=epochs, verbose=verbose, callbacks=[callback])
# otherwise, entire training data is already in memory
else:
self.model.fit(train_X[0], train_X[1], batch_size=batch_size, epochs=epochs, verbose=verbose, callbacks=[callback])
# restore the original model weights and lr
self.model.load_weights(self.weights_file)
K.set_value(self.model.optimizer.lr, orig_lr)
def plot_loss(self, skip_begin=10, skip_end=1, title=''):
# grab the lr and losses values to plot
lrs = self.lrs[skip_begin:-skip_end]
losses = self.losses[skip_begin:-skip_end]
# plot the lr vs. loss
plt.plot(lrs, losses)
plt.xscale('log')
plt.xlabel('Learning rate (Log scale)')
plt.ylabel('Loss')
if title != '':
plt.title(title) |
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.template import loader
from django.template.context import RequestContext
from django.core.context_processors import csrf
import mimetypes
from django.conf import settings
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from core.utils import add_form_error, generate_slug
from core.forms import UserLoginForm
from core.views import view_404, view_error
from account.forms import UserAccountCreateForm, ProfileImageUploadForm
from account.utils import auto_login_user, get_bet_account
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_exempt
from bet.forms import BetAccountCreateForm, BetUserLoginForm, BetAccountForm
from bet.json import EncodeJSON
from account.models import BetAccount
from django.forms.models import model_to_dict
def account_login(request):
print 'User Login Request'
# Grab any redirects
redirect_to = request.GET.get('next', False)
# Stop here if user is already logged in
if request.user.is_authenticated():
return redirect('account')
if request.method == 'POST':
form = UserLoginForm(request.POST)
if form.is_valid():
username = form.cleaned_data['username']
password = form.cleaned_data['password']
user = authenticate(username=username, password=password)
if user is not None:
if user.is_active:
print u'User %s authenticated' % user
login(request, user)
if redirect_to:
# Go back to previous page
return HttpResponseRedirect(redirect_to)
else:
return redirect('account_user', user.username)
else:
add_form_error(form, u'Your account has been disabled!')
else:
add_form_error(form, u'Your username or password were incorrect.')
else:
print u'Form is Invalid'
else:
form = UserLoginForm()
context = {'path':request.path,'form':form,
'csrf_token':csrf(request),'next':redirect_to}
t = loader.get_template('user-login.html')
c = RequestContext(request, context)
return HttpResponse(t.render(c))
@csrf_exempt
def mobile_account_login(request):
print 'Mobile User Login Request'
# Stop here if user is already logged in
print request.POST
if request.method == 'POST':
form = BetUserLoginForm(request.POST)
if form.is_valid():
username = form.cleaned_data['username']
password = form.cleaned_data['password']
print u'%s %s' % (username, password)
user = authenticate(username=username, password=password)
if user is not None:
print u'User %s authenticated' % user
login(request, user)
bet_account = get_object_or_404(BetAccount, user=user)
response = EncodeJSON()
response.add('bet_account', bet_account.to_dict())
print u'Responding %s' % response.encode()
return HttpResponse(response.encode())
else:
response = EncodeJSON()
response.add('errors', [u'Your username or password were incorrect.'])
print u'Responding %s' % response.encode()
return HttpResponse(response.encode())
else:
response = EncodeJSON()
response.add('errors', form.errors)
print u'Responding %s' % response.encode()
return HttpResponse(response.encode())
else:
form = UserLoginForm()
response = EncodeJSON()
response.add('errors', ['Invalid Request'])
return HttpResponse(response.encode())
@csrf_exempt
def mobile_account_create(request):
print 'Account create request'
print request.POST
if request.method == 'POST':
form = BetAccountCreateForm(request.POST)
if form.is_valid():
print u'Account Form is valid'
user_account = form.save()
username = form.cleaned_data.get('username')
password = form.cleaned_data.get('password')
if auto_login_user(request, username, password):
response = EncodeJSON()
response.add('user', user_account.to_dict())
return HttpResponse(response.encode())
else:
view_error(request, u'There was an error in creating your account')
else:
print u'Account Form is invalid'
response = EncodeJSON()
response.add('errors', form.errors)
return HttpResponse(response.encode())
else:
form = BetAccountCreateForm()
# context = {'path':request.path, 'form':form}
# t = loader.get_template('account-create.html')
# c = RequestContext(request, context)
# return HttpResponse(t.render(c))
return HttpResponse()
@csrf_exempt
@login_required
def mobile_bet_account(request):
print 'Requesting bet account'
print request.POST
response = EncodeJSON()
bet_account = get_bet_account(request)
if not bet_account:
response.add('errors', u'Invalid user session')
return HttpResponse(response.encode())
if request.method == 'POST':
form = BetAccountForm(request.POST)
if form.is_valid():
print u'Active Bet Form is valid'
username = form.cleaned_data.get('username','')
api_token = form.cleaned_data.get('api_token','')
slug = form.cleaned_data.get('slug','')
if not bet_account.authenticate(slug, api_token):
response.add('errors', u'Invalid user credentials')
return HttpResponse(response.encode())
requested_bet_account = BetAccount.objects.get(user__username=username)
response = EncodeJSON()
response.add('bet_account', requested_bet_account.to_dict())
print u'Responding %s' % response.encode()
return HttpResponse(response.encode())
else:
print u'Active Bet Form invalid'
response.add('errors', form.errors)
return HttpResponse(response.encode())
return HttpResponse(str({'error':u'What are you doing here?'}))
@csrf_exempt
def mobile_account_logout(request):
logout(request)
return HttpResponse('Successful')
def account_logout(request):
logout(request)
return HttpResponse('Successful')
@login_required(login_url='/account/login')
def account(request, slug):
print 'request Account %s ' % slug
context = {'path':request.path}
t = loader.get_template('account.html')
c = RequestContext(request, context)
return HttpResponse(t.render(c))
@csrf_exempt
@login_required
def account_create(request):
print 'Account create request'
if request.method == 'POST':
form = UserAccountCreateForm(request.POST)
if form.is_valid():
print u'Account Form is valid'
user_account = form.save()
username = form.cleaned_data.get('email')
password = form.cleaned_data.get('password')
if auto_login_user(request, username, password):
return redirect('account', user_account.slug)
else:
view_error(request, u'There was an error in creating your account')
else:
print u'Account Form is invalid'
else:
form = UserAccountCreateForm()
context = {'path':request.path, 'form':form}
t = loader.get_template('account-create.html')
c = RequestContext(request, context)
return HttpResponse(t.render(c))
@csrf_exempt
@login_required
def account_mobile_profile_image_upload(request):
print request.POST
print request.FILES
response = EncodeJSON()
bet_account = get_bet_account(request)
if not bet_account:
response.add('errors', u'Invalid user session')
return HttpResponse(response.encode())
if request.method == 'POST':
form = ProfileImageUploadForm(request.POST)
if form.is_valid():
print u'Active Bet Form is valid'
api_token = form.cleaned_data.get('api_token','')
slug = form.cleaned_data.get('slug','')
if not bet_account.authenticate(slug, api_token):
response.add('errors', u'Invalid user credentials')
return HttpResponse(response.encode())
print 'Authorized User'
file_obj = request.FILES['file']
filename = file_obj.name
pre_filename = generate_slug(25) + '-' +bet_account.slug + '-'
content = file_obj.read()
conn = S3Connection(settings.AWS_ACCESS_KEY_ID, settings.AWS_SECRET_ACCESS_KEY)
b = conn.create_bucket('images.my.bet')
mime = mimetypes.guess_type(filename)[0]
k = Key(b)
k.key = pre_filename + filename
k.set_metadata("Content-Type", mime)
k.set_contents_from_string(content)
k.set_acl("public-read")
print 'Saved file to S3', filename
# Save to bet account
bet_account.profile_image_url = "https://s3.amazonaws.com/images.my.bet/" + pre_filename + filename
bet_account.save()
print 'Saved to', filename
return HttpResponse("Success")
else:
print u'Active Bet Form invalid'
response.add('errors', form.errors)
return HttpResponse(response.encode())
return HttpResponse(str({'error':u'What are you doing here?'}))
|
import hidden_markov
import numpy as np
import pandas as p
#Class to launch and use the hidden_markov library with our data
#It's a wrapper of the library
class HMM():
#Class constructor
def __init__(self,states,evidence,probability,transition,emission):
#Hidden states of the net
self.states = states
#Evidence or observable
self.evidence = evidence
#starting probability for the initialization
self.probability = probability
#matrix for transition probability
self.transition = transition
#matrix of emission
self.emission = emission
#Call the hidden_markov library model and initialize the model
self.model = hidden_markov.hmm(states,evidence,probability,transition,emission)
##FORWARD FUNCTION
def forward(self,sequence):
return self.forward(sequence)
##VITERBI FUNCTION to filter the net
def viterbi(self,sequence):
return self.model.viterbi(sequence)
|
# coding=utf-8
import cv2
#opencv的库
import os, shutil
import tensorflow as tf
from tensorflow.python.keras.applications.resnet50 import ResNet50
from tensorflow.python.keras.applications.vgg19 import VGG19
from tensorflow.python.keras.models import load_model
import numpy as np
import sys
font = cv2.FONT_HERSHEY_SIMPLEX
from keras.optimizers import Adam
import utils
from scipy import misc
CLASSES = (
'NORMAL','PNEUMONIA')
model = load_model('model/model-ResNet50-final.h5')
imgName = 'test/PNEUMONIA/person1_bacteria_1.jpg'
code = utils.ImageEncode(imgName)
ret = model.predict(code)
print(ret)
#Enter the category with the greatest similarity
res1 = np.argmax(ret[0, :])
print('result:', CLASSES[res1])
|
#!/usr/bin/python
import sys, getopt,bsdiff4
def main(argv):
patchFilePath = ''
originFilePath = ''
try:
opts, args = getopt.getopt(argv, "hp:o:", ["patchFilePath =", "originFilePath ="])
except getopt.GetoptError:
print 'bspatch -o <originFilePath> -p <patchFilePath>'
for opt, arg in opts:
if opt == '-h':
print 'bspatch -o <originFilePath> -p <patchFilePath>'
sys.exit(2)
elif opt == '-p':
patchFilePath = arg
elif opt == '-o':
originFilePath = arg
print 'patchFilePath is ', patchFilePath
print 'originFilePath is ', originFilePath
bsdiff4.file_patch(originFilePath, originFilePath, patchFilePath)
print '#### originfile is replaced #####'
if __name__ == "__main__":
main(sys.argv[1:])
|
print('Gerador de PA')
print('-=' *10)
primeiro = int(input('Digite o 1º termo: '))
razao = int(input('Digite a razão: '))
termo = primeiro
print('A PA de {} com razão {} :'.format(primeiro, razao))
c=1
maistermos = 10
total = 0
while maistermos!= 0:
total = total+maistermos
while c <= total:
termo = termo + razao
c = c+1
print('{} - '.format(termo), end='')
maistermos = int(input('Quantos termos a mais você deseja? '))
print('Voce saiu do programa!!!')
print('Foram apresentados no {} no total.'.format(total)) |
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
from datetime import datetime
import random
"""-----------------------------------------------------------------
postQuestion - User will post a question
Purpose: Ask user for a question and insert to db
Params: posts, tags (collections)
-----------------------------------------------------------------"""
def postQuestion(p_col, t_col, user):
global posts, tags
posts, tags = p_col, t_col
# returns a dictionary with the title, body, and tag(s) as its keys
# eg. {'title': 't', 'body': 'b', 'tag': ['123']}
q_dict = q_input(user)
# Used to modify the date and time format so that it matches the format shown in the Posts.json file
# eg. "CreationDate": "2011-02-22T21:47:22.987"
date_time = str(datetime.today())[:-3] # takes away the last three digits
date_time = date_time.replace(' ', 'T') # replaces the space in the middle with 'T'
question = {'Id': generateRandomId(posts), 'PostTypeId': '1', 'CreationDate': date_time, 'Score': 0, 'ViewCount': 0,
'AnswerCount': 0, 'CommentCount': 0, 'FavoriteCount': 0, 'ContentLicense': "CC BY-SA 2.5"}
# modified_tags - used to modify the tag format so that it matches the format shown in the Posts.json file
# eg. Tags: "<hardware><mac><powerpc><macos>"
modified_tags = ''
if len(q_dict['Tags']) > 0: # if the user has entered tag(s)
for tag in q_dict['Tags']:
modified_tags += '<' + tag + '>'
question['Tags'] = modified_tags # a tag field will only exist if one or more tags have been entered
# if the OwnerUserId is not an empty string, then it can be inserted. Otherwise,
# it should not be inserted
for key,value in q_dict.items():
# if current key is OwnerUserId and its blank, then continue
if key == 'OwnerUserId' and len(value) == 0:
continue
elif key != 'Tags': # because modified_tags is already added to question
question[key] = value
posts.insert_one(question) # inserts the question into the database
print('Your question has been posted!')
"""-----------------------------------------------------------------
The user will be asked to enter a title, a body, and tags (which can be zero tags or more), which will then be
recorded in te database with a unique id
Input: (optional) user ID. If the user is anonymous (has no user ID), then the default argument will be an empty string.
Output: returns a dictionary (known as q_info_dict) with the title, body, and tags as its keys,
where title and body are returned as strings, and the tags are returned as a list of strings
eg. {'title': _____, 'body': ______, 'tag': [__,___,__]}
-----------------------------------------------------------------"""
def q_input(user_id = ''):
tag_list = [] # will be used to store the tag(s) that the user has typed in
# will be used to store the title, body, and tags
q_info_dict = {'Title': '', 'Body': '', 'Tags':'', 'OwnerUserId': str(user_id)}
title = input("Enter a title: ")
while title.strip() == '': # the user did not enter a title
title = input("Please enter a title: ")
q_info_dict['Title'] = title
body = input("Enter a body: ")
while body.strip() == '': # the user did not enter a body
body = input("Please enter a body: ")
q_info_dict['Body'] = body
ask_tag = input("Would you like to enter a tag? (Enter 'y' for yes or 'n' for no): ").lower()
while ask_tag not in ('y','n'):
ask_tag = input("Please enter a valid input (y/n): ")
while ask_tag == 'y': # while the user would like to enter a tag
user_tag = input("Enter a tag (one tag at a time): ").lower()
while user_tag.strip() == '': # if the user enters an empty string
user_tag = input("Invalid Input. Enter a tag (one tag at a time): ").lower()
# if the tag has not already been entered before (regardless of upper/lower case)
if user_tag not in tag_list:
tag_list.append(user_tag.strip()) # strip() is used in case there are random spaces used eg. " tag "
else: # if the tag has already been entered
print("You have already entered this tag. Please enter another tag.") # prevents the duplication of tags
ask_tag = input("Would you like to enter another tag? (Enter 'y' for yes or 'n' for no): ").lower()
if ask_tag == 'n':
break
q_info_dict['Tags'] = tag_list # adds the list of tags as a value to the key 'tag'
# Add tag count if tag already exists, otherwise insert tag and its count as 1
tag_collection = tags # in actual project, should be called Tags
for tag in tag_list: # for each tag entered by the user
tag_results = tag_collection.find_one({"TagName": tag.lower()}) # only one result is expected
if tag_results != None: # the tag name exists
tag_collection.update_one({"TagName": tag.lower()}, ({"$set": {"Count": tag_results['Count'] + 1}}))
# increases the tag count by 1
else:
pid = generateRandomId(posts) # generates a unique id for the tag
tag_collection.insert_one({'Id': pid, 'TagName': tag, 'Count': 1}) # new tag with an initial count of 1
return q_info_dict
"""----------------------------------------------------------------
Generates a unique pid. If the pid already exists, then it will generate another one.
In order to be fast it tries to generate an Id between 10 and 1000 by
getting a random number in this range. If it can find one that is unique -> done.
If not we increase the lower and uper range of our bounds by a factor of one hundred and try again.
Do this until we get a unique Id.
Input: none
Output: unique pid as a string
----------------------------------------------------------------"""
def generateRandomId(collection):
lower = 10
higher = 1000
q_pid = str(random.randint(lower,higher))
results = collection.find({'Id': q_pid})
while results.count():
lower = lower * 100
higher = higher * 100
q_pid = str(random.randint(lower,higher))
results = collection.find({'Id': q_pid})
return q_pid |
import sys; sys.path.insert(0, "/home/adriano/goamazondownloader")
import os
from goamazondownloader import (requests as req, tqdm)
from xml.etree import ElementTree as ET
from goamazondownloader.constants import *
from goamazondownloader._exceptions import *
from goamazondownloader._exceptions import *
class Downloader:
def __init__(self, **kwargs):
self.year = kwargs.get('year', None)
self.month = kwargs.get('month', None)
self.day = kwargs.get('day', None)
self.directory = kwargs.get('directory', None)
self.remote_url = kwargs.get('remote_url', None)
self.filename = kwargs.get('filename', None)
self.token = None
def initializer(self) -> None:
pass
def set_remote_url(self) -> None:
pass
def set_filename(self) -> None:
pass
def has_remote_url(self):
return self.remote_url is not None
def has_directory(self) -> bool:
return self.directory is not None
def has_date(self) -> bool:
return self.year is not None and self.month is not None and \
self.day is not None
def is_logged(self) -> bool:
return self.token is not None
def format_date(self) -> None:
self.year = str(self.year).zfill(4) \
if self.year is not None else None
self.month = str(self.month).zfill(2) \
if self.month is not None else None
self.day = str(self.day).zfill(2) \
if self.day is not None else None
def set_directory(self, instrument: str) -> None:
try:
if not self.has_date():
raise DateRequiredError
self.directory = INSTRUMENT_LOCAL_PATH.substitute(
instrument=instrument,
year=self.year,
month=self.month,
day=self.day)
except DateRequiredError as err:
print(err)
def make_directory(self) -> None:
try:
if not self.has_directory():
raise DirectoryRequiredError
if not os.path.exists(self.directory):
os.makedirs(self.directory)
except DirectoryRequiredError as err:
print(err)
def login(self, username: str) -> None:
try:
url_login = ARM_LOGIN_URL.substitute(username=username)
res = req.get(url_login)
tree = ET.fromstring(res.text.encode('utf-8'))
if tree.find('status').text == 'valid':
self.token = "uid=%s&st=%s" % (tree.find('id').text,
tree.find('st').text)
print('Logged as %s' % (tree.find('email').text))
else:
raise LoginUnsuccessfulError()
except LoginUnsuccessfulError as err:
print(err)
def download(self) -> None:
try:
if not self.is_logged():
raise LoginRequiredError()
if not self.has_remote_url():
raise RemoteUrlRequiredError
if os.path.exists(self.filename):
raise FileAlreadyExistError
if not os.path.exists(self.directory):
self.make_directory()
res = req.get(self.remote_url, stream=True)
total_size = int(res.headers['content-length'])
with open(self.filename, 'wb') as file:
for data in tqdm(iterable=res.iter_content(chunk_size=CHUNCK
),
total=total_size / CHUNCK, unit='KB'):
file.write(data)
print('File %s downloaded!' % self.filename)
except LoginRequiredError as err:
print(err)
except FileAlreadyExistError as err:
print(err)
except RemoteUrlRequiredError as err:
print(err)
|
#!/usr/bin/env python3
"""
Setup and install TSurvey
"""
from setuptools import setup
setup(
name="tsurvey",
version="0.1.0",
description="Anonymous Token-Based Surveys",
long_description="A Complete WSGI solution for creating Anonymous Token-Based Surveys using Flask and Peewee.",
url="https://github.com/nmoutschen/tsurvey/",
author="Nicolas Moutschen",
author_email="nicolas.moutschen@gmail.com",
license="MIT",
py_modules=["tsurvey"]
)
|
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
# File: osc4py3/oscnettools.py
# <pep8 compliant>
"""Utility functions for network or serial line communications.
Two functions, :func:`packet2slip` and :func:`slip2packet` allow to
encode and decode SLIP packets to deal with stream based communications
using this protocol to delimit packets.
A function :func:`network_getaddrinfo` wrap call to getaddrinfo(), dealing
with the general osc4py3 system of dictionnary of options (it extract
address, port, eventually some preferences from keys in the dictionnary).
"""
import socket
import collections
#=============================== SLIP SUPPORT =============================
# SLIP = Serial Line Internet Protocol. See RFC1055
SLIP_ESC_CODE = 219
SLIP_ESC_CHAR = b'\333'
SLIP_ESC_REPL = b'\333\335'
SLIP_END_CODE = 192
SLIP_END_CHAR = b'\300'
SLIP_END_REPL = b'\333\334' # Note: no END inside escape sequenc.
def packet2slip(rawdata, flagsatstart=True):
"""Build a SLIP packet from raw data.
:param rawdata: a buffer of bytes to encode into SLIP.
:type rawdata: bytes or bytearray
:param flagsatstart: put an END SLIP char also at start of the packet
:type flagsatstart: bool
:return: encoded data with SLIP protocol
:rtype: bytes
"""
rawdata = rawdata.replace(SLIP_ESC_CHAR, SLIP_ESC_REPL)
rawdata = rawdata.replace(SLIP_END_CHAR, SLIP_END_REPL)
if flagsatstart:
return SLIP_END_CHAR + rawdata + SLIP_END_CHAR
else:
return rawdata + SLIP_END_CHAR
def slip2packet(rawdata):
"""Split a buffer into decoded SLIP packet part and remaining data.
If no SLIP END is found, the packet part returned is just empty and
remaining data stay like data.
If a SLIP END is at the beginning, the packet part returned is empty
but remaining data loose its starting END byte.
.. note:: You should call this function only when you encounter a
SLIP_END_CODE byte in a SLIP encoded stream.
:param rawdata: buffer where you accumulate read bytes
:type rawdata: bytearray
:return: decoded packet with SLIP protocol (or None) and remaining bytes
after packet.
:rtype: (bytearray or None, bytearray)
"""
# Searching for the end of SLIP packet - note: END cannot be present
# out of packet delimitation as they have been replaced by an escape
# sequence without END.
endindex = rawdata.find(SLIP_END_CHAR)
if endindex < 0:
# There is no SLIP packet decoded, all data remain as is...
return None, rawdata
# Note: if we have a SLIP END char at the beginning, we just have an empty
# packet and all bytes in the remaining.
remain = rawdata[endindex + 1:]
# Unescape END and ESC from identified packet.
packet = rawdata[:endindex]
packet = packet.replace(SLIP_END_REPL, SLIP_END_CHAR)
packet = packet.replace(SLIP_ESC_REPL, SLIP_ESC_CHAR)
return packet, remain
#========================== NETWORK ADDRESS EXTRACTION ======================
AddrInfo = collections.namedtuple("AddrInfo",
"family, socktype, proto, canonname, sockaddr")
def network_getaddrinfo(options, prefix, family=0, addrtype=0, proto=0):
"""
Return socket.getaddrinfo() corresponding to the address given in options
via keys using the prefix. Port can be set to "None" to pass a None value
to underlying function.
In place of a list of simlpe tuples, we return a list of named tuple
AddrInfo which usage is more readable with fields identification.
Exemples (IPV4, IPV6, DNS):
IP address and port number are set with two separated keys:
`prefix_host`
`prefix_port`
Other options can be used to specify some parts:
`prefix_forceipv4` as boolean True
`prefix_forceipv6` as boolean True
:param family: protocol family to restrict list of replies (AF_INET or
AF_INET6 or AF_UNIX or other protocol families).
Options prefix_forceipv4 and prefix_forceipv6 can also be set to
boolean True to force a specific address family.
Default to 0 (all protocol families).
:type family: int (overriden by options providen)
:param addrtype: type of socket to restrict list of replies (SOCK_STREAM
or socket.SOCK_DGRAM or other socket types).
Default to 0 (all socket types).
:type addrtype: int
:param proto: protocol specified to restrict list of replies (ex. just
retrieve UDP with socket.SOL_UDP, or just retrieve TCP
with socket.SOL_TCP).
Default to 0 (all protocols).
:type proto: int
:return: list of address informations to use by socket().
:rtype: [ AddrInfo ]
"""
flags = 0
flags |= socket.AI_CANONNAME
forceipv4 = options.get(prefix + '_forceipv4', False)
forceipv6 = options.get(prefix + '_forceipv6', False)
if forceipv4 and forceipv6:
raise ValueError("OSC {} force IPV4 and IPV6 simultaneously in "\
"options.".format(prefix))
host = options.get(prefix + '_host', None)
port = options.get(prefix + '_port', None)
if host is None:
raise ValueError("OSC {} missing host "\
"information.".format(prefix))
if host == "*": # Our match for all interfaces.
host = None # for getaddrinfo()
flags |= socket.AI_PASSIVE
else:
host = host.strip()
# Remove possible [] around IPV6 address (great for URL-like but
# not supported by getaddrinfo().
if host.startswith('[') and host.endswith(']'):
host = host[1:-1]
# Note: removed port cast to int as getaddrinfo() allow to use port
# service names in place of port numbers.
if isinstance(port, str):
port = port.strip()
if port.lower() == "none":
port = 0
else:
port = int(port)
if forceipv4:
family = socket.AF_INET
elif forceipv6:
family = socket.AF_INET6
else:
# We give possibility to caller to specify family at his level
# (ie. dont override a providen family).
pass
# Note: use AI_CANONNAME as we may try to use DNS names for peer
# identification.
res = socket.getaddrinfo(host, port, family, addrtype, proto,
flags=flags)
if not res:
raise ValueError("OSC {} get no addrinfo for host/port with "\
"specified protocol/family".format(prefix))
# Translate to more readable named tuple.
res = [ AddrInfo(*r) for r in res ]
# Automatically populate DNS cache for source identification.
if not options.get(prefix + '_dontcache', False):
cache_from_addr_info(res)
return res
#=========================== IDENTIFICATION CACHE ===========================
# As we would use host names for identification of peers, we need a quick
# way to go from an address (IPV4/IPV6) to a host name.
# If channel classes correctly use network_getaddrinfo(), this correspondance
# is normally automatically setup.
dns_cache = {}
def cache_dns_identification(address, identification, override=False):
"""Cache an IP address (IPV4/IPV6) and its associated DNS name.
Override to force update of mapping if the entry is already present.
"""
global dns_cache
# If an addre has already been mapped, dont remap it (this allow top
# level program to make its own mapping out of DNS, using non fqdn
# names or completly arbitrary names).
if address not in dns_cache or override:
dns_cache[address] = identification
def cache_from_addr_info(addrinfo):
"""Build DNS cache entries from a result of getaddrinfo() call.
"""
# Search for a canonical name.
canonname = None
for r in addrinfo:
if r[3]:
canonname = r[3]
break
if canonname:
# Cache addresses corresponding to canonname.
for r in addrinfo:
cache_dns_identification(r[4][0], canonname)
def resolve_dns_identification(address, forceresolution=False):
"""Retrieve the DNS name from an IP address.
Used to have readable identifiers for peer OSC systems.
Return None if there is no cached information (eventually after trying
to force DNS resolution for cache update).
"""
if address in dns_cache:
return dns_cache[address]
elif forceresolution:
# Setup DNS resolution mapping (port number ?).
res = socket.getaddrinfo(address, 1, flags=socket.AI_CANONNAME)
cache_from_addr_info(res)
# Recursive call, but without forceresolution.
if address in dns_cache:
return dns_cache[address]
else: # prevent future try to resolve address/port
dns_cache[address] = None
# Default, not found.
return None
|
from PACK import *
class BaseNet(nn.Module):
def __init__(self):
super(BaseNet, self).__init__()
def forward_feature(self, *x):
x0 = x[0]
x0 = self.feature(x0)
x0 = x0.view(x0.size(0), -1)
return x0
def forward_train(self, *x):
x0 = x[0]
x1 = x[1]
x2 = x[2]
x0 = self.feature(x0)
x1 = self.feature(x1)
x2 = self.feature(x2)
x0 = x0.view(x0.size(0), -1)
x1 = x1.view(x1.size(0), -1)
x2 = x2.view(x2.size(0), -1)
x0n = F.normalize(x0, p=2, dim=1)
x1n = F.normalize(x1, p=2, dim=1)
x2n = F.normalize(x2, p=2, dim=1)
v1 = x1 - x0
v2 = x2 - x0
w1 = self.generator(v1)
w2 = self.generator(v2)
return w1, w2, (x0n - x1n).pow(2).sum(1), (x0n - x2n).pow(2).sum(1)
def forward(self, *x):
if len(x)==1:
x = self.forward_feature(*x)
return x
elif len(x)==3:
w1, w2, d1, d2 = self.forward_train(*x)
return w1, w2, d1, d2
class myVGGNet(BaseNet):
def __init__(self):
super(myVGGNet, self).__init__()
vgg = models.vgg19(pretrained=True)
self.feature = nn.Sequential(*(vgg.features[i] for i in range(36)))
self.feature.add_module('36: GlobalPooling', nn.AdaptiveMaxPool2d(1))
self.generator = nn.Sequential(
nn.Linear(512, 256),
nn.ReLU(),
nn.Linear(256, 64),
nn.ReLU(),
nn.Linear(64, 1),
)
class myAlexNet(BaseNet):
def __init__(self):
super(myAlexNet, self).__init__()
alexnet = models.alexnet(pretrained=True)
self.feature = nn.Sequential(*(alexnet.features[i] for i in range(12)))
self.feature.add_module('12: Global Pooling', nn.AdaptiveMaxPool2d(1))
self.generator = nn.Sequential(
nn.Linear(256, 128),
nn.ReLU(),
nn.Linear(128, 64),
nn.ReLU(),
nn.Linear(64, 1),
)
class myResNet(BaseNet):
def __init__(self):
super(myResNet, self).__init__()
resnet = models.resnet50(pretrained=True)
self.feature = nn.Sequential(*list(resnet.children())[:-2])
self.feature.add_module('8: Global Pooling', nn.AdaptiveMaxPool2d(1))
self.generator = nn.Sequential(
nn.Linear(2048, 512),
nn.ReLU(),
nn.Linear(512, 64),
nn.ReLU(),
nn.Linear(64, 1),
)
if __name__ == '__main__':
vgg = myVGGNet()
alexnet = myAlexNet()
resnet = myResNet()
print vgg
print alexnet
print resnet
|
import scrapy
from datetime import datetime
from scrapy.http import Request, FormRequest
from scrapy.utils.response import open_in_browser
from json import load, dump
class BookSpider(scrapy.Spider):
name = 'book_of_modules'
start_urls = ['https://bookofmodules.ul.ie/']
dsk_query = '' # bulk search query on libgen.rs
module_count = 0
book_of_modules = []
module_required_texts = {}
module_codes = []
def __init__(self):
with open(r'C:\Users\Emmett\magi-spiders\data\ul_course_timetables.json', 'r') as timetables:
json_obj = load(timetables)
for timetable in json_obj:
for classes in timetable['class']:
self.module_codes.append(classes['module'])
def parse(self, response):
current_module = 0
for module_code in self.module_codes:
if(module_code not in self.module_codes[:current_module]):
yield FormRequest.from_response(response, formdata={'ctl00$MasterContentPlaceHolder$ModuleDropDown': module_code, 'ctl00$MasterContentPlaceHolder$SubmitQuery.x': '4', 'ctl00$MasterContentPlaceHolder$SubmitQuery.y': '11'}, meta={'module':module_code}, callback=self.module_details)
else:
print('DUPLICATE:', current_module)
current_module+=1
def module_details(self, response):
# open_in_browser(response)
module_info = {
'module_code': 'Null',
'module_title': 'Null',
'required_hours': {},
'prerequisites': 'Null',
'purpose': 'Null',
'syllabus': 'Null',
'learning_outcomes': 'Null',
'affective': 'Null',
'pyschomotor': 'Null',
'books': []
}
module_info['module_code'] = response.meta['module']
module_code_title_element = (response.xpath('/html/body/form/div/div[2]/div[5]/div[3]/text()').getall())[1].split(' ')
module_info['module_title'] = ' '.join([x for x in module_code_title_element if module_info['module_code'] not in x or x == ' ' and x != ''])
module_info['module_title'] = module_info['module_title'].replace('-\r\n', '').strip()
list_of_hours = response.xpath('/html/body/form/div/div[2]/div[5]/div[5]/*/text()').getall()
list_of_hours = [x.replace(' ', '').replace('\r\n', '') for x in list_of_hours if x.replace(' ', '').replace('\r\n', '').isnumeric]
list_of_deliveries = response.xpath('/html/body/form/div/div[2]/div[5]/div[5]/*/*/text()').getall()
delivery = 0
required_hours = {}
for hours in list_of_hours:
if(hours.isnumeric()):
required_hours[list_of_deliveries[delivery]] = hours
delivery+=1
try:
module_info['required_hours'] = required_hours
except AttributeError as e:
module_info['required_hours'] = 'Null'
try:
module_info['prerequisites'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[7]/div/text()').get().strip()
except AttributeError as e:
module_info['prerequisites'] = 'Null'
try:
module_info['purpose'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[8]/div/text()').get().strip()
except AttributeError as e:
module_info['purpose'] = 'Null'
try:
module_info['syllabus'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[9]/div/text()').get().strip()
except AttributeError as e:
module_info['syllabus'] = 'Null'
try:
module_info['learning_outcomes'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[11]/div/text()').get().strip()
except AttributeError as e:
module_info['learning_outcomes'] = 'Null'
try:
module_info['affective'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[12]/div/text()').get().strip()
except AttributeError as e:
module_info['affective'] = 'Null'
try:
module_info['pyschomotor'] = response.xpath('/html/body/form/div/div[2]/div[5]/div[13]/div/text()').get().strip()
except AttributeError as e:
module_info['pyschomotor'] = 'Null'
book_details = response.xpath('//*[@id="ctl00_MasterContentPlaceHolder_ModuleFull_ListViewUpdatePanel"]/*')
for data in book_details:
title = data.xpath('h1/text()').get()
if(title != None):
title = title.strip()
if('prime texts' in title.lower()):
for book in data.xpath('div'):
found_book = {
'publisher': 'Null',
'title': 'Null',
'edition': 'Null',
'year': 'Null',
'author': 'Null',
'required': "Yes",
}
author_publisher = (book.xpath('text()').getall())
author = author_publisher[0]
publisher = author_publisher[1].replace(',', '')
year_published = ''.join([word for word in author.split(" ") if ('20' in word or '19' in word) and (word.replace('(', ''))[0] in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']])
found_book['author'] = author.replace(year_published, '').replace(')', '').replace('(', '').strip()
found_book['publisher'] = publisher.strip()
found_book['title'] = (book.xpath('i/text()').get()).strip()
found_book['edition'] = ''.join([word for word in found_book['title'].split(" ") if ('th' in word or 'rd' in word) and word[0] in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']])
found_book['year'] = year_published.replace(')', '').replace('(', '')
module_info['books'].append(found_book)
elif('other relevant texts' in title.lower()):
for book in data.xpath('div'):
found_book = {
'publisher': 'Null',
'title': 'Null',
'edition': 'Null',
'year': 'Null',
'author': 'Null',
'required': "No",
}
author_publisher = (book.xpath('text()').getall())
author = author_publisher[0]
publisher = author_publisher[1].replace(',', '')
year_published = ''.join([word for word in author.split(" ") if ('20' in word or '19' in word) and (word.replace('(', ''))[0] in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']])
found_book['author'] = author.replace(year_published, '').replace(')', '').replace('(', '').strip().replace("\\n", "").replace("\\", "")
found_book['publisher'] = publisher.strip()
found_book['title'] = (book.xpath('i/text()').get()).strip().replace('(', '').replace(')', '').replace("\\n", "").replace("\\", "")
found_book['edition'] = ''.join([word for word in found_book['title'].split(" ") if ('th' in word or 'rd' in word) and word[0] in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']])
found_book['year'] = year_published.replace(')', '').replace('(', '')
module_info['books'].append(found_book)
self.book_of_modules.append(module_info)
print(self.book_of_modules)
def closed(self, response):
with open(r'C:\Users\Emmett\magi-spiders\data\ul_module_details.json', 'w+', encoding="utf-8") as of:
dump(self.book_of_modules, of) |
# KVM-based Discoverable Cloudlet (KD-Cloudlet)
# Copyright (c) 2015 Carnegie Mellon University.
# All Rights Reserved.
#
# THIS SOFTWARE IS PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. CARNEGIE MELLON UNIVERSITY EXPRESSLY DISCLAIMS TO THE FULLEST EXTENT PERMITTEDBY LAW ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS.
#
# Released under a modified BSD license, please see license.txt for full terms.
# DM-0002138
#
# KD-Cloudlet includes and/or makes use of the following Third-Party Software subject to their own licenses:
# MiniMongo
# Copyright (c) 2010-2014, Steve Lacy
# All rights reserved. Released under BSD license.
# https://github.com/MiniMongo/minimongo/blob/master/LICENSE
#
# Bootstrap
# Copyright (c) 2011-2015 Twitter, Inc.
# Released under the MIT License
# https://github.com/twbs/bootstrap/blob/master/LICENSE
#
# jQuery JavaScript Library v1.11.0
# http://jquery.com/
# Includes Sizzle.js
# http://sizzlejs.com/
# Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
# Released under the MIT license
# http://jquery.org/license
__author__ = 'Sebastian'
import datetime
from pycloud.pycloud.mongo import Model
from pycloud.pycloud.cloudlet import get_cloudlet_instance
from pycloud.pycloud.security import radius
from pycloud.pycloud.security import credentials
from pycloud.pycloud.model.paired_device import PairedDevice
################################################################################################################
#
################################################################################################################
class DeviceAlreadyPairedException(Exception):
def __init__(self, message):
super(DeviceAlreadyPairedException, self).__init__(message)
self.message = message
# ###############################################################################################################
# Represents a deployment of authorization on the cloudlet.
################################################################################################################
class Deployment(Model):
# Meta class is needed so that minimongo can map this class onto the database.
class Meta:
collection = "deployment"
external = ['_id', 'auth_start', 'auth_duration']
mapping = {
}
################################################################################################################
# Constructor.
################################################################################################################
def __init__(self, *args, **kwargs):
self.auth_start = None
self.auth_duration = 0
self.cloudlet = None
self.radius_server = None
self.server_keys = None
super(Deployment, self).__init__(*args, **kwargs)
################################################################################################################
# Set up from configuration stored in cloudlet singleton.
################################################################################################################
def config_setup(self):
self.cloudlet = get_cloudlet_instance()
self.radius_server = radius.RadiusServer(self.cloudlet.radius_users_file,
self.cloudlet.radius_certs_folder,
self.cloudlet.radius_eap_conf_file)
self.server_keys = credentials.ServerCredentials.create_object(self.cloudlet.credentials_type,
self.cloudlet.data_folder)
################################################################################################################
# Overrides the save method to remove keys we don't want to store temporarily.
################################################################################################################
def save(self, *args, **kwargs):
self.cloudlet = None
self.radius_server = None
self.server_keys = None
super(Deployment, self).save(*args, **kwargs)
self.config_setup()
################################################################################################################
# Returns an instance of Depoyment, with data from DB if any, and config already setup.
################################################################################################################
@staticmethod
def get_instance():
deployment = Deployment.find_one()
if not deployment:
deployment = Deployment()
deployment.config_setup()
return deployment
############################################################################################################
# Removes the deployment.
############################################################################################################
def remove(self):
return Deployment.find_and_modify(query={}, remove=True)
############################################################################################################
# Clears all deployment info.
############################################################################################################
def clear(self):
# Remove users from RADIUS server.
print 'Removing paired devices from RADIUS server.'
devices = PairedDevice.find()
device_ids = []
for device in devices:
device_ids.append(device.device_id)
device.stop_associated_instance()
self.radius_server.remove_user_credentials(device_ids)
# Remove all data from DB.
print 'Clearing up database.'
PairedDevice.clear_data()
############################################################################################################
# Bootstraps encryption material and configs.
############################################################################################################
def bootstrap(self, duration):
self.clear()
# Create server keys.
server_keys = credentials.ServerCredentials.create_object(self.cloudlet.credentials_type,
self.cloudlet.data_folder)
server_keys.generate_and_save_to_file()
# Create RADIUS server certificate.
self.radius_server.generate_certificate()
# Set up a new deployment.
self.auth_start = datetime.datetime.now()
self.auth_duration = duration
self.save()
################################################################################################################
# Pairs a connected device to this deployment.
################################################################################################################
def pair_device(self, device_internal_id, connection_id, device_type):
try:
# Check if the device was already paired, and if so, abort.
previously_paired_device = PairedDevice.by_id(device_internal_id)
if previously_paired_device:
raise DeviceAlreadyPairedException("Device with id {} is already paired.".format(device_internal_id))
else:
print "Pairing with {}.".format(device_internal_id)
# Generate credentials, register the device, and return them.
device_keys = self.__generate_device_credentials(device_internal_id)
self.__register_device(device_internal_id, connection_id, device_keys.auth_password,
device_keys.encryption_password, device_type)
return device_keys
except DeviceAlreadyPairedException as e:
raise e
except Exception as e:
raise Exception("Error pairing with device: " + str(e))
################################################################################################################
# Generates the needed credentials for a device being paired.
################################################################################################################
def __generate_device_credentials(self, device_id):
# Prepare the server and device credential objects.
device_keys = credentials.DeviceCredentials.create_object(self.cloudlet.credentials_type,
self.cloudlet.data_folder,
device_id,
self.server_keys.private_key_path,
self.server_keys.public_key_path,)
# Create the device's private key and the device's passwords.
device_keys.generate_and_save_to_file()
return device_keys
############################################################################################################
# Register a device after pairing it.
############################################################################################################
def __register_device(self, device_id, connection_id, auth_password, enc_password, device_type):
# Create a new paired device with the id info we just received.
print 'Adding paired device to DB.'
paired_device = PairedDevice()
paired_device.device_id = device_id
paired_device.connection_id = connection_id
paired_device.password = enc_password
paired_device.type = device_type
# By default, authorization for a device will be the same as the deployment info.
paired_device.auth_start = self.auth_start
paired_device.auth_duration = self.auth_duration
paired_device.auth_enabled = True
# Store the paired device.
paired_device.save()
# Store the new device credentials in the RADIUS server.
self.radius_server.add_user_credentials(paired_device.device_id, auth_password)
# Go to the main page.
print 'Device added to DB.'
############################################################################################################
#
############################################################################################################
def send_paired_credentials(self, curr_device, device_keys):
# Send the server's public key.
curr_device.send_file(self.server_keys.public_key_path, 'server_public.key')
# Send the device's private key to the device.
curr_device.send_file(device_keys.private_key_path, 'device.key')
# Send RADIUS certificate to the device.
cert_file_name = radius.RADIUS_CERT_FILE_NAME
curr_device.send_file(self.radius_server.cert_file_path, cert_file_name)
# Send a command to create a Wi-Fi profile on the device. The message has to contain three key pairs:
# ssid, the RADIUS certificate filename, and the password to be used in the profile.
ssid = self.cloudlet.ssid
curr_device.send_data({'command': 'wifi-profile',
'ssid': ssid,
'server_cert_name': cert_file_name,
'password': device_keys.auth_password})
############################################################################################################
#
############################################################################################################
def clear_device_keys(self, device_keys):
# Remove the device private key and password files, for security cleanup.
if device_keys:
device_keys.delete_key_files()
############################################################################################################
#
############################################################################################################
def unpair_device(self, device_id):
# Remove it from the list.
print 'Removing paired device from DB.'
paired_device = PairedDevice.by_id(device_id)
paired_device.stop_associated_instance()
PairedDevice.find_and_remove(device_id)
# Remove from RADIUS server.
print 'Removing paired device from RADIUS server.'
self.radius_server.remove_user_credentials([device_id])
############################################################################################################
#
############################################################################################################
def revoke_device(self, device_id):
# Mark it as disabled.
paired_device = PairedDevice.by_id(device_id)
paired_device.auth_enabled = False
paired_device.save()
paired_device.stop_associated_instance()
# Remove from RADIUS server.
print 'Removing paired device from RADIUS server.'
self.radius_server.remove_user_credentials([device_id])
############################################################################################################
#
############################################################################################################
def reauthorize_device(self, device_id):
# Mark it as enabled.
paired_device = PairedDevice.by_id(device_id)
paired_device.auth_enabled = True
paired_device.save()
# Store the device credentials in the RADIUS server.
self.radius_server.add_user_credentials(paired_device.device_id, paired_device.password)
|
#!/usr/bin/env python
# Level Script
# Use scene.when to schedule events.
# Yield when you want to wait until the next event.
# This is a generator. Using a busy loop will halt the game.
from math import pi
from random import uniform
from game.entities.ai import AvoidAi
from game.scripts.level import Level
class Level4(Level):
number = 4
name = "The Butterfly Menace"
ground = "#F7CA18"
sky = "#303266"
music = "butterfly.ogg"
default_ai = AvoidAi(50, 40)
def __call__(self):
self.scene.stars()
# reset in case we are doing the level again
# As it is changed throughout the level
self.default_ai = AvoidAi(50, 40)
with self.skip():
yield from super().__call__()
self.engine_boost(1.5)
text = """The butterflies have been hiding
in the great Desert.
Put it an end
While they're still weak!
"""
yield from self.slow_type_lines(text, 5, "yellow", 0.05)
for i in range(10):
self.spawn(uniform(-0.5, 0.5), 0)
yield self.medium_pause()
yield self.medium_pause()
yield from self.v_shape(4)
yield self.medium_pause()
yield from self.combine(
self.rotating_v_shape(4, angular_mult=0.5),
self.rotating_v_shape(4, start_angle=pi / 2, angular_mult=0.5),
)
yield self.bigg_pause()
yield from self.combine(
self.rotating_v_shape(4, angular_mult=0.4),
self.rotating_v_shape(4, start_angle=pi * 2 / 3, angular_mult=0.4),
self.rotating_v_shape(4, start_angle=pi * 4 / 3, angular_mult=0.4),
)
yield self.bigg_pause()
text = """
They sure are avoiding well.
Take those aiming bullets.
And teach them a lesson!""".splitlines()
yield from self.slow_type(text[1], color="yellow")
yield from self.slow_type(text[2].center(len(text[1])), color="green")
self.spawn_powerup("A", 0, 0)
yield from self.slow_type(text[3].center(len(text[1])), color="yellow")
yield self.big_pause()
self.terminal.clear()
self.default_ai.radius *= 1.3
with self.set_faster(2):
for i in range(20):
self.spawn(uniform(-0.3, 0.3), 0)
yield self.small_pause()
yield self.big_pause()
yield from self.combine(
self.rotating_v_shape(5), self.rotating_v_shape(5, start_angle=pi),
)
yield self.big_pause()
self.spawn_powerup("A", 0, 0)
yield from self.rotating_circle(5, 30, 1.3)
yield self.big_pause()
self.spawn(0, 0)
yield from self.rotating_circle(5, 60, 1.5)
self.spawn_powerup("A", 0, 0)
yield self.huge_pause()
yield from self.rotating_circle(
8, 100,
)
self.huge_pause()
yield from self.rotating_v_shape(4)
self.medium_pause()
yield from self.rotating_v_shape(4)
# TODO: Check for level clear ?
yield self.huge_pause()
yield from self.slow_type("Well done !", 5, "green", clear=True)
|
#! Homework lesson 1 part 1
words = ["разработка", "сокет", "декоратор"]
unicode_words = ["\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430",
"\u0441\u043e\u043a\u0435\u0442",
"\u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440"]
print("Слова в строковом формате")
for w in words:
print(w, type(w))
print("\nСлова в формате Unicode")
for uw in unicode_words:
print(uw, type(uw)) |
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 3 10:11:29 2013
@author: bejar
"""
import numpy as np
import scipy.io
import matplotlib
matplotlib.use('SVG')
from pylab import *
from numpy.fft import rfft, irfft
import pywt
def plotSignalValues(signal1,name):
fig = plt.figure()
minaxis=min(signal1)
maxaxis=max(signal1)
num=len(signal1)
print num
sp1=fig.add_subplot(111)
sp1.axis([0,num,minaxis,maxaxis])
t = arange(0.0, num, 1)
sp1.plot(t,signal1)
plt.savefig(cres+name)
plt.show()
def plotSignalValues2(signal1,name):
fig = plt.figure()
minaxis=min(signal1[:,0])
maxaxis=max(signal1[:,0])
num=len(signal1)
print num
sp1=fig.add_subplot(111)
# sp1.axis([0,num,minaxis,maxaxis])
sp1.plot(signal1[:,0],signal1[:,1])
plt.savefig(cres+name)
plt.show()
cpath='/home/bejar/MEG/Data/control/'
cres='/home/bejar/Documentos/Investigacion/MEG/res/'
#name='MMN-201205251030'
name='control1-MMN'
mats=scipy.io.loadmat( cpath+name+'.mat')
data= mats['data']
chann=mats['names']
plotSignalValues(data[30,300:700],'signal1.svg')
plotSignalValues(data[30,800:1200],'signal2.svg')
#orig=data[90,0:500]
#
#temp= rfft(data[90,0:500])
#
#plotSignalValues(temp,'fft.svg')
#
#
#tempwA,tempwD=pywt.dwt(data[90,0:500], 'sym2')
#plotSignalValues(tempwD,'wave.svg')
#
#
#tlag=np.zeros((498,2))
#
#for i in range(498):
# tlag[i,0]=(orig[i]-orig[i+1])
# tlag[i,1]=(orig[i+1]-orig[i+2])
# print tlag[i,:]
#
#plotSignalValues2(tlag,'tlag.svg')
|
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import itertools
import re
from collections import defaultdict
from typing import Iterable, Iterator, Sequence, Tuple, TypeVar
from pkg_resources import Requirement
from typing_extensions import Protocol
from pants.backend.python.subsystems.setup import PythonSetup
from pants.backend.python.target_types import InterpreterConstraintsField
from pants.build_graph.address import Address
from pants.engine.engine_aware import EngineAwareParameter
from pants.engine.target import Target
from pants.util.docutil import bin_name
from pants.util.frozendict import FrozenDict
from pants.util.memo import memoized
from pants.util.ordered_set import FrozenOrderedSet, OrderedSet
from pants.util.strutil import softwrap
# This protocol allows us to work with any arbitrary FieldSet. See
# https://mypy.readthedocs.io/en/stable/protocols.html.
class FieldSetWithInterpreterConstraints(Protocol):
@property
def address(self) -> Address:
...
@property
def interpreter_constraints(self) -> InterpreterConstraintsField:
...
_FS = TypeVar("_FS", bound=FieldSetWithInterpreterConstraints)
RawConstraints = Tuple[str, ...]
# The current maxes are 2.7.18 and 3.6.15. We go much higher, for safety.
_PATCH_VERSION_UPPER_BOUND = 30
@memoized
def interpreter_constraints_contains(
a: RawConstraints, b: RawConstraints, interpreter_universe: tuple[str, ...]
) -> bool:
"""A memoized version of `InterpreterConstraints.contains`.
This is a function in order to keep the memoization cache on the module rather than on an
instance. It can't go on `PythonSetup`, since that would cause a cycle with this module.
"""
return InterpreterConstraints(a).contains(InterpreterConstraints(b), interpreter_universe)
@memoized
def parse_constraint(constraint: str) -> Requirement:
"""Parse an interpreter constraint, e.g., CPython>=2.7,<3.
We allow shorthand such as `>=3.7`, which gets expanded to `CPython>=3.7`. See Pex's
interpreter.py's `parse_requirement()`.
"""
try:
parsed_requirement = Requirement.parse(constraint)
except ValueError:
parsed_requirement = Requirement.parse(f"CPython{constraint}")
return parsed_requirement
# Normally we would subclass `DeduplicatedCollection`, but we want a custom constructor.
class InterpreterConstraints(FrozenOrderedSet[Requirement], EngineAwareParameter):
@classmethod
def for_fixed_python_version(
cls, python_version_str: str, interpreter_type: str = "CPython"
) -> InterpreterConstraints:
return cls([f"{interpreter_type}=={python_version_str}"])
def __init__(self, constraints: Iterable[str | Requirement] = ()) -> None:
# #12578 `parse_constraint` will sort the requirement's component constraints into a stable form.
# We need to sort the component constraints for each requirement _before_ sorting the entire list
# for the ordering to be correct.
parsed_constraints = (
i if isinstance(i, Requirement) else parse_constraint(i) for i in constraints
)
super().__init__(sorted(parsed_constraints, key=lambda c: str(c)))
def __str__(self) -> str:
return " OR ".join(str(constraint) for constraint in self)
def debug_hint(self) -> str:
return str(self)
@property
def description(self) -> str:
return str(sorted(str(c) for c in self))
@classmethod
def merge(cls, ics: Iterable[InterpreterConstraints]) -> InterpreterConstraints:
return InterpreterConstraints(
cls.merge_constraint_sets(tuple(str(requirement) for requirement in ic) for ic in ics)
)
@classmethod
def merge_constraint_sets(
cls, constraint_sets: Iterable[Iterable[str]]
) -> frozenset[Requirement]:
"""Given a collection of constraints sets, merge by ORing within each individual constraint
set and ANDing across each distinct constraint set.
For example, given `[["CPython>=2.7", "CPython<=3"], ["CPython==3.6.*"]]`, return
`["CPython>=2.7,==3.6.*", "CPython<=3,==3.6.*"]`.
"""
# A sentinel to indicate a requirement that is impossible to satisfy (i.e., one that
# requires two different interpreter types).
impossible = parse_constraint("IMPOSSIBLE")
# Each element (a Set[ParsedConstraint]) will get ANDed. We use sets to deduplicate
# identical top-level parsed constraint sets.
# First filter out any empty constraint_sets, as those represent "no constraints", i.e.,
# any interpreters are allowed, so omitting them has the logical effect of ANDing them with
# the others, without having to deal with the vacuous case below.
constraint_sets = [cs for cs in constraint_sets if cs]
if not constraint_sets:
return frozenset()
parsed_constraint_sets: set[frozenset[Requirement]] = set()
for constraint_set in constraint_sets:
# Each element (a ParsedConstraint) will get ORed.
parsed_constraint_set = frozenset(
parse_constraint(constraint) for constraint in constraint_set
)
parsed_constraint_sets.add(parsed_constraint_set)
if len(parsed_constraint_sets) == 1:
return next(iter(parsed_constraint_sets))
def and_constraints(parsed_constraints: Sequence[Requirement]) -> Requirement:
merged_specs: set[tuple[str, str]] = set()
expected_interpreter = parsed_constraints[0].project_name
for parsed_constraint in parsed_constraints:
if parsed_constraint.project_name != expected_interpreter:
return impossible
merged_specs.update(parsed_constraint.specs)
formatted_specs = ",".join(f"{op}{version}" for op, version in merged_specs)
return parse_constraint(f"{expected_interpreter}{formatted_specs}")
ored_constraints = (
and_constraints(constraints_product)
for constraints_product in itertools.product(*parsed_constraint_sets)
)
ret = frozenset(cs for cs in ored_constraints if cs != impossible)
if not ret:
# There are no possible combinations.
attempted_str = " AND ".join(f"({' OR '.join(cs)})" for cs in constraint_sets)
raise ValueError(
softwrap(
f"""
These interpreter constraints cannot be merged, as they require
conflicting interpreter types: {attempted_str}
"""
)
)
return ret
@classmethod
def create_from_targets(
cls, targets: Iterable[Target], python_setup: PythonSetup
) -> InterpreterConstraints | None:
"""Returns merged InterpreterConstraints for the given Targets.
If none of the given Targets have InterpreterConstraintsField, returns None.
NB: Because Python targets validate that they have ICs which are a subset of their
dependencies, merging constraints like this is only necessary when you are _mixing_ code
which might not have any inter-dependencies, such as when you're merging un-related roots.
"""
fields = [
tgt[InterpreterConstraintsField]
for tgt in targets
if tgt.has_field(InterpreterConstraintsField)
]
if not fields:
return None
return cls.create_from_compatibility_fields(fields, python_setup)
@classmethod
def create_from_compatibility_fields(
cls, fields: Iterable[InterpreterConstraintsField], python_setup: PythonSetup
) -> InterpreterConstraints:
"""Returns merged InterpreterConstraints for the given `InterpreterConstraintsField`s.
NB: Because Python targets validate that they have ICs which are a subset of their
dependencies, merging constraints like this is only necessary when you are _mixing_ code
which might not have any inter-dependencies, such as when you're merging un-related roots.
"""
constraint_sets = {field.value_or_global_default(python_setup) for field in fields}
# This will OR within each field and AND across fields.
merged_constraints = cls.merge_constraint_sets(constraint_sets)
return InterpreterConstraints(merged_constraints)
@classmethod
def group_field_sets_by_constraints(
cls, field_sets: Iterable[_FS], python_setup: PythonSetup
) -> FrozenDict[InterpreterConstraints, tuple[_FS, ...]]:
results = defaultdict(set)
for fs in field_sets:
constraints = cls.create_from_compatibility_fields(
[fs.interpreter_constraints], python_setup
)
results[constraints].add(fs)
return FrozenDict(
{
constraints: tuple(sorted(field_sets, key=lambda fs: fs.address))
for constraints, field_sets in sorted(results.items())
}
)
def generate_pex_arg_list(self) -> list[str]:
args = []
for constraint in self:
args.extend(["--interpreter-constraint", str(constraint)])
return args
def _valid_patch_versions(self, major: int, minor: int) -> Iterator[int]:
for p in range(0, _PATCH_VERSION_UPPER_BOUND + 1):
for req in self:
if req.specifier.contains(f"{major}.{minor}.{p}"): # type: ignore[attr-defined]
yield p
def _includes_version(self, major: int, minor: int) -> bool:
return any(True for _ in self._valid_patch_versions(major, minor))
def includes_python2(self) -> bool:
"""Checks if any of the constraints include Python 2.
This will return True even if the code works with Python 3 too, so long as at least one of
the constraints works with Python 2.
"""
return self._includes_version(2, 7)
def minimum_python_version(self, interpreter_universe: Iterable[str]) -> str | None:
"""Find the lowest major.minor Python version that will work with these constraints.
The constraints may also be compatible with later versions; this is the lowest version that
still works.
"""
for major, minor in sorted(_major_minor_to_int(s) for s in interpreter_universe):
if self._includes_version(major, minor):
return f"{major}.{minor}"
return None
def snap_to_minimum(self, interpreter_universe: Iterable[str]) -> InterpreterConstraints | None:
"""Snap to the lowest Python major.minor version that works with these constraints.
Will exclude patch versions that are expressly incompatible.
"""
for major, minor in sorted(_major_minor_to_int(s) for s in interpreter_universe):
for p in range(0, _PATCH_VERSION_UPPER_BOUND + 1):
for req in self:
if req.specifier.contains(f"{major}.{minor}.{p}"): # type: ignore[attr-defined]
# We've found the minimum major.minor that is compatible.
req_strs = [f"{req.project_name}=={major}.{minor}.*"]
# Now find any patches within that major.minor that we must exclude.
invalid_patches = sorted(
set(range(0, _PATCH_VERSION_UPPER_BOUND + 1))
- set(self._valid_patch_versions(major, minor))
)
req_strs.extend(f"!={major}.{minor}.{p}" for p in invalid_patches)
req_str = ",".join(req_strs)
snapped = parse_constraint(req_str)
return InterpreterConstraints([snapped])
return None
def _requires_python3_version_or_newer(
self, *, allowed_versions: Iterable[str], prior_version: str
) -> bool:
if not self:
return False
patch_versions = list(reversed(range(0, _PATCH_VERSION_UPPER_BOUND)))
# We only look at the prior Python release. For example, consider Python 3.8+
# looking at 3.7. If using something like `>=3.5`, Py37 will be included.
# `==3.6.*,!=3.7.*,==3.8.*` is unlikely, and even that will work correctly as
# it's an invalid constraint so setuptools returns False always. `['==2.7.*', '==3.8.*']`
# will fail because not every single constraint is exclusively 3.8.
prior_versions = [f"{prior_version}.{p}" for p in patch_versions]
allowed_versions = [
f"{major_minor}.{p}" for major_minor in allowed_versions for p in patch_versions
]
def valid_constraint(constraint: Requirement) -> bool:
if any(
constraint.specifier.contains(prior) for prior in prior_versions # type: ignore[attr-defined]
):
return False
if not any(
constraint.specifier.contains(allowed) for allowed in allowed_versions # type: ignore[attr-defined]
):
return False
return True
return all(valid_constraint(c) for c in self)
def requires_python38_or_newer(self, interpreter_universe: Iterable[str]) -> bool:
"""Checks if the constraints are all for Python 3.8+.
This will return False if Python 3.8 is allowed, but prior versions like 3.7 are also
allowed.
"""
py38_and_later = [
interp for interp in interpreter_universe if _major_minor_to_int(interp) >= (3, 8)
]
return self._requires_python3_version_or_newer(
allowed_versions=py38_and_later, prior_version="3.7"
)
def to_poetry_constraint(self) -> str:
specifiers = []
wildcard_encountered = False
for constraint in self:
specifier = str(constraint.specifier) # type: ignore[attr-defined]
if specifier:
specifiers.append(specifier)
else:
wildcard_encountered = True
if not specifiers or wildcard_encountered:
return "*"
return " || ".join(specifiers)
def enumerate_python_versions(
self, interpreter_universe: Iterable[str]
) -> FrozenOrderedSet[tuple[int, int, int]]:
"""Return a set of all plausible (major, minor, patch) tuples for all Python 2.7/3.x in the
specified interpreter universe that matches this set of interpreter constraints.
This also validates our assumptions around the `interpreter_universe`:
- Python 2.7 is the only Python 2 version in the universe, if at all.
- Python 3 is the last major release of Python, which the core devs have committed to in
public several times.
"""
if not self:
return FrozenOrderedSet()
minors = []
for major_minor in interpreter_universe:
major, minor = _major_minor_to_int(major_minor)
if major == 2:
if minor != 7:
raise AssertionError(
softwrap(
f"""
Unexpected value in `[python].interpreter_versions_universe`:
{major_minor}. Expected the only Python 2 value to be '2.7', given that
all other versions are unmaintained or do not exist.
"""
)
)
minors.append((2, minor))
elif major == 3:
minors.append((3, minor))
else:
raise AssertionError(
softwrap(
f"""
Unexpected value in `[python].interpreter_versions_universe`:
{major_minor}. Expected to only include '2.7' and/or Python 3 versions,
given that Python 3 will be the last major Python version. Please open an
issue at https://github.com/pantsbuild/pants/issues/new if this is no longer
true.
"""
)
)
valid_patches = FrozenOrderedSet(
(major, minor, patch)
for (major, minor) in sorted(minors)
for patch in self._valid_patch_versions(major, minor)
)
if not valid_patches:
raise ValueError(
softwrap(
f"""
The interpreter constraints `{self}` are not compatible with any of the
interpreter versions from `[python].interpreter_versions_universe`.
Please either change these interpreter constraints or update the
`interpreter_versions_universe` to include the interpreters set in these
constraints. Run `{bin_name()} help-advanced python` for more information on the
`interpreter_versions_universe` option.
"""
)
)
return valid_patches
def contains(self, other: InterpreterConstraints, interpreter_universe: Iterable[str]) -> bool:
"""Returns True if the `InterpreterConstraints` specified in `other` is a subset of these
`InterpreterConstraints`.
This is restricted to the set of minor Python versions specified in `universe`.
"""
if self == other:
return True
this = self.enumerate_python_versions(interpreter_universe)
that = other.enumerate_python_versions(interpreter_universe)
return this.issuperset(that)
def partition_into_major_minor_versions(
self, interpreter_universe: Iterable[str]
) -> tuple[str, ...]:
"""Return all the valid major.minor versions, e.g. `('2.7', '3.6')`."""
result: OrderedSet[str] = OrderedSet()
for major, minor, _ in self.enumerate_python_versions(interpreter_universe):
result.add(f"{major}.{minor}")
return tuple(result)
def major_minor_version_when_single_and_entire(self) -> None | tuple[int, int]:
"""Returns the (major, minor) version that these constraints cover, if they cover all of
exactly one major minor version, without rules about patch versions.
This is a best effort function, e.g. for using during inference that can be overridden.
Examples:
All of these return (3, 9): `==3.9.*`, `CPython==3.9.*`, `>=3.9,<3.10`, `<3.10,>=3.9`
All of these return None:
- `==3.9.10`: restricted to a single patch version
- `==3.9`: restricted to a single patch version (0, implicitly)
- `==3.9.*,!=3.9.2`: excludes a patch
- `>=3.9,<3.11`: more than one major version
- `>=3.9,<3.11,!=3.10`: too complicated to understand it only includes 3.9
- more than one requirement in the list: too complicated
"""
try:
return _major_minor_version_when_single_and_entire(self)
except _NonSimpleMajorMinor:
return None
def _major_minor_to_int(major_minor: str) -> tuple[int, int]:
return tuple(int(x) for x in major_minor.split(".", maxsplit=1)) # type: ignore[return-value]
class _NonSimpleMajorMinor(Exception):
pass
_ANY_PATCH_VERSION = re.compile(r"^(?P<major>\d+)\.(?P<minor>\d+)(?P<any_patch>\.\*)?$")
def _parse_simple_version(version: str, require_any_patch: bool) -> tuple[int, int]:
match = _ANY_PATCH_VERSION.fullmatch(version)
if match is None or (require_any_patch and match.group("any_patch") is None):
raise _NonSimpleMajorMinor()
return int(match.group("major")), int(match.group("minor"))
def _major_minor_version_when_single_and_entire(ics: InterpreterConstraints) -> tuple[int, int]:
if len(ics) != 1:
raise _NonSimpleMajorMinor()
req = next(iter(ics))
just_cpython = req.project_name == "CPython" and not req.extras and not req.marker
if not just_cpython:
raise _NonSimpleMajorMinor()
# ==major.minor or ==major.minor.*
if len(req.specs) == 1:
operator, version = next(iter(req.specs))
if operator != "==":
raise _NonSimpleMajorMinor()
return _parse_simple_version(version, require_any_patch=True)
# >=major.minor,<major.(minor+1)
if len(req.specs) == 2:
(operator_lo, version_lo), (operator_hi, version_hi) = iter(req.specs)
if operator_lo != ">=":
# if the lo operator isn't >=, they might be in the wrong order (or, if not, the check
# below will catch them)
operator_lo, operator_hi = operator_hi, operator_lo
version_lo, version_hi = version_hi, version_lo
if operator_lo != ">=" and operator_hi != "<":
raise _NonSimpleMajorMinor()
major_lo, minor_lo = _parse_simple_version(version_lo, require_any_patch=False)
major_hi, minor_hi = _parse_simple_version(version_hi, require_any_patch=False)
if major_lo == major_hi and minor_lo + 1 == minor_hi:
return major_lo, minor_lo
raise _NonSimpleMajorMinor()
# anything else we don't understand
raise _NonSimpleMajorMinor()
|
"""
TP1 : Arbres Génériques
"""
#==============================================================================
#==============================================================================
# Classe 'Node'
#==============================================================================
#==============================================================================
class Node :
"""
Node class that represent nodes in rooted tree
A node is composed of:
● A label or list of labels of any type
● A list of nodes, its children
"""
def __init__(self, labels, children=[]):
#étiquette du noeud
self.labels = labels
#enfants du noeud
self.children = children
#enfants du noeud sous forme de liste avec le nom des variables
self.lChildren = [var_name(a) for a in children]
#enfants du noeud sous forme de dictionnaire
#avec le nom et l'étiquette de chaque enfant
# => {'node4': '3', 'node5': '3', 'node6': '9'}
self.dChildren = dict([(var_name(a), a.labels) for a in children])
#==============================================================================
# Q 2.1 - la liste des etiquettes d'un noeud binaire
# (Primitive Content)
#==============================================================================
def content(self):
"""
Cette fonction retourne le contenu d'un noeud avec
les informations suivantes :
- l'étiquette
- les enfants (sous forme de liste)
"""
return {'Etiquette' : self.labels, 'Enfants' : self.children}
#==============================================================================
# Q 4.1 - children
#==============================================================================
def children(self):
"""
getter des children d'un noeud
"""
return self.children
#==============================================================================
# Q 4.3 - descending
#==============================================================================
def descending(self):
"""
fonction qui renvoie tous les descendants d'un noeud
"""
#initialisation de la liste à vide
listeEnfants = []
#pour tous les enfants du noeud
for enfant in self.children:
#ajout des ses enfants
listeEnfants.append(enfant)
#ajouts des enfants de ses efants
listeEnfants += enfant.descending()
return listeEnfants
#==============================================================================
# Q 4.5 - is_leaf
#==============================================================================
def is_leaf(self):
"""
Retourne un booléen qui vérifie si le noeud est une feuille
"""
return len(self.children) == 0
#==============================================================================
# Q 4.6 - degree
#==============================================================================
def degreeN(self):
"""
le degré d'un noeud est son nombre de fils
"""
return len(self.children)
#==============================================================================
#==============================================================================
# Classe 'RTree'
#==============================================================================
#==============================================================================
class RTree(Node):
"""
A rooted tree is represented by its root node
"""
def __init__(self, labels, children = []):
super().__init__(labels, children)
#==============================================================================
# Q 3.1 - la primitive « root »
#==============================================================================
#méthode prof
def root(self):
return self
#==============================================================================
# Q 3.2 - la primitive « sub_tree »
#==============================================================================
def sub_tree(self):
"""
all the sub tree are defined by the children of the root of the tree
"""
return self.children
#==============================================================================
# Q 3.3 - la méthode « display_depth »
# (affichage des étiquettes de l’arborescence avec un parcours
# en profondeur)
#==============================================================================
def display_depth(self):
"""
parcours de l'arbre en profondeur
"""
# listeLabels.append(self.labels)
# print(str(listeLabels))
listeLabels = [self.labels]
for child in self.children:
if not child.is_leaf():
listeLabels += child.display_depth()
else:
listeLabels.append(child.labels)
return listeLabels
def display_depthOL(self):
return [self.labels] + [child.display_depthOL2() if not child.is_leaf() else child.labels for child in self.children]
#==============================================================================
# Q 3.4 - la méthode « display_width »
# (affichage des étiquettes de l’arborescence avec un parcours en largeur)
#==============================================================================
#fonctionne
def display_width(self, listeLabels = []):
""""
parcours de l'arbre en largeur
""""
for child in self.children:
listeLabels.append(child.labels)
for child in self.children:
child.display_width(listeLabels)
return [self.labels] + listeLabels
#python est étrange
def display_width2(self, listeLabels = []):
"""
"""
listeLabels += [child.labels for child in self.children]
# print(str(listeLabels))
for child in self.children:
listeLabels.append(child.display_width2(listeLabels))
# listeLabels = [self.labels] + listeLabels
return listeLabels
#print (a)
#a=node0.display_width2([])
#print (a[7])
#print (a[10])
#print (len(a))
#print (a[13])
#print (len(a[13][13][13]))
#Vous aviez dit qu'il s'agit d'une liste récursive
#==============================================================================
# Q 4.2 - father
#==============================================================================
def father(self, node):
"""
Le père d'un noeud est le noeud l'ayant pour enfant
"""
#pour tous les noeuds de l'arbre self
for parent in self.root().descending():
#pour tous les enfants du noeud
for child in parent.children:
#si l'enfant est égal au neaud cherché
if child == node:
return parent
return None
#==============================================================================
# Q 4.4 - ascending
#==============================================================================
def ascending(self, tree):
"""
fonction qui regarde tous les ancetres
on a besoin du tree pour connaitre la root de l'arbre (le plus lointain parent)
"""
#initialisation de la liste à vide
listeParents = [tree]
#pour tous les element de la liste E de l'arbre
for parent in tree.root().descending():
#si c'est le parent
for child in parent.children:
if child == self:
#ajout du noeud
listeParents.append(parent)
#ajout de son parent
# listeParents += parent[0].ascending(tree)
#retour de la liste des parents
return listeParents
#==============================================================================
# Q 4.6 - degree
#==============================================================================
def degreeT(self, maximum = 0):
"""
le degré d'un arbre est son nombre maximal de fils
"""
if not len(self.children) == 0:
for child in self.children:
maximum = child.degreeT(maximum)
#si le noeud principal est supérieur au maximum calculé
if len(self.children) > maximum:
maximum = len(self.children)
return maximum
#==============================================================================
# Q 4.6 - depth
#==============================================================================
def depth(self, taille = 0):
"""
la pronfondeur d'un noeud est nombre maximal de déscendants de la racine
"""
for child in self.children:
taille += 1
child.depth(taille)
return taille
#==============================================================================
# Q 4.6 - width
#==============================================================================
def width(self, tree, taille = 0):
"""
la largeur d'un arbre est son nombre maximal de fils sur un même niveau
"""
#pour tous les noeuds
for noeud in self.sub_tree():
#si la taille est inf à la taille du nombre de fils d'un noeud
if len(noeud.children) > taille:
taille = len(noeud.children)
#récursivité
noeud.width(tree, taille)
return taille
#==============================================================================
# AUTRES FONCTIONS
#==============================================================================
#fonction qui renvoie le nom d'une variable
def var_name(var):
for name, value in globals().items():
if value is var:
return name
return 'inconnu'
#fonction qui vérifie si un element à la forme ('node0', 'z')
def isTupleNode(vTuple):
return type(vTuple) is tuple and len(vTuple) == 2 and type(vTuple[0]) is str
#isTupleNode = lambda vTuple : type(vTuple) is tuple and len(vTuple) == 2 and type(vTuple[0]) is str
#~~~~~~~~~~~~~~~~~~~~~~
# Création de l'arbre
#~~~~~~~~~~~~~~~~~~~~~~
# Question 1 : implémentation de l'arborescence
#node6 = Node("9")
#node5 = Node("3")
#node4 = Node("3")
#node3 = Node("m")
#node2 = Node("a")
#node1 = Node("2", [node4, node5, node6])
#node0 = Node("z", [node1, node2, node3])
node7 = RTree("v")
node6 = RTree("9")
node5 = RTree("3")
node4 = RTree("3")
node3 = RTree("m")
node2 = RTree("a")
node1 = RTree("2", [node4, node5, node6, node7])
node0 = RTree("z", [node1, node2, node3])
|
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'launcher.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from .pyqt_utils import *
class Ui_LauncherForm(object):
def setupUi(self, LauncherForm):
LauncherForm.setObjectName("LauncherForm")
LauncherForm.resize(800, 600)
self.listWidget = QListWidget(LauncherForm)
self.listWidget.setGeometry(QRect(10, 10, 251, 541))
self.listWidget.setAutoFillBackground(True)
self.listWidget.setTabKeyNavigation(True)
self.listWidget.setObjectName("listWidget")
item = QListWidgetItem()
brush = QBrush(QColor(0, 0, 0))
brush.setStyle(Qt.NoBrush)
item.setBackground(brush)
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
# item = QListWidgetItem()
# item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
# self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
item = QListWidgetItem()
item.setFlags(Qt.ItemIsSelectable|Qt.ItemIsUserCheckable|Qt.ItemIsEnabled)
self.listWidget.addItem(item)
self.stackedWidget = QStackedWidget(LauncherForm)
self.stackedWidget.setGeometry(QRect(270, 10, 521, 541))
self.stackedWidget.setObjectName("stackedWidget")
self.page_0 = QWidget()
self.page_0.setObjectName("page_0")
self.textBrowser_0 = QTextBrowser(self.page_0)
self.textBrowser_0.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_0.setOpenExternalLinks(True)
self.textBrowser_0.setObjectName("textBrowser_0")
self.stackedWidget.addWidget(self.page_0)
self.page_1 = QWidget()
self.page_1.setObjectName("page_1")
self.textBrowser_1 = QTextBrowser(self.page_1)
self.textBrowser_1.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_1.setOpenExternalLinks(True)
self.textBrowser_1.setObjectName("textBrowser_1")
self.stackedWidget.addWidget(self.page_1)
self.page_2 = QWidget()
self.page_2.setObjectName("page_2")
self.textBrowser_2 = QTextBrowser(self.page_2)
self.textBrowser_2.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_2.setOpenExternalLinks(True)
self.textBrowser_2.setObjectName("textBrowser_2")
self.stackedWidget.addWidget(self.page_2)
self.page_3 = QWidget()
self.page_3.setObjectName("page_3")
self.textBrowser_3 = QTextBrowser(self.page_3)
self.textBrowser_3.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_3.setOpenExternalLinks(True)
self.textBrowser_3.setObjectName("textBrowser_3")
self.stackedWidget.addWidget(self.page_3)
self.page_4 = QWidget()
self.page_4.setObjectName("page_4")
self.textBrowser_4 = QTextBrowser(self.page_4)
self.textBrowser_4.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_4.setOpenExternalLinks(True)
self.textBrowser_4.setObjectName("textBrowser_4")
self.stackedWidget.addWidget(self.page_4)
# self.page_5 = QWidget()
# self.page_5.setObjectName("page_5")
# self.textBrowser_5 = QTextBrowser(self.page_5)
# self.textBrowser_5.setGeometry(QRect(0, 0, 521, 541))
# self.textBrowser_5.setOpenExternalLinks(True)
# self.textBrowser_5.setObjectName("textBrowser_5")
# self.stackedWidget.addWidget(self.page_5)
self.page_6 = QWidget()
self.page_6.setObjectName("page_6")
self.textBrowser_6 = QTextBrowser(self.page_6)
self.textBrowser_6.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_6.setOpenExternalLinks(True)
self.textBrowser_6.setObjectName("textBrowser_6")
self.stackedWidget.addWidget(self.page_6)
self.page_7 = QWidget()
self.page_7.setObjectName("page_7")
self.textBrowser_7 = QTextBrowser(self.page_7)
self.textBrowser_7.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_7.setOpenExternalLinks(True)
self.textBrowser_7.setObjectName("textBrowser_7")
self.stackedWidget.addWidget(self.page_7)
self.page_8 = QWidget()
self.page_8.setObjectName("page_8")
self.textBrowser_8 = QTextBrowser(self.page_8)
self.textBrowser_8.setGeometry(QRect(0, 0, 521, 541))
self.textBrowser_8.setOpenExternalLinks(True)
self.textBrowser_8.setObjectName("textBrowser_8")
self.stackedWidget.addWidget(self.page_8)
self.layoutWidget = QWidget(LauncherForm)
self.layoutWidget.setGeometry(QRect(10, 560, 781, 31))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout = QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.quitButton = QPushButton(self.layoutWidget)
self.quitButton.setObjectName("quitButton")
self.horizontalLayout.addWidget(self.quitButton)
spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.runButton = QPushButton(self.layoutWidget)
self.runButton.setObjectName("runButton")
self.horizontalLayout.addWidget(self.runButton)
self.testButton = QPushButton(self.layoutWidget)
self.testButton.setObjectName("testButton")
self.horizontalLayout.addWidget(self.testButton)
self.retranslateUi(LauncherForm)
self.listWidget.setCurrentRow(0)
self.stackedWidget.setCurrentIndex(0)
self.listWidget.currentRowChanged['int'].connect(self.stackedWidget.setCurrentIndex)
self.quitButton.clicked.connect(LauncherForm.close)
QMetaObject.connectSlotsByName(LauncherForm)
def retranslateUi(self, LauncherForm):
_translate = QCoreApplication.translate
LauncherForm.setWindowTitle(_translate("LauncherForm", "MuscleX Launcher"))
__sortingEnabled = self.listWidget.isSortingEnabled()
self.listWidget.setSortingEnabled(False)
item = self.listWidget.item(0)
item.setText(_translate("LauncherForm", "X-Ray Viewer"))
item = self.listWidget.item(1)
item.setText(_translate("LauncherForm", "Equator"))
item = self.listWidget.item(2)
item.setText(_translate("LauncherForm", "Quadrant Folding"))
item = self.listWidget.item(3)
item.setText(_translate("LauncherForm", "Projection Traces"))
item = self.listWidget.item(4)
item.setText(_translate("LauncherForm", "Scanning Diffraction"))
# item = self.listWidget.item(5)
# item.setText(_translate("LauncherForm", "Diffraction Centroids"))
item = self.listWidget.item(5)
item.setText(_translate("LauncherForm", "DDF Processor"))
item = self.listWidget.item(6)
item.setText(_translate("LauncherForm", "Add Intensities Single Experiment"))
item = self.listWidget.item(7)
item.setText(_translate("LauncherForm", "Add Intensities Multiple Experiments"))
self.listWidget.setSortingEnabled(__sortingEnabled)
self.textBrowser_0.setMarkdown(_translate("LauncherForm", "**X-Ray Viewer** is a small program used to display tif and h5 files and able to\n"
"play images in a folder (or h5 file) as a video. A second tab shows a selected\n"
"slice or an integrated slice of the image as a graph. "))
self.textBrowser_0.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">X-Ray Viewer</span> is a small program used to display tif and h5 files and able to play images in a folder (or h5 file) as a video. A second tab shows a selected slice or an integrated slice of the image as a graph. <br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/XRayViewer\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/XRayViewer</span></a> for details.</p></body></html>"))
self.textBrowser_1.setMarkdown(_translate("LauncherForm", "The purpose of the **Equator** program is to analyze the equatorial portion of\n"
"muscle X-ray diffraction patterns. "))
self.textBrowser_1.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The purpose of the <span style=\" font-weight:600;\">Equator</span> program is to analyze the equatorial portion of muscle X-ray diffraction patterns. <br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/Equator\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/Equator</span></a> for details.</p></body></html>"))
self.textBrowser_2.setMarkdown(_translate("LauncherForm", "The equator and the meridian of a fiber diffraction pattern divides a pattern\n"
"into four quadrants. You can regenerate a full diffraction pattern by simply\n"
"rotating the summed quadrant. **Quadrant Folding** is a program for generating\n"
"such a quadrant-folded image. "))
self.textBrowser_2.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The equator and the meridian of a fiber diffraction pattern divides a pattern into four quadrants. You can regenerate a full diffraction pattern by simply rotating the summed quadrant. <span style=\" font-weight:600;\">Quadrant Folding</span> is a program for generating such a quadrant-folded image. <br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/QuadrantFolding\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/QuadrantFolding</span></a> for details.</p></body></html>"))
self.textBrowser_3.setMarkdown(_translate("LauncherForm", "**Projection traces** was conceived originally as a program to extract the\n"
"integrated intensity along a layer line in order to identify positions of\n"
"intensity maxima along with their integrated intensities. It also allows\n"
"measurement of the radial width of meridional reflections. "))
self.textBrowser_3.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Projection traces</span> was conceived originally as a program to extract the integrated intensity along a layer line in order to identify positions of intensity maxima along with their integrated intensities. It also allows measurement of the radial width of meridional reflections.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/ProjectionTraces\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/ProjectionTraces</span></a> for details.</p></body></html>"))
self.textBrowser_4.setMarkdown(_translate("LauncherForm", "**Scanning diffraction** imaging experiments attempt to determine the\n"
"distribution of diffracting materials such as collagen, myelin, and amyloid\n"
"structures as a function of position in a sample that is raster scanned in a\n"
"microbeam. "))
self.textBrowser_4.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Scanning diffraction</span> imaging experiments attempt to determine the distribution of diffracting materials such as collagen, myelin, and amyloid structures as a function of position in a sample that is raster scanned in a microbeam.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/ScanningDiffraction\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/ScanningDiffraction</span></a> for details.</p></body></html>"))
# self.textBrowser_5.setMarkdown(_translate("LauncherForm", "**Diffraction Centroids** is designed to rapidly and accurately measure the\n"
# "spacings of user specified meridional reflections as well as the 5.9 and 5.1\n"
# "actin layer lines in a series of diffraction images, such as those generated in\n"
# "a time resolved experiment. "))
# self.textBrowser_5.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
# "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
# "p, li { white-space: pre-wrap; }\n"
# "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
# "<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Diffraction Centroids</span> is designed to rapidly and accurately measure the spacings of user specified meridional reflections as well as the 5.9 and 5.1 actin layer lines in a series of diffraction images, such as those generated in a time resolved experiment.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/DiffractionCentroids\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/DiffractionCentroids</span></a> for details.</p></body></html>"))
self.textBrowser_6.setMarkdown(_translate("LauncherForm", "**DDF Processor** is a program which is able to average data points for ddf file."))
self.textBrowser_6.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">DDF Processor</span> is a program which is able to average data points for ddf file.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/DDFProcessor\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/DDFProcessor</span></a> for details.</p></body></html>"))
self.textBrowser_7.setMarkdown(_translate("LauncherForm", "**Add Intensities Single Experiment** (former Image Merger) is a program which is\n"
"designed to be used with a series of images with sequential file names taken in\n"
"a time resolved experiment. "))
self.textBrowser_7.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Add Intensities Single Experiment</span> (former Image Merger) is a program which is designed to be used with a series of images with sequential file names taken in a time resolved experiment.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/AddIntensitiesSE\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/AddIntensitiesSE</span></a> for details.</p></body></html>"))
self.textBrowser_8.setMarkdown(_translate("LauncherForm", "**Add Intensities Multiple Experiments** (former Add Intensities) is a program\n"
"which is designed to be used with a series of images placed across multiple\n"
"folders. It takes the sum of the images in each folder which have the same\n"
"number (For example, F_001.tif in Folder A will map to FP_001.tif in folder B).\n"
"The matched images are then summed together and the resultant sum image is\n"
"stored in `aime_results` folder in the selected directory. "))
self.textBrowser_8.setHtml(_translate("LauncherForm", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:6px; margin-bottom:6px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Add Intensities Multiple Experiments</span> (former Add Intensities) is a program which is designed to be used with a series of images placed across multiple folders. It takes the sum of the images in each folder which have the same number (For example, F_001.tif in Folder A will map to FP_001.tif in folder B). The matched images are then summed together and the resultant sum image is stored in <span style=\" font-family:\'monospace\';\">aime_results</span> folder in the selected directory.<br /><br />See <a href=\"https://musclex.readthedocs.io/en/latest/AppSuite/AddIntensitiesME\"><span style=\" color:#0000ff;\">https://musclex.readthedocs.io/en/latest/AppSuite/AddIntensitiesME</span></a> for details.</p></body></html>"))
self.quitButton.setText(_translate("LauncherForm", "Quit"))
self.runButton.setText(_translate("LauncherForm", "Run"))
self.testButton.setText(_translate("LauncherForm", "Run Tests"))
|
import os
## Price
# The minimum rent you want to pay per month.
MIN_PRICE = 1500
# The maximum rent you want to pay per month.
MAX_PRICE = 2000
## Location preferences
# The Craigslist site you want to search on.
# For instance, https://sfbay.craigslist.org is SF and the Bay Area.
# You only need the beginning of the URL.
CRAIGSLIST_SITE = 'sfbay'
# What Craigslist subdirectories to search on.
# For instance, https://sfbay.craigslist.org/eby/ is the East Bay, and https://sfbay.craigslist.org/sfc/ is San Francisco.
# You only need the last three letters of the URLs.
AREAS = ["eby", "sfc", "sby", "nby"]
# A list of neighborhoods and coordinates that you want to look for apartments in. Any listing that has coordinates
# attached will be checked to see which area it is in. If there's a match, it will be annotated with the area
# name. If no match, the neighborhood field, which is a string, will be checked to see if it matches
# anything in NEIGHBORHOODS.
BOXES = {
"adams_point": [
[37.80789, -122.25000],
[37.81589, -122.26081],
],
"piedmont": [
[37.82240, -122.24768],
[37.83237, -122.25386],
],
"rockridge": [
[37.83826, -122.24073],
[37.84680, -122.25944],
],
"berkeley": [
[37.86226, -122.25043],
[37.86781, -122.26502],
],
"north_berkeley": [
[37.86425, -122.26330],
[37.87655, -122.28974],
],
"pac_heights": [
[37.79124, -122.42381],
[37.79850, -122.44784],
],
"lower_pac_heights": [
[37.78554, -122.42878],
[37.78873, -122.44544],
],
"haight": [
[37.77059, -122.42688],
[37.77086, -122.45401],
],
"sunset": [
[37.75451, -122.46422],
[37.76258, -122.50825],
],
"richmond": [
[37.77188, -122.47263],
[37.78029, -122.51005],
],
"presidio": [
[37.77805, -122.43959],
[37.78829, -122.47151],
]
}
# A list of neighborhood names to look for in the Craigslist neighborhood name field. If a listing doesn't fall into
# one of the boxes you defined, it will be checked to see if the neighborhood name it was listed under matches one
# of these. This is less accurate than the boxes, because it relies on the owner to set the right neighborhood,
# but it also catches listings that don't have coordinates (many listings are missing this info).
NEIGHBORHOODS = [
"adams point",
"alameda",
"bayview",
"berkeley",
"berkeley north",
"bernal heights",
"cow hollow",
"dogpatch",
"downtown / civic / van ness",
"excelsior / outer mission",
"forest hill",
"glen park",
"haight ashbury",
"hayes valley",
"ingleside / SFSU / CCSF",
"inner sunset",
"inner sunset / UCSF",
"lower haight",
"lower nob hill",
"lower pac hts",
"mission district",
"nob hill",
"noe valley",
"north beach / telegraph hill",
"oakland lake merritt",
"outer sunset",
"pac hts",
"pacific heights",
"palo alto",
"piedmont",
"portola",
"portola district",
"potrero hill",
"presidio",
"richmond / seacliff",
"rockridge",
"russian hill",
"SOMA / south beach",
"sunset",
"sunset / parkside",
"twin peaks",
"twin peaks / diamond hts",
"west portal",
"west portal / forest hill"
]
## Transit preferences
# The farthest you want to live from a transit stop.
MAX_TRANSIT_DIST = 2 # kilometers
# Transit stations you want to check against. Every coordinate here will be checked against each listing,
# and the closest station name will be added to the result and posted into Slack.
TRANSIT_STATIONS = {
"oakland_19th_bart": [37.8118051,-122.2720873],
"macarthur_bart": [37.8265657,-122.2686705],
"rockridge_bart": [37.841286,-122.2566329],
"downtown_berkeley_bart": [37.8629541,-122.276594],
"north_berkeley_bart": [37.8713411,-122.2849758],
"2ND_ST_AND_MARKET_ST": [37.789255,-122.401225],
"STEUART_ST_AND_FRANCISCO_ST": [37.794463,-122.394607],
"COLUMBUS_AVE_AND_PACIFIC_AVE": [37.797055,-122.405669],
"LINCOLN_WAY_AND_19TH_AVE": [37.765375,-122.477197],
"19TH_AVE_AND_LINCOLN_WAY": [37.765375,-122.477197],
"19TH_AVE_AND_HOLLOWAY": [37.720976,-122.475107],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.721262,-122.475107],
"19TH_AVENUE_AND_HOLLOWAY_ST": [37.72119,-122.475096],
"19TH_AVE_AND_LINCOLN_WAY": [37.765159,-122.47721],
"LINC._WAY_AND_19TH_AVE": [37.765375,-122.477404],
"LAGUNA_HONDA_BLVD_AND_19TH_AVE": [37.748202,-122.458721],
"MYRA_WAY_AND_DALEWOOD": [37.736692,-122.453943],
"MISSION_ST_AND_OCEAN_AVENUE": [37.723914,-122.435387],
"CALIFORNIA_ST_AND_POWELL_ST": [37.791943,-122.409271],
"POWELL_ST_AND_CALIFORNIA_ST": [37.792122,-122.409088],
"HYDE_STREET_TURNABLE_OUT_OB": [37.805785,-122.42049],
"HYDE_STREET_TURNABLE_IN_IB": [37.805785,-122.42049],
"TAYLOR_STREET_TURNABLE_OUT_OB": [37.804544,-122.41517],
"TAYLOR_STREET_TURNABLE_IN_IB": [37.804544,-122.41517],
"POWELL_STREET_TURNABLE_OUT_OB": [37.78476,-122.407819],
"POWELL_STREET_TURNABLE_IN_IB": [37.784778,-122.407613],
"REFERENCE_AND_REFERENCE": [37.794594,-122.411506],
"REFERENCE_AND_REFERENCE": [37.794585,-122.411551],
"POWELL_ST_AND_CALIFORNIA_ST": [37.792122,-122.409088],
"CALIFORNIA_ST_AND_POWELL_ST": [37.792023,-122.409283],
"HYDE_STREET_TURNABLE_IN_IB": [37.805785,-122.42049],
"HYDE_STREET_TURNABLE_OUT_OB": [37.806722,-122.420684],
"TAYLOR_STREET_TURNABLE_IN_IB": [37.804544,-122.41517],
"TAYLOR_STREET_TURNABLE_OUT_OB": [37.804544,-122.41517],
"POWELL_STREET_TURNABLE_IN_IB": [37.784778,-122.407613],
"POWELL_STREET_TURNABLE_OUT_OB": [37.78476,-122.407819],
"REFERENCE_AND_REFERENCE": [37.794594,-122.411483],
"REFERENCE_AND_REFERENCE": [37.794585,-122.411551],
"REFERENCE_AND_REFERENCE": [37.755387,-122.386786],
"REFERENCE_AND_REFERENCE": [37.755378,-122.386924],
"REFERENCE_AND_REFERENCE": [37.755396,-122.386729],
"REFERENCE_AND_REFERENCE": [37.755635,-122.383051],
"REFERENCE_AND_REFERENCE": [37.772889,-122.397866],
"MARKET_ST_AND_SPEAR_ST": [37.793731,-122.395685],
"MARKET_ST_AND_VAN_NESS_AVE": [37.775029,-122.419252],
"MARKET_ST_AND_SPEAR_ST": [37.793651,-122.395628],
"REFERENCE_AND_REFERENCE": [37.772898,-122.397969],
"SOUTH_VAN_NESS_AVE_AND_12TH_ST": [37.775082,-122.419137],
"DUBLIN_ST_AND_BRAZIL_AVE": [37.719308,-122.425802],
"DUBLIN_ST_AND_BRAZIL_AVE": [37.719371,-122.425767],
"MISSION_ST_AND_BRAZIL_AVE": [37.724654,-122.43494],
"MISSION_ST_AND_BRAZIL_AVE": [37.724583,-122.434757],
"DUBLIN_ST_AND_BRAZIL_AVE": [37.719362,-122.425779],
"DUBLIN_ST_AND_LAGRANDE_AVE": [37.719192,-122.425802],
"MARKET_ST_AND_BEALE_ST": [37.793027,-122.396591],
"MARKET_ST_AND_DRUMM_ST": [37.793188,-122.396385],
"MUNI_METRO_TNL_AND_DRUMM_ST": [37.794221,-122.393736],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720613,-122.446577],
"MUNI_METRO_TNL_AND_DRUMM_ST": [37.794221,-122.393736],
"REFERENCE_AND_REFERENCE": [37.720908,-122.446806],
"REFERENCE_AND_REFERENCE": [37.720827,-122.446657],
"REFERENCE_AND_REFERENCE": [37.794525,-122.394618],
"REFERENCE_AND_REFERENCE": [37.794525,-122.394618],
"REFERENCE_AND_REFERENCE": [37.720613,-122.446577],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.720845,-122.446646],
"REFERENCE_AND_REFERENCE": [37.720872,-122.446738],
"REFERENCE_AND_REFERENCE": [37.794525,-122.394618],
"REFERENCE_AND_REFERENCE": [37.794525,-122.394618],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.720631,-122.446577],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"SAN_BRUNO_AVE_AND_BAYSHORE_BLVD": [37.71236,-122.40258],
"SAN_BRUNO_AVE_AND_BAYSHORE_BLVD": [37.71236,-122.402374],
"JAMESTOWN_AVE_AND_LANSDALE_AVE": [37.712791,-122.387944],
"49ERS_DRIVE": [37.713389,-122.387715],
"49ERS_DRIVE": [37.71412,-122.387806],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"CALIFORNIA_ST_AND_FUNSTON_AVE": [37.78455,-122.47215],
"GENEVA_AVE_AND_MISSION_ST": [37.71641,-122.440748],
"JAMESTOWN_AVE_AND_CANDLESTICK_PARK": [37.714389,-122.388721],
"REFERENCE_AND_REFERENCE": [37.82,-12.24],
"1ST_ST_AND_HOWARD_ST": [37.78853,-122.396044],
"1ST_ST_AND_MISSION_ST": [37.7894,-122.39722],
"2ND_ST_AND_BRANNAN_ST": [37.781827,-122.391945],
"2ND_ST_AND_BRANNAN_ST": [37.781854,-122.392232],
"2ND_ST_AND_BRYANT_ST": [37.783291,-122.393778],
"2ND_ST_AND_BRYANT_ST": [37.782845,-122.393469],
"2ND_ST_AND_FOLSOM_ST": [37.7855,-122.39653],
"2ND_ST_AND_FOLSOM_ST": [37.785318,-122.396562],
"2ND_ST_AND_HARRISON_ST": [37.784532,-122.395325],
"2ND_ST_AND_HARRISON_ST": [37.784095,-122.395016],
"2ND_ST_AND_HOWARD_ST": [37.786559,-122.398109],
"2ND_ST_AND_MARKET_ST": [37.789067,-122.401306],
"2ND_ST_AND_STEVENSON_ST": [37.78862,-122.40065],
"2ND_ST_AND_TOWNSEND_ST": [37.780827,-122.390697],
"2ND_ST_AND_TOWNSEND_ST": [37.780622,-122.390685],
"3RD_ST_AND_4TH_ST": [37.772618,-122.389786],
"BACON_ST_AND_SAN_BRUNO_AVE": [37.727739,-122.40324],
"BACON_ST_AND_SAN_BRUNO_AVE": [37.727645,-122.403269],
"BACON_ST_AND_SOMERSET_ST": [37.72667,-122.40746],
"BACON_ST_AND_SOMERSET_ST": [37.72654,-122.40766],
"BADEN_ST_AND_CIRCULAR_AVE": [37.730312,-122.439532],
"BOWLEY_ST_AND_GIBSON_RD": [37.790249,-122.482263],
"BAKER_ST_AND_GREENWICH_ST": [37.797606,-122.445693],
"BATTERY_ST_AND_BROADWAY": [37.798311,-122.401093],
"BATTERY_ST_AND_FILBERT_ST": [37.80221,-122.401894],
"BATTERY_ST_AND_GREENWICH_ST": [37.802978,-122.402019],
"BATTERY_ST_AND_GREEN_ST": [37.80055,-122.40151],
"BATTERY_ST_AND_JACKSON_ST": [37.79686,-122.40077],
"BAY_ST_AND_MIDWAY_ST": [37.806094,-122.409161],
"BALBOA_ST_AND_4TH_AVE": [37.777396,-122.461751],
"BALBOA_ST_AND_4TH_AVE": [37.777262,-122.461969],
"BALBOA_ST_AND_6TH_AVE": [37.777289,-122.464158],
"BALBOA_ST_AND_6TH_AVE": [37.777173,-122.463849],
"BALBOA_ST_AND_8TH_AVE": [37.777199,-122.466038],
"BALBOA_ST_AND_8TH_AVE": [37.777065,-122.466256],
"BALBOA_ST_AND_10TH_AVE": [37.777101,-122.46817],
"BALBOA_ST_AND_10TH_AVE": [37.776967,-122.468388],
"BALBOA_ST_AND_12TH_AVE": [37.777002,-122.470313],
"BALBOA_ST_AND_12TH_AVE": [37.776868,-122.470531],
"BALBOA_ST_AND_14TH_AVE": [37.77678,-122.4727],
"BALBOA_ST_AND_17TH_AVE": [37.77676,-122.475769],
"BALBOA_ST_AND_17TH_AVE": [37.776626,-122.475987],
"BALBOA_ST_AND_19TH_AVE": [37.776662,-122.477912],
"BALBOA_ST_AND_19TH_AVE": [37.776528,-122.47813],
"BALBOA_ST_AND_21ST_AVE": [37.776563,-122.480056],
"BALBOA_ST_AND_21ST_AVE": [37.776429,-122.480273],
"BALBOA_ST_AND_23RD_AVE": [37.77647,-122.48219],
"BALBOA_ST_AND_23RD_AVE": [37.77633,-122.482417],
"BALBOA_ST_AND_25TH_AVE": [37.776356,-122.484606],
"BALBOA_ST_AND_25TH_AVE": [37.77624,-122.484296],
"BALBOA_ST_AND_28TH_AVE": [37.776222,-122.487551],
"BALBOA_ST_AND_28TH_AVE": [37.776088,-122.487769],
"BALBOA_ST_AND_30TH_AVE": [37.776114,-122.489958],
"BALBOA_ST_AND_30TH_AVE": [37.775989,-122.489912],
"BALBOA_ST_AND_32ND_AVE": [37.776024,-122.491838],
"BALBOA_ST_AND_32ND_AVE": [37.77589,-122.492056],
"BALBOA_ST_AND_34TH_AVE": [37.775791,-122.494199],
"BALBOA_ST_AND_35TH_AVE": [37.775898,-122.494577],
"BALBOA_ST_AND_37TH_AVE": [37.775781,-122.497202],
"BALBOA_ST_AND_37TH_AVE": [37.775647,-122.497419],
"BALBOA_ST_AND_40TH_AVE": [37.775637,-122.500399],
"BALBOA_ST_AND_40TH_AVE": [37.775503,-122.500617],
"BALBOA_ST_AND_43RD_AVE": [37.775484,-122.50362],
"BALBOA_ST_AND_43RD_AVE": [37.77535,-122.503838],
"BALBOA_ST_AND_ARGUELLO_BLVD": [37.77747,-122.45886],
"BALBOA_ST_AND_LA_PLAYA_ST": [37.775186,-122.510313],
"BALBOA_ST_AND_PARK_PRESIDIO_BLVD": [37.776895,-122.472227],
"BALBOA_ST_AND_PARK_PRESIDIO_BLVD": [37.776788,-122.472411],
"BRODERICK_ST_AND_BAY_ST": [37.801541,-122.444798],
"BRODERICK_ST_AND_BEACH_ST": [37.803629,-122.445222],
"BRODERICK_ST_AND_BEACH_ST": [37.803415,-122.445176],
"BRODERICK_ST_AND_FRANCISCO_ST": [37.800622,-122.444603],
"BRODERICK_ST_AND_JEFFERSON_ST": [37.804343,-122.44536],
"BRODERICK_ST_AND_NORTH_POINT_ST": [37.802478,-122.444982],
"BROADWAY_AND_BATTERY_ST": [37.798543,-122.400726],
"BROADWAY_AND_DAVIS_ST": [37.79897,-122.39858],
"BROADWAY_AND_THE_EMBARCADERO": [37.799086,-122.397791],
"BROADWAY_AND_GRANT_AVE": [37.797831,-122.406345],
"BROADWAY_AND_MONTGOMERY_ST": [37.798134,-122.40396],
"BROADWAY_AND_STEINER_ST": [37.794131,-122.436442],
"BROADWAY_AND_STEINER_ST": [37.794056,-122.436278],
"BROADWAY_AND_STOCKTON_ST": [37.797591,-122.408294],
"BEALE_ST_AND_HOWARD_ST": [37.789805,-122.394289],
"BEALE_ST_AND_MISSION_ST": [37.791939,-122.396879],
"BEACH_ST_AND_DIVISADERO_ST": [37.803629,-122.443674],
"MARINA_BLVD_AND_LAGUNA_ST": [37.80513,-122.43221],
"BEACH_ST_AND_MASON_ST": [37.807407,-122.414125],
"BEACH_ST_AND_POLK_ST": [37.806375,-122.423195],
"BEACH_ST_AND_SCOTT_ST": [37.80378,-122.44258],
"BEACH_ST_AND_STOCKTON_ST": [37.807841,-122.41081],
"BEMIS_ST_AND_MOFFITT_ST": [37.736655,-122.431181],
"3RD_ST_AND_16TH_ST": [37.76719,-122.38899],
"3RD_ST_AND_16TH_ST": [37.76658,-122.38919],
"3RD/BTW_16TH_AND_GENE_FRIEND": [37.766579,-122.389189],
"1730_3RD_ST": [37.76781,-122.38935],
"3RD_ST_AND_18TH_ST": [37.76336,-122.38863],
"3RD_ST_AND_18TH_ST": [37.76269,-122.38883],
"3RD_ST_AND_20TH_ST": [37.76079,-122.38846],
"3RD_ST_AND_20TH_ST": [37.76059,-122.3887],
"3RD_ST_AND_22ND_ST": [37.75817,-122.38821],
"3RD_ST_AND_22ND_ST": [37.75803,-122.38845],
"3RD_ST_AND_23RD_ST": [37.75569,-122.3879],
"3RD_ST_AND_23RD_ST": [37.75506,-122.3881],
"3RD_ST_AND_25TH_ST": [37.75313,-122.38766],
"3RD_ST_AND_25TH_ST": [37.75255,-122.38786],
"3RD_ST_AND_CESAR_CHAVEZ_ST": [37.750337,-122.387501],
"3RD_ST_AND_BAYVIEW_ST": [37.73228,-122.391559],
"3RD_ST_AND_BRANNAN_ST": [37.779285,-122.393185],
"3RD_ST_AND_CARROLL_AVE": [37.72567,-122.3943],
"3RD_ST_AND_CARROLL_AVE": [37.7253,-122.3942],
"3RD_ST_AND_CESAR_CHAVEZ_ST": [37.7504,-122.38772],
"3RD_ST_AND_CARGO_WAY": [37.74585,-122.38705],
"3RD_ST_AND_EGBERT_AVE": [37.72416,-122.39498],
"3RD_ST_AND_EGBERT_AVE": [37.7238,-122.39488],
"3RD_ST_AND_EVANS_AVE": [37.742682,-122.387908],
"3RD_ST_AND_EVANS_AVE": [37.74244,-122.38815],
"3RD_ST_AND_FOLSOM_ST": [37.784204,-122.399326],
"3RD_ST_AND_GILMAN_AVE": [37.72263,-122.39541],
"3RD_ST_AND_GALVEZ_AVE": [37.74089,-122.3887],
"3RD_ST_AND_HUDSON_AVE": [37.74012,-122.3887],
"3RD_ST_AND_HOWARD_ST": [37.784945,-122.400254],
"3RD_ST_AND_INNES_AVE": [37.73932,-122.38926],
"3RD_ST_AND_INGERSON_AVE": [37.72119,-122.39606],
"3RD_ST_AND_JERROLD_AVE": [37.73891,-122.38912],
"3RD_ST_AND_JERROLD_AVE": [37.73891,-122.38913],
"3RD_ST_AND_KEY_ST": [37.71977,-122.39671],
"3RD_ST_AND_LA_SALLE_AVE": [37.737213,-122.389803],
"3RD_ST_AND_KIRKWOOD_AVE": [37.737927,-122.389619],
"3RD_ST_AND_STEVENSON_ST": [37.786373,-122.40211],
"3RD_ST_AND_MARKET_ST": [37.787632,-122.403439],
"3RD_ST_AND_NEWCOMB_AVE": [37.73541,-122.39035],
"3RD_ST_AND_OAKDALE_AVE": [37.73507,-122.39048],
"3RD_ST_AND_PALOU_AVE": [37.734135,-122.390813],
"3RD_ST_AND_PALOU_AVE": [37.734091,-122.390928],
"3RD_ST_AND_OAKDALE_AVE": [37.734787,-122.390721],
"3RD_ST_AND_PERRY_ST": [37.782168,-122.396782],
"3RD_ST_AND_REVERE_AVE": [37.73225,-122.39146],
"3RD_ST_AND_SALINAS_AVE": [37.72078,-122.39649],
"3RD_ST_AND_THOMAS_AVE": [37.73067,-122.39202],
"3RD_ST_AND_THORNTON_AVE": [37.73044,-122.39237],
"3RD_ST_AND_VAN_DYKE_AVE": [37.729238,-122.392593],
"3RD_ST_AND_WILLIAMS_AVE": [37.729166,-122.392776],
"3RD_ST_AND_YOSEMITE_AVE": [37.72791,-122.39302],
"3RD_ST_AND_YOSEMITE_AVE": [37.72792,-122.39328],
"4TH_ST_AND_3RD_ST": [37.772966,-122.389694],
"4TH_ST_AND_BERRY_ST": [37.77529,-122.39282],
"4TH_ST_AND_BRANNAN_ST": [37.778305,-122.396602],
"4TH_ST_AND_BERRY_ST": [37.77548,-122.39279],
"4TH_ST_AND_FOLSOM_ST": [37.781804,-122.401012],
"4TH_ST_AND_HOWARD_ST": [37.783036,-122.402548],
"4TH_ST_AND_MISSION_ST": [37.784259,-122.404117],
"4TH_ST_AND_MARKET_ST": [37.785527,-122.405675],
"4TH_ST_AND_TOWNSEND_ST": [37.777064,-122.394872],
"4TH_ST_AND_TOWNSEND_ST": [37.777109,-122.395135],
"4TH_ST_AND_TOWNSEND_ST": [37.776894,-122.394895],
"4TH_ST_AND_TOWNSEND_ST": [37.77701,-122.394746],
"5TH_ST_AND_BRANNAN_ST": [37.77654,-122.39857],
"5TH_ST_AND_FOLSOM_ST": [37.78031,-122.40357],
"5TH_ST_AND_HARRISON_ST": [37.77931,-122.40205],
"5TH_ST_AND_HOWARD_ST": [37.78145,-122.40475],
"5TH_ST_AND_HOWARD_ST": [37.78123,-122.40474],
"5TH_ST_AND_MISSION_ST": [37.78296,-122.40665],
"5TH_ST_AND_MISSION_ST": [37.78277,-122.40665],
"5TH_ST_AND_TOWNSEND_ST": [37.77549,-122.39716],
"6TH_AVE_AND_ANZA_ST": [37.779171,-122.464239],
"6TH_AVE_AND_ANZA_ST": [37.779002,-122.464044],
"6TH_AVE_AND_BALBOA_ST": [37.777146,-122.463918],
"6TH_AVE_AND_BALBOA_ST": [37.776985,-122.46409],
"6TH_AVE_AND_CABRILLO_ST": [37.775611,-122.463803],
"6TH_AVE_AND_CLEMENT_ST": [37.783053,-122.464377],
"6TH_AVE_AND_CLEMENT_ST": [37.783026,-122.464526],
"6TH_AVE_AND_CORNWALL_ST": [37.784673,-122.46448],
"6TH_AVE_AND_FULTON_ST": [37.773809,-122.463745],
"6TH_AVE_AND_GEARY_BLVD": [37.780876,-122.464182],
"6TH_AVE_AND_GEARY_BLVD": [37.780768,-122.464354],
"6TH_ST_AND_HARRISON_ST": [37.77732,-122.40424],
"1697_7TH_AVE": [37.756597,-122.463741],
"1697_7TH_AVE": [37.756767,-122.46357],
"7TH_AVE_AND_CLEMENT_ST": [37.783133,-122.46542],
"7TH_ST_AND_BRANNAN_ST": [37.773266,-122.403367],
"7TH_ST_AND_FOLSOM_ST": [37.776864,-122.407904],
"7TH_ST_AND_HARRISON_ST": [37.77573,-122.40646],
"7TH_ST_AND_HOWARD_ST": [37.777935,-122.409222],
"7TH_ST_AND_MISSION_ST": [37.779175,-122.410768],
"7TH_ST_AND_MARKET_ST": [37.780309,-122.412395],
"7TH_ST_AND_TOWNSEND_ST": [37.772034,-122.401821],
"8TH_AVE_AND_CALIFORNIA_ST": [37.784465,-122.466704],
"8TH_AVE_AND_CABRILLO_ST": [37.775183,-122.465923],
"8TH_AVE_AND_CABRILLO_ST": [37.775022,-122.466095],
"8TH_AVE_AND_FULTON_ST": [37.773639,-122.465808],
"8TH_AVE_AND_FULTON_ST": [37.773478,-122.46598],
"8TH_ST_AND_BRANNAN_ST": [37.771554,-122.405901],
"8TH_ST_AND_BRYANT_ST": [37.772536,-122.407127],
"8TH_ST_AND_FOLSOM_ST": [37.774767,-122.409922],
"8TH_ST_AND_HARRISON_ST": [37.773536,-122.408376],
"8TH_ST_AND_HOWARD_ST": [37.776222,-122.411755],
"8TH_ST_AND_MISSION_ST": [37.77724,-122.413027],
"8TH_ST_AND_MARKET_ST": [37.778498,-122.414597],
"8TH_ST_AND_TOWNSEND_ST": [37.770161,-122.404126],
"9TH_AVE_AND_IRVING_ST": [37.764288,-122.466241],
"9TH_AVE_AND_IRVING_ST": [37.763913,-122.466241],
"9TH_AVE_AND_IRVING_ST": [37.763797,-122.46639],
"9TH_AVE_AND_JUDAH_ST": [37.762093,-122.46608],
"9TH_AVE_AND_JUDAH_ST": [37.76204,-122.466241],
"9TH_AVE_AND_KIRKHAM_ST": [37.760407,-122.466149],
"9TH_AVE_AND_KIRKHAM_ST": [37.760237,-122.465954],
"9TH_AVE_AND_LAWTON_ST": [37.758533,-122.466022],
"9TH_AVE_AND_LAWTON_ST": [37.758364,-122.465827],
"9TH_AVE_AND_LINCOLN_WAY": [37.76585,-122.466345],
"9TH_AVE_AND_LINCOLN_WAY": [37.765689,-122.466517],
"9TH_AVE_AND_MORAGA_ST": [37.756677,-122.465884],
"9TH_AVE_AND_MORAGA_ST": [37.756508,-122.465689],
"9TH_AVE_AND_NORIEGA_ST": [37.754804,-122.465758],
"9TH_AVE_AND_NORIEGA_ST": [37.754634,-122.465551],
"9TH_AVE_AND_ORTEGA_ST": [37.752939,-122.465631],
"9TH_ST_AND_AVENUE_C": [37.823397,-122.374286],
"9TH_ST_AND_AVENUE_E": [37.824599,-122.371452],
"9TH_ST_AND_AVENUE_H": [37.825196,-122.370063],
"10TH_AVE_AND_ORTEGA_ST": [37.752724,-122.466502],
"10TH_AVE_AND_PACHECO_ST": [37.75086,-122.466376],
"10TH_AVE_AND_PACHECO_ST": [37.750699,-122.466547],
"10TH_AVE_AND_QUINTARA_ST": [37.749325,-122.466261],
"10TH_AVE_AND_QUINTARA_ST": [37.749164,-122.466432],
"11TH_ST_AND_BRYANT_ST": [37.769807,-122.4113],
"11TH_ST_AND_FOLSOM_ST": [37.77212,-122.41422],
"11TH_ST_AND_FOLSOM_ST": [37.77159,-122.41381],
"11TH_ST_AND_HARRISON_ST": [37.770691,-122.412526],
"11TH_ST_AND_HARRISON_ST": [37.770557,-122.412492],
"11TH_ST_AND_HOWARD_ST": [37.77333,-122.41573],
"11TH_ST_AND_HOWARD_ST": [37.77283,-122.41538],
"11TH_ST_AND_MISSION_ST": [37.77457,-122.41732],
"11TH_ST_AND_MISSION_ST": [37.774038,-122.416891],
"11TH_ST_AND_MARKET_ST": [37.7755,-122.41852],
"11TH_ST_AND_MARKET_ST": [37.775368,-122.418575],
"13TH_ST_AND_GATEVIEW_AVE": [37.82841,-122.371964],
"14TH_AVE_AND_QUINTARA_ST": [37.74887,-122.47074],
"14TH_AVE_AND_SANTIAGO_ST": [37.74503,-122.4703],
"14TH_AVE_AND_TARAVAL_ST": [37.7434,-122.4703],
"14TH_AVE_AND_TARAVAL_ST": [37.74317,-122.47017],
"14TH_AVE_AND_ULLOA_ST": [37.7416,-122.47004],
"14TH_AVE_AND_ULLOA_ST": [37.74153,-122.47018],
"14TH_ST_AND_ALPINE_TER": [37.767296,-122.437213],
"14TH_ST_AND_CHURCH_ST": [37.767768,-122.429088],
"14TH_ST_AND_CHURCH_ST": [37.76767,-122.42913],
"14TH_ST_AND_CASTRO_ST": [37.76738,-122.43584],
"14TH_ST_AND_CASTRO_ST": [37.76728,-122.43578],
"14TH_ST_AND_NOE_ST": [37.76751,-122.43327],
"14TH_ST_AND_NOE_ST": [37.7674,-122.43356],
"14TH_ST_AND_SANCHEZ_ST": [37.76767,-122.431105],
"14TH_ST_AND_SANCHEZ_ST": [37.767536,-122.431277],
"15TH_AVE_AND_NORIEGA_ST": [37.75411,-122.47217],
"15TH_AVE_AND_ORTEGA_ST": [37.75268,-122.47206],
"15TH_AVE_AND_PACHECO_ST": [37.75081,-122.47196],
"15TH_AVE_AND_QUINTARA_ST": [37.74891,-122.47183],
"15TH_AVE_AND_TARAVAL_ST": [37.743124,-122.471297],
"15TH_AVE_AND_TARAVAL_ST": [37.743069,-122.471405],
"15TH_AVE_AND_ULLOA_ST": [37.741525,-122.471192],
"15TH_AVE_AND_ULLOA_ST": [37.741484,-122.4713],
"15TH_AVE_AND_WEST_PORTAL_AVE": [37.736387,-122.470381],
"15TH_ST_AND_MISSION_ST": [37.76668,-122.42016],
"16TH_AVE_AND_LAWTON_ST": [37.75811,-122.47367],
"16TH_AVE_AND_LAWTON_ST": [37.7593,-122.4737],
"16TH_AVE_AND_LOMITA_AVE": [37.75697,-122.47351],
"16TH_AVE_AND_MORAGA_ST": [37.7563,-122.47361],
"16TH_AVE_AND_MORAGA_ST": [37.75636,-122.47368],
"16TH_AVE_AND_NORIEGA_ST": [37.75425,-122.47321],
"16TH_AVE_AND_ORTEGA_ST": [37.7524,-122.47309],
"16TH_AVE_AND_PACHECO_ST": [37.75054,-122.47295],
"16TH_ST_AND_BRYANT_ST": [37.765658,-122.410294],
"16TH_ST_AND_BRYANT_ST": [37.765595,-122.410408],
"16TH_ST_AND_CHURCH_ST": [37.764579,-122.428523],
"16TH_ST_AND_DOLORES_ST": [37.764731,-122.426156],
"16TH_ST_AND_DOLORES_ST": [37.764575,-122.426579],
"16TH_ST_AND_GUERRERO_ST": [37.764853,-122.423959],
"16TH_ST_AND_GUERRERO_ST": [37.76472,-122.424256],
"16TH_ST_AND_HARRISON_ST": [37.765523,-122.412976],
"16TH_ST_AND_HARRISON_ST": [37.765377,-122.41329],
"16TH_ST_AND_KANSAS_ST": [37.765938,-122.403802],
"16TH_ST_AND_MISSION_ST": [37.765143,-122.4196],
"16TH_ST_AND_MISSION_ST": [37.76502,-122.41928],
"16TH_ST_AND_MISSION_ST": [37.764983,-122.419835],
"16TH_ST_AND_POTRERO_AVE": [37.7658,-122.407543],
"16TH_ST_AND_POTRERO_AVE": [37.765764,-122.407612],
"16TH_ST_AND_SAN_BRUNO_AVE": [37.765861,-122.405515],
"16TH_ST_AND_SHOTWELL_ST": [37.765374,-122.415428],
"16TH_ST_AND_SHOTWELL_ST": [37.765218,-122.416048],
"16TH_ST_AND_VALENCIA_ST": [37.764987,-122.421746],
"16TH_ST_AND_VALENCIA_ST": [37.764849,-122.422056],
"16TH_ST_AND_VERMONT_ST": [37.766039,-122.40469],
"16TH_ST_AND_MISSION_ST": [37.76513,-122.4195],
"17TH_AVE_AND_RIVERA_ST": [37.74698,-122.47391],
"17TH_AVE_AND_RIVERA_ST": [37.746745,-122.473707],
"17TH_AVE_AND_SANTIAGO_ST": [37.74511,-122.47374],
"17TH_ST_AND_BELVEDERE_ST": [37.76176,-122.44768],
"CHURCH_ST_AND_18TH_ST": [37.76281,-122.4285],
"17TH_ST_AND_CLAYTON_ST": [37.761854,-122.446702],
"17TH_ST_AND_COLE_ST": [37.76168,-122.44898],
"17TH_ST_AND_CASTRO_ST": [37.762576,-122.434979],
"17TH_ST_AND_DE_HARO_ST": [37.764904,-122.401451],
"17TH_ST_AND_DE_HARO_ST": [37.764771,-122.401711],
"17TH_ST_AND_DIAMOND_ST": [37.762415,-122.437489],
"17TH_ST_AND_KANSAS_ST": [37.764808,-122.403659],
"17TH_ST_AND_KANSAS_ST": [37.764817,-122.403441],
"17TH_ST_AND_KANSAS_ST": [37.764727,-122.403544],
"17TH_ST_AND_NOE_ST": [37.762645,-122.432991],
"17TH_ST_AND_WISCONSIN_ST": [37.764991,-122.399982],
"17TH_ST_AND_WISCONSIN_ST": [37.764929,-122.399284],
"18TH_ST_AND_3RD_ST": [37.762992,-122.388925],
"18TH_ST_AND_CHURCH_ST": [37.76137,-122.428195],
"18TH_ST_AND_CHURCH_ST": [37.761245,-122.428138],
"18TH_ST_AND_CONNECTICUT_ST": [37.76258,-122.397352],
"18TH_ST_AND_CASTRO_ST": [37.760952,-122.435151],
"18TH_ST_AND_CASTRO_ST": [37.760845,-122.434842],
"18TH_ST_AND_DANVERS_ST": [37.760355,-122.44354],
"18TH_ST_AND_DANVERS_ST": [37.76024,-122.44349],
"18TH_ST_AND_DIAMOND_ST": [37.760702,-122.437294],
"18TH_ST_AND_DOLORES_ST": [37.761486,-122.426236],
"18TH_ST_AND_DOLORES_ST": [37.761388,-122.425927],
"18TH_ST_AND_EUREKA_ST": [37.760765,-122.438154],
"18TH_ST_AND_GUERRERO_ST": [37.761619,-122.423955],
"18TH_ST_AND_GUERRERO_ST": [37.761521,-122.423646],
"18TH_ST_AND_HATTIE_ST": [37.760586,-122.441087],
"18TH_ST_AND_HATTIE_ST": [37.760488,-122.440778],
"18TH_ST_AND_MINNESOTA_ST": [37.762874,-122.390848],
"18TH_ST_AND_MISSION_ST": [37.761895,-122.419509],
"18TH_ST_AND_MARKET_ST": [37.759792,-122.444445],
"18TH_ST_AND_NOE_ST": [37.761094,-122.432688],
"18TH_ST_AND_NOE_ST": [37.76096,-122.432905],
"18TH_ST_AND_PENNSYLVANIA_AVE": [37.762828,-122.393471],
"18TH_ST_AND_PENNSYLVANIA_AVE": [37.762732,-122.39322],
"18TH_ST_AND_SANCHEZ_ST": [37.761228,-122.430464],
"18TH_ST_AND_SANCHEZ_ST": [37.761094,-122.430682],
"18TH_ST_AND_TEXAS_ST": [37.762701,-122.395422],
"18TH_ST_AND_TEXAS_ST": [37.762621,-122.39516],
"18TH_ST_AND_VALENCIA_ST": [37.761762,-122.421732],
"18TH_ST_AND_VALENCIA_ST": [37.761663,-122.421423],
"19TH_AVE_AND_BANBURY_DR": [37.71953,-122.47458],
"19TH_AVE_AND_BUCKINGHAM_WAY": [37.725732,-122.475063],
"19TH_AVE_AND_CRESPI_DR": [37.719691,-122.4749],
"19TH_AVE_AND_EUCALYPTUS_DR": [37.731175,-122.474962],
"19TH_AVE_AND_EUCALYPTUS_DR": [37.73097,-122.47472],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.72111,-122.475302],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.72094,-122.475004],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.721074,-122.475233],
"19TH_AVE_AND_IRVING_ST": [37.76368,-122.47731],
"19TH_AVE_AND_IRVING_ST": [37.76343,-122.47704],
"19TH_AVE_AND_JUNIPERO_SERRA_BLVD": [37.716889,-122.472275],
"19TH_AVE_AND_JUNIPERO_SERRA_BLVD": [37.71805,-122.47318],
"19TH_AVE_AND_JUNIPERO_SERRA_BLVD": [37.717323,-122.47297],
"19TH_AVE_AND_JUDAH_ST": [37.76158,-122.47687],
"19TH_AVE_AND_JUDAH_ST": [37.7614,-122.47711],
"19TH_AVE_AND_KIRKHAM_ST": [37.76015,-122.47671],
"19TH_AVE_AND_KIRKHAM_ST": [37.75995,-122.47695],
"19TH_AVE_AND_LAWTON_ST": [37.75786,-122.47654],
"19TH_AVE_AND_LAWTON_ST": [37.757889,-122.476782],
"19TH_AVE_AND_LINCOLN_WAY": [37.765214,-122.477197],
"19TH_AVE_AND_LINCOLN_WAY": [37.765375,-122.477404],
"19TH_AVE_AND_MORAGA_ST": [37.75622,-122.47669],
"19TH_AVE_AND_MORAGA_ST": [37.75599,-122.47642],
"19TH_AVE_AND_NORIEGA_ST": [37.75412,-122.47629],
"19TH_AVE_AND_NORIEGA_ST": [37.75392,-122.47653],
"19TH_AVE_AND_RANDOLPH_ST": [37.7162,-122.47167],
"19TH_AVE_AND_OCEAN_AVE": [37.73279,-122.4751],
"19TH_AVE_AND_OCEAN_AVE": [37.73212,-122.4748],
"19TH_AVE_AND_ORTEGA_ST": [37.75272,-122.47619],
"19TH_AVE_AND_ORTEGA_ST": [37.75206,-122.4764],
"19TH_AVE_AND_PACHECO_ST": [37.7504,-122.47603],
"19TH_AVE_AND_PACHECO_ST": [37.7502,-122.47627],
"19TH_AVE_AND_QUINTARA_ST": [37.74853,-122.4759],
"19TH_AVE_AND_QUINTARA_ST": [37.7483,-122.47614],
"19TH_AVE_AND_RANDOLPH_ST": [37.714282,-122.469618],
"19TH_AVE_AND_RANDOLPH_ST": [37.714443,-122.469998],
"19TH_AVE_AND_RIVERA_ST": [37.74667,-122.47577],
"19TH_AVE_AND_RIVERA_ST": [37.74647,-122.47601],
"19TH_AVE_AND_SLOAT_BLVD": [37.734556,-122.475203],
"19TH_AVE_AND_SLOAT_BLVD": [37.734717,-122.474974],
"19TH_AVE_AND_SANTIAGO_ST": [37.74524,-122.47567],
"19TH_AVE_AND_SANTIAGO_ST": [37.74507,-122.4759],
"19TH_AVE_AND_TARAVAL_ST": [37.74331,-122.47554],
"19TH_AVE_AND_TARAVAL_ST": [37.74318,-122.47578],
"19TH_AVE_AND_ULLOA_ST": [37.74149,-122.47543],
"19TH_AVE_AND_ULLOA_ST": [37.74129,-122.47568],
"19TH_AVE_AND_VICENTE_ST": [37.7392,-122.47528],
"19TH_AVE_AND_VICENTE_ST": [37.73901,-122.47553],
"19TH_AVE_AND_WAWONA_ST": [37.73757,-122.47542],
"19TH_AVE_AND_WAWONA_ST": [37.73734,-122.47515],
"19TH_AVE_AND_WINSTON_DR": [37.72719,-122.47468],
"19TH_AVE_AND_WINSTON_DR": [37.727017,-122.474937],
"20TH_AVE_AND_BUCKINGHAM_WAY": [37.73042,-122.47588],
"20TH_AVE_AND_BUCKINGHAM_WAY": [37.729997,-122.476049],
"20TH_AV/MACY'S_STONESTOWN": [37.72887,-122.47568],
"20TH_AVE_AND_WINSTON_DR": [37.726874,-122.475945],
"20TH_AVE_AND_WINSTON_DR": [37.72634,-122.47613],
"20TH_ST_AND_3RD_ST": [37.760536,-122.388707],
"20TH_ST_AND_3RD_ST": [37.760465,-122.388409],
"20TH_ST_AND_ARKANSAS_ST": [37.75996,-122.39808],
"20TH_ST_AND_ARKANSAS_ST": [37.75987,-122.39836],
"20TH_ST_AND_COLLINGWOOD_ST": [37.757677,-122.435966],
"20TH_ST_AND_EUREKA_ST": [37.757561,-122.437845],
"20TH_ST_AND_KANSAS_ST": [37.75968,-122.40291],
"20TH_ST_AND_KANSAS_ST": [37.75956,-122.40314],
"20TH_ST_AND_MISSOURI_ST": [37.760085,-122.396443],
"20TH_ST_AND_MISSOURI_ST": [37.75999,-122.39643],
"20TH_ST_AND_RHODE_ISLAND_ST": [37.75962,-122.40223],
"20TH_ST_AND_TEXAS_ST": [37.76004,-122.39545],
"20TH_ST_AND_VERMONT_ST": [37.75962,-122.40388],
"21ST_ST_AND_DOUGLASS_ST": [37.75536,-122.43901],
"22ND_AVE_AND_IRVING_ST": [37.763679,-122.480268],
"22ND_AVE_AND_JUDAH_ST": [37.761457,-122.480106],
"22ND_AVE_AND_KIRKHAM_ST": [37.759592,-122.47998],
"22ND_AVE_AND_LAWTON_ST": [37.757754,-122.479853],
"22ND_AVE_AND_LINCOLN_WAY": [37.765186,-122.480372],
"22ND_AVE_AND_MORAGA_ST": [37.755898,-122.479714],
"22ND_AVE_AND_NORIEGA_ST": [37.754337,-122.479611],
"22ND_ST_AND_3RD_ST": [37.75801,-122.38809],
"22ND_ST_AND_3RD_ST": [37.75789,-122.38851],
"22ND_ST_AND_CAROLINA_ST": [37.7573,-122.39975],
"22ND_ST_AND_IOWA_ST": [37.757771,-122.3918],
"22ND_ST_AND_MINNESOTA_ST": [37.75787,-122.39008],
"22ND_ST_AND_MINNESOTA_ST": [37.75779,-122.39],
"22ND_ST_AND_MISSISSIPPI_ST": [37.75764,-122.39397],
"22ND_ST_AND_PENNSYLVANIA_AVE": [37.757585,-122.393052],
"22ND_ST_AND_WISCONSIN_ST": [37.75727,-122.39907],
"23RD_AVE_AND_IRVING_ST": [37.763134,-122.481482],
"23RD_AVE_AND_JUDAH_ST": [37.761608,-122.481378],
"23RD_AVE_AND_KIRKHAM_ST": [37.759735,-122.48124],
"23RD_AVE_AND_LAWTON_ST": [37.75787,-122.481113],
"23RD_AVE_AND_LINCOLN_WAY": [37.765026,-122.481609],
"23RD_AVE_AND_MORAGA_ST": [37.756014,-122.480986],
"23RD_AVE_AND_NORIEGA_ST": [37.75414,-122.48086],
"23RD_ST_AND_DIAMOND_ST": [37.752698,-122.436539],
"23RD_ST_AND_EUREKA_ST": [37.75277,-122.437387],
"23RD_ST_AND_KANSAS_ST": [37.754448,-122.402668],
"23RD_ST_AND_RHODE_ISLAND_ST": [37.75451,-122.401694],
"23RD_ST_AND_UTAH_ST": [37.75442,-122.40494],
"23RD_ST_AND_UTAH_ST": [37.754298,-122.405304],
"23RD_ST_AND_VERMONT_ST": [37.75448,-122.40391],
"23RD_ST_AND_VERMONT_ST": [37.754395,-122.403631],
"23RD_ST_AND_WISCONSIN_ST": [37.75481,-122.39856],
"24TH_ST_AND_BRYANT_ST": [37.752853,-122.409281],
"24TH_ST_AND_BRYANT_ST": [37.752755,-122.408971],
"24TH_ST_AND_CHURCH_ST": [37.751778,-122.427327],
"24TH_ST_AND_CHURCH_ST": [37.751644,-122.427545],
"24TH_ST_AND_CASTRO_ST": [37.75136,-122.434248],
"24TH_ST_AND_CASTRO_ST": [37.751262,-122.433939],
"24TH_ST_AND_DIAMOND_ST": [37.751226,-122.436184],
"24TH_ST_AND_DIAMOND_ST": [37.751092,-122.436402],
"24TH_ST_AND_DOLORES_ST": [37.751903,-122.425311],
"24TH_ST_AND_DOLORES_ST": [37.751787,-122.425265],
"24TH_ST_AND_DOUGLASS_ST": [37.751102,-122.438361],
"24TH_ST_AND_FOLSOM_ST": [37.75256,-122.414242],
"24TH_ST_AND_FOLSOM_ST": [37.752462,-122.413933],
"24TH_ST_AND_GUERRERO_ST": [37.752045,-122.422767],
"24TH_ST_AND_GUERRERO_ST": [37.751911,-122.422985],
"24TH_ST_AND_HARRISON_ST": [37.752694,-122.412054],
"24TH_ST_AND_HARRISON_ST": [37.752587,-122.411744],
"24TH_ST_AND_HOFFMAN_AVE": [37.750977,-122.440504],
"24TH_ST_AND_MISSION_ST": [37.752321,-122.418333],
"24TH_ST_AND_MISSION_ST": [37.752178,-122.41855],
"24TH_ST_AND_NOE_ST": [37.751511,-122.431773],
"24TH_ST_AND_POTRERO_AVE": [37.75299,-122.40669],
"24TH_ST_AND_SANCHEZ_ST": [37.751645,-122.42955],
"24TH_ST_AND_SANCHEZ_ST": [37.751511,-122.429768],
"24TH_ST_AND_SOUTH_VAN_NESS_AVE": [37.752445,-122.416156],
"24TH_ST_AND_SOUTH_VAN_NESS_AVE": [37.752311,-122.416373],
"24TH_ST_AND_VALENCIA_ST": [37.752178,-122.420556],
"24TH_ST_AND_VALENCIA_ST": [37.752062,-122.42051],
"25TH_AVE_AND_ANZA_ST": [37.778284,-122.484687],
"25TH_AVE_AND_ANZA_ST": [37.778052,-122.484492],
"25TH_AVE_AND_BALBOA_ST": [37.776419,-122.48456],
"25TH_AVE_AND_BALBOA_ST": [37.776187,-122.484365],
"25TH_AVE_AND_CALIFORNIA_ST": [37.784003,-122.485102],
"25TH_AVE_AND_CALIFORNIA_ST": [37.783807,-122.48485],
"25TH_AVE_AND_CABRILLO_ST": [37.774554,-122.484422],
"25TH_AVE_AND_CABRILLO_ST": [37.774322,-122.484227],
"25TH_AVE_AND_CLEMENT_ST": [37.782147,-122.484975],
"25TH_AVE_AND_CLEMENT_ST": [37.781951,-122.484712],
"25TH_AVE_AND_EL_CAMINO_DEL_MAR": [37.787536,-122.485139],
"25TH_AVE_AND_EL_CAMINO_DEL_MAR": [37.787367,-122.485356],
"25TH_AVE_AND_FULTON_ST": [37.772689,-122.484295],
"25TH_AVE_AND_GEARY_BLVD": [37.780255,-122.484837],
"25TH_AVE_AND_GEARY_BLVD": [37.779925,-122.484619],
"25TH_AVE_AND_LAKE_ST": [37.785868,-122.485241],
"25TH_AVE_AND_LAKE_ST": [37.785689,-122.485034],
"25TH_ST_AND_CONNECTICUT_ST": [37.75236,-122.39634],
"25TH_ST_AND_CONNECTICUT_ST": [37.752242,-122.39662],
"25TH_ST_AND_DAKOTA_ST": [37.7525,-122.394832],
"25TH_ST_AND_HOFFMAN_AVE": [37.74931,-122.44092],
"25TH_ST_AND_MISSION_ST": [37.75067,-122.41849],
"25TH_ST_AND_NOE_ST": [37.749673,-122.431659],
"25TH_ST_AND_POTRERO_AVE": [37.751407,-122.40668],
"25TH_ST_AND_WISCONSIN_ST": [37.75224,-122.39831],
"25TH_ST_AND_WISCONSIN_ST": [37.752162,-122.398293],
"26TH_ST_AND_CASTRO_ST": [37.74815,-122.43363],
"26TH_ST_AND_CASTRO_ST": [37.74807,-122.43352],
"26TH_ST_AND_DE_HARO_ST": [37.75086,-122.40015],
"26TH_ST_AND_DE_HARO_ST": [37.750753,-122.400024],
"26TH_ST_AND_FOLSOM_ST": [37.749232,-122.413877],
"26TH_ST_AND_MISSION_ST": [37.749001,-122.417818],
"26TH_ST_AND_NOE_ST": [37.74827,-122.43177],
"26TH_ST_AND_NOE_ST": [37.748174,-122.431636],
"26TH_ST_AND_RHODE_ISLAND_ST": [37.750718,-122.401124],
"26TH_ST_AND_SOUTH_VAN_NESS_AVE": [37.749108,-122.416065],
"26TH_ST_AND_WISCONSIN_ST": [37.75111,-122.39866],
"29TH_AVE_AND_VICENTE_ST": [37.73896,-122.48611],
"30TH_AVE_AND_QUINTARA_ST": [37.74799,-122.4878],
"30TH_AVE_AND_QUINTARA_ST": [37.74808,-122.487926],
"30TH_AVE_AND_RIVERA_ST": [37.74636,-122.4878],
"30TH_AVE_AND_RIVERA_ST": [37.74616,-122.48767],
"30TH_AVE_AND_SANTIAGO_ST": [37.74451,-122.48765],
"30TH_AVE_AND_SANTIAGO_ST": [37.74427,-122.48756],
"30TH_AVE_AND_TARAVAL_ST": [37.742646,-122.487545],
"30TH_AVE_AND_TARAVAL_ST": [37.74241,-122.48743],
"30TH_AVE_AND_ULLOA_ST": [37.74077,-122.48739],
"30TH_ST_AND_CHURCH_ST": [37.742159,-122.426369],
"30TH_ST_AND_CHURCH_ST": [37.74204,-122.42676],
"30TH_ST_AND_DOLORES_ST": [37.742304,-122.424026],
"30TH_ST_AND_DOLORES_ST": [37.74217,-122.424457],
"MISSION_ST_AND_30TH_ST": [37.742435,-122.421877],
"30TH_ST_AND_MISSION_ST": [37.742408,-122.422037],
"30TH_ST_AND_MISSION_ST": [37.74231,-122.42217],
"30TH_ST_AND_NOE_ST": [37.74188,-122.43079],
"30TH_ST_AND_SANCHEZ_ST": [37.74202,-122.4286],
"30TH_ST_AND_SANCHEZ_ST": [37.74191,-122.42902],
"32ND_AVE_AND_BALBOA_ST": [37.77668,-122.49195],
"32ND_AVE_AND_CALIFORNIA_ST": [37.783419,-122.492442],
"32ND_AVE_AND_CALIFORNIA_ST": [37.783429,-122.492553],
"32ND_AVE_AND_CLEMENT_ST": [37.781995,-122.492335],
"32ND_AVE_AND_CLEMENT_ST": [37.781802,-122.492425],
"32ND_AVE_AND_GEARY_BLVD": [37.779939,-122.492296],
"33RD_AVE_AND_ANZA_ST": [37.777861,-122.493249],
"33RD_AVE_AND_ANZA_ST": [37.777692,-122.493077],
"33RD_AVE_AND_BALBOA_ST": [37.776032,-122.492973],
"33RD_AVE_AND_BALBOA_ST": [37.775997,-122.493133],
"33RD_AVE_AND_CLEMENT_ST": [37.781537,-122.493354],
"33RD_AVE_AND_CLEMENT_ST": [37.781502,-122.493515],
"33RD_AVE_AND_GEARY_BLVD": [37.779815,-122.493227],
"33RD_AVE_AND_GEARY_BLVD": [37.779815,-122.493388],
"33RD_AVE_AND_GEARY_BLVD": [37.779548,-122.493215],
"33RD_AVE_AND_GEARY_BLVD": [37.779566,-122.493376],
"36TH_AVE_AND_LINCOLN_WAY": [37.764557,-122.495372],
"37TH_AVE_AND_LINCOLN_WAY": [37.76436,-122.496621],
"39TH_AVE_AND_QUINTARA_ST": [37.747621,-122.497424],
"39TH_AVE_AND_RIVERA_ST": [37.745962,-122.497308],
"39TH_AVE_AND_RIVERA_ST": [37.74596,-122.49747],
"42ND_AVE_AND_CLEMENT_ST": [37.781087,-122.502994],
"43RD_AVE_AND_CLEMENT_ST": [37.781007,-122.504232],
"43RD_AVE_AND_POINT_LOBOS_AVE": [37.779784,-122.504139],
"45TH_AVE_AND_BALBOA_ST": [37.775242,-122.505798],
"45TH_AVE_AND_BALBOA_ST": [37.775206,-122.505958],
"45TH_AVE_AND_CABRILLO_ST": [37.773573,-122.50567],
"45TH_AVE_AND_CABRILLO_ST": [37.773538,-122.505831],
"46TH_AVE_AND_IRVING_ST": [37.762375,-122.506143],
"46TH_AVE_AND_IRVING_ST": [37.762206,-122.505971],
"46TH_AVE_AND_JUDAH_ST": [37.760519,-122.506015],
"46TH_AVE_AND_JUDAH_ST": [37.760395,-122.505901],
"46TH_AVE_AND_KIRKHAM_ST": [37.758655,-122.505888],
"46TH_AVE_AND_KIRKHAM_ST": [37.758485,-122.505716],
"46TH_AVE_AND_LAWTON_ST": [37.756781,-122.505749],
"46TH_AVE_AND_LAWTON_ST": [37.756612,-122.505577],
"46TH_AVE_AND_LINCOLN_WAY": [37.764035,-122.50611],
"46TH_AVE_AND_LINCOLN_WAY": [37.764053,-122.50627],
"46TH_AVE_AND_MORAGA_ST": [37.754925,-122.505621],
"46TH_AVE_AND_MORAGA_ST": [37.754756,-122.505449],
"46TH_AVE_AND_NORIEGA_ST": [37.752829,-122.505322],
"46TH_AVE_AND_NORIEGA_ST": [37.752837,-122.505482],
"46TH_AVE_AND_ORTEGA_ST": [37.751187,-122.505366],
"46TH_AVE_AND_ORTEGA_ST": [37.751017,-122.505194],
"46TH_AVE_AND_PACHECO_ST": [37.749331,-122.505239],
"46TH_AVE_AND_PACHECO_ST": [37.749161,-122.505067],
"46TH_AVE_AND_QUINTARA_ST": [37.747457,-122.5051],
"46TH_AVE_AND_QUINTARA_ST": [37.747288,-122.504928],
"46TH_AVE_AND_RIVERA_ST": [37.745592,-122.504973],
"46TH_AVE_AND_RIVERA_ST": [37.745423,-122.504801],
"46TH_AVE_AND_SANTIAGO_ST": [37.743737,-122.504834],
"46TH_AVE_AND_SANTIAGO_ST": [37.743567,-122.504662],
"46TH_AVE_AND_TARAVAL_ST": [37.741854,-122.504706],
"46TH_AVE_AND_TARAVAL_ST": [37.741685,-122.504534],
"46TH_AVE_AND_ULLOA_ST": [37.739998,-122.504579],
"46TH_AVE_AND_ULLOA_ST": [37.739829,-122.504407],
"46TH_AVE_AND_VICENTE_ST": [37.738142,-122.50444],
"46TH_AVE_AND_VICENTE_ST": [37.737973,-122.504268],
"46TH_AVE_AND_WAWONA_ST": [37.736108,-122.504141],
"47TH_AVE_AND_NORIEGA_ST": [37.752783,-122.506364],
"47TH_AVE_AND_WAWONA_ST": [37.736018,-122.505366],
"48TH_AVE_AND_POINT_LOBOS_AVE": [37.77991,-122.50994],
"48TH_AVE_AND_POINT_LOBOS_AVE": [37.779023,-122.509411],
"CANDLESTICK_PARK/49ERS_STADIUM": [37.71213,-122.386948],
"CYRIL_MAGNIN_ST_AND_EDDY_ST": [37.784519,-122.408404],
"CYRIL_MAGNIN_ST_AND_MARKET_ST": [37.784162,-122.408175],
"CYRIL_MAGNIN_ST_AND_MARKET_ST": [37.784011,-122.40821],
"46_ADDISON_ST": [37.737735,-122.431009],
"164_ADDISON_ST": [37.738172,-122.432807],
"ADDISON_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.740037,-122.435716],
"ADDISON_ST_AND_DIGBY_ST": [37.740001,-122.433609],
"ADDISON_ST_AND_FARNUM_ST": [37.740189,-122.434216],
"ADDISON_ST_AND_FARNUM_ST": [37.740055,-122.434433],
"ALANA_WAY_AND_EXECUTIVE_PARK_BLVD": [37.70898,-122.39422],
"346_ALEMANY_BLVD": [37.73361,-122.41325],
"ALEMANY_BLVD_AND_ARCH_ST": [37.71163,-122.4669],
"ALEMANY_BLVD_AND_ARCH_ST": [37.711418,-122.46717],
"ALEMANY_BLVD_AND_CRYSTAL_ST": [37.71013,-122.46027],
"ALEMANY_BLVD_AND_GATES_ST": [37.73253,-122.41576],
"ALEMANY_BLVD_AND_GENEVA_AVE": [37.71766,-122.44237],
"ALEMANY_BLVD_AND_GENEVA_AVE": [37.71766,-122.44237],
"ALEMANY_BLVD_AND_ORIZABA_AVE": [37.71091,-122.46226],
"ALEMANY_BLVD_AND_ST_CHARLES_AVE": [37.710359,-122.469458],
"ALEMANY_BLVD/ST_MARY'S_PARK_BRIDGE": [37.73229,-122.42059],
"ALEMANY_BLVD_AND_VICTORIA_ST": [37.71183,-122.46507],
"ALEMANY_BLVD_AND_VICTORIA_ST": [37.71164,-122.46492],
"ARMORY_RD_AND_HERBST_RD": [37.72974,-122.50232],
"ANZA_BLVD_AND_LINCOLN_BLVD": [37.80163,-122.45678],
"ANZA_BLVD_AND_LINCOLN_BLVD": [37.80161,-122.45673],
"ANZA_ST_AND_33RD_AVE": [37.77785,-122.49303],
"ARBALLO_DR_AND_ACEVEDO_AVE_.": [37.719886,-122.483135],
"ARBALLO_DR_AND_GONZALEZ_DR": [37.717343,-122.483306],
"ARBALLO_DR_AND_GARCES_DR": [37.716334,-122.483351],
"ARBALLO_DR_AND_HIGUERA_AVE": [37.71861,-122.483215],
"ARBALLO_DR_AND_PINTO_DR": [37.72076,-122.483078],
"ARCH_ST_AND_ALEMANY_BLVD": [37.71166,-122.46711],
"ARGUELLO_BLVD_AND_BALBOA_ST": [37.777075,-122.458645],
"ARGUELLO_BLVD_AND_CALIFORNIA_ST": [37.785596,-122.459093],
"ARGUELLO_BLVD_AND_CALIFORNIA_ST": [37.78556,-122.459254],
"ARGUELLO_BLVD_AND_CLEMENT_ST": [37.783071,-122.45907],
"ARGUELLO_BLVD_AND_EUCLID_AVE": [37.78374,-122.458956],
"ARGUELLO_BLVD_AND_FULTON_ST": [37.774425,-122.458301],
"ARGUELLO_BLVD_AND_GEARY_BLVD": [37.781429,-122.458955],
"ARGUELLO_BLVD_AND_GEARY_BLVD": [37.781081,-122.45876],
"ARGUELLO_BLVD_AND_TURK_ST": [37.777477,-122.458519],
"ARKANSAS_ST_AND_22ND_ST": [37.75745,-122.39804],
"ARKANSAS_ST_AND_MADERA_ST": [37.75597,-122.39789],
"ARLETA_AVE_AND_ALPHA_ST": [37.71321,-122.40496],
"ARLETA_AVE_AND_BAY_SHORE_BLVD": [37.712217,-122.402603],
"ASHBURY_ST_AND_CLIFFORD_TER": [37.764281,-122.445946],
"ASHBURY_ST_AND_CLIFFORD_TER": [37.764298,-122.446095],
"ASHBURY_ST_AND_CLAYTON_ST": [37.762978,-122.446805],
"ASHBURY_ST_AND_FREDERICK_ST": [37.767154,-122.446278],
"ASHBURY_ST_AND_HAIGHT_ST": [37.769937,-122.446851],
"ASHBURY_ST_AND_PIEDMONT_ST": [37.765298,-122.446072],
"ASHBURY_ST_AND_PIEDMONT_ST": [37.765146,-122.445877],
"ASHBURY_ST_AND_WALLER_ST": [37.769161,-122.446851],
"ASHBURY_ST_AND_WALLER_ST": [37.76901,-122.446656],
"ATHENS_ST_AND_AVALON_AVE": [37.72465,-122.4261],
"ATHENS_ST_AND_BRAZIL_AVE": [37.72155,-122.42846],
"ATHENS_ST_AND_EXCELSIOR_AVE": [37.72311,-122.42729],
"AVENUE_B_AND_GATEVIEW_AVE": [37.82695,-122.377402],
"AVENUE_B_AND_GATEVIEW_AVE": [37.824165,-122.375421],
"AVENUE_B_AND_HALIBUT_CT": [37.824468,-122.375638],
"AVENUE_H_AND_4TH_ST": [37.821938,-122.367796],
"AVENUE_H_AND_6TH_ST": [37.823625,-122.36893],
"AVENUE_H_AND_CALIFORNIA_ST": [37.819939,-122.366422],
"AVENUE_M_AND_3RD_ST": [37.822231,-122.364883],
"AVENUE_M_AND_8TH_STREET": [37.825319,-122.366955],
"AVENUE_M_AND_10TH_ST": [37.82731,-122.368295],
"AVENUE_M_AND_13TH_ST": [37.829265,-122.369623],
"AVALON_AVE_AND_LA_GRANDE_AVE": [37.72474,-122.42422],
"AVALON_AVE_AND_LA_GRANDE_AVE": [37.72474,-122.42437],
"AVALON_AVE_AND_PERU_AVE": [37.72508,-122.42342],
"BACON_ST_AND_GIRARD_ST": [37.72744,-122.40451],
"BACON_ST_AND_GIRARD_ST": [37.72732,-122.4047],
"BACON_ST_AND_GOETTINGEN_ST": [37.72691,-122.40648],
"BACON_ST_AND_GOETTINGEN_ST": [37.7268,-122.40667],
"BEVERLY_ST_AND_GARFIELD_ST": [37.719728,-122.471739],
"BERNAL_HEIGHTS_BLVD_AND_BRADFORD_ST": [37.74183,-122.40978],
"BERNAL_HEIGHTS_BLVD_AND_POWHATTAN_AVE": [37.74151,-122.41067],
"BLANKEN_AVE_AND_TUNNEL_AVE": [37.71202,-122.40068],
"BEMIS_ST_AND_ADDISON_ST": [37.737725,-122.429531],
"BOSWORTH_ST_AND_ELK_ST": [37.734871,-122.44007],
"BOSWORTH_ST_AND_DIAMOND_ST": [37.733595,-122.434011],
"BOSWORTH_ST_AND_DIAMOND_ST": [37.733488,-122.43408],
"BOSWORTH_ST_AND_ELK_ST": [37.735005,-122.440093],
"BOSWORTH_ST_AND_LIPPARD_AVE": [37.733925,-122.435706],
"BOSWORTH_ST_AND_LIPPARD_AVE": [37.733827,-122.43597],
"BOSWORTH_ST_AND_MARSILY_ST": [37.733469,-122.42794],
"BOSWORTH_ST_AND_MILTON_ST": [37.733487,-122.429326],
"BOSWORTH_ST_AND_MILTON_ST": [37.733318,-122.42952],
"BOSWORTH_ST_AND_MISSION_ST": [37.733719,-122.426702],
"BOSWORTH_ST_AND_ROTTECK_ST": [37.733211,-122.431296],
"LINCOLN_BLVD_AND_BOWLEY_AVE": [37.788465,-122.482617],
"BOWLEY_ST_AND_LINCOLN_BLVD": [37.792222,-122.481186],
"BRANNAN_ST_AND_3RD_ST": [37.77998,-122.39458],
"BRADFORD_ST_AND_BERNAL_HEIGHTS_BLVD": [37.74201,-122.4094],
"BRADFORD_ST_AND_BERNAL_HEIGHTS_BLVD": [37.74286,-122.4094],
"BRADFORD_ST_AND_ESMERALDA_AVE": [37.74306,-122.40932],
"BROTHERHOOD_WAY_AND_ST_CHARLES_AVE": [37.71248,-122.46926],
"BURNETT_AVE_AND_CRESTLINE_DR": [37.749121,-122.444938],
"BURNETT_AVE_AND_DAWNVIEW_WAY": [37.748077,-122.445087],
"BROAD_ST_AND_ARCH_ST": [37.71251,-122.46738],
"BROAD_ST_AND_CAPITOL_AVE": [37.713191,-122.458921],
"BROAD_ST_AND_CAPITOL_AVE": [37.713152,-122.459159],
"BROAD_ST_AND_ORIZABA_AVE": [37.713178,-122.462331],
"BROAD_ST_AND_PLYMOUTH_AVE": [37.713222,-122.455927],
"BROAD_ST_AND_PLYMOUTH_AVE": [37.713161,-122.45618],
"BRIDGE_VIEW_DR_AND_SCOTIA_AVE": [37.7319,-122.39925],
"BRIDGE_VIEW_DR_AND_SCOTIA_AVE": [37.73184,-122.3994],
"BRIDGE_VIEW_DR_AND_TOPEKA_AVE": [37.7332,-122.39769],
"BRYANT_ST_AND_4TH_ST": [37.779474,-122.398068],
"BRYANT_ST_AND_5TH_ST": [37.77795,-122.39995],
"BRYANT_ST_AND_6TH_ST": [37.776157,-122.402231],
"BRYANT_ST_AND_7TH_ST": [37.77438,-122.40449],
"BRYANT_ST_AND_8TH_ST": [37.77233,-122.40708],
"BRYANT_ST_AND_9TH_ST": [37.77146,-122.40817],
"BRYANT_ST_AND_11TH_ST": [37.76967,-122.41045],
"BRYANT_ST_AND_16TH_ST": [37.76549,-122.4104],
"BRYANT_ST_AND_16TH_ST": [37.7653,-122.41054],
"BRYANT_ST_AND_17TH_ST": [37.76422,-122.41028],
"BRYANT_ST_AND_17TH_ST": [37.76402,-122.41041],
"BRYANT_ST_AND_18TH_ST": [37.76187,-122.4102],
"BRYANT_ST_AND_18TH_ST": [37.76167,-122.41004],
"BRYANT_ST_AND_19TH_ST": [37.76058,-122.41008],
"BRYANT_ST_AND_19TH_ST": [37.76038,-122.40991],
"BRYANT_ST_AND_20TH_ST": [37.75933,-122.40993],
"BRYANT_ST_AND_20TH_ST": [37.75911,-122.40966],
"BRYANT_ST_AND_21ST_ST": [37.75751,-122.4095],
"BRYANT_ST_AND_21ST_ST": [37.7574,-122.40961],
"BRYANT_ST_AND_22ND_ST": [37.75621,-122.40942],
"BRYANT_ST_AND_22ND_ST": [37.75572,-122.40949],
"BRYANT_ST_AND_23RD_ST": [37.75431,-122.40919],
"BRYANT_ST_AND_23RD_ST": [37.75415,-122.40932],
"BRYANT_ST_AND_24TH_ST": [37.752907,-122.409086],
"BRYANT_ST_AND_24TH_ST": [37.752728,-122.409178],
"BRYANT_ST_AND_25TH_ST": [37.7513,-122.40907],
"BRYANT_ST_AND_25TH_ST": [37.75111,-122.40889],
"BRYANT_ST_AND_26TH_ST": [37.74969,-122.40891],
"BRYANT_ST_AND_26TH_ST": [37.74951,-122.40873],
"BRYANT_ST_AND_ALAMEDA_ST": [37.76845,-122.41068],
"BRYANT_ST_AND_ALAMEDA_ST": [37.7681,-122.41081],
"BRYANT_ST_AND_DIVISION_ST": [37.76967,-122.41045],
"BRYANT_ST_AND_DIVISION_ST": [37.76911,-122.41091],
"BRYANT_ST_AND_MARIPOSA_ST": [37.76314,-122.41032],
"BRYANT_ST_AND_MARIPOSA_ST": [37.76294,-122.41016],
"BRAZIL_AVE_AND_ATHENS_ST": [37.72162,-122.42829],
"BRAZIL_AVE_AND_ATHENS_ST": [37.72166,-122.42857],
"BRAZIL_AVE_AND_MADRID_ST": [37.72314,-122.43151],
"BRAZIL_AVE_AND_MISSION_ST": [37.724717,-122.434654],
"BRAZIL_AVE_AND_MOSCOW_ST": [37.72122,-122.42748],
"BRAZIL_AVE_AND_MOSCOW_ST": [37.72128,-122.42776],
"BRAZIL_AVE_AND_MUNICH_ST": [37.7209,-122.42699],
"BRAZIL_AVE_AND_NAPLES_ST": [37.72238,-122.4299],
"BRAZIL_AVE_AND_PARIS_ST": [37.723958,-122.433085],
"BRAZIL_AVE_AND_PRAGUE_ST": [37.72052,-122.42616],
"228_BAY_SHORE_BLVD": [37.74472,-122.40443],
"380_BAY_SHORE_BLVD": [37.74133,-122.40669],
"BAY_SHORE_BLVD_AND_ALEMANY_BLVD": [37.712173,-122.402614],
"BAY_SHORE_BLVD_AND_ALEMANY_BLVD": [37.737729,-122.406997],
"BAY_SHORE_BLVD_AND_ARLETA_AVE": [37.712235,-122.402614],
"BAY_SHORE_BLVD_AND_AUGUSTA_ST": [37.73425,-122.40558],
"BAY_SHORE_BLVD_AND_BLANKEN_AVE": [37.712244,-122.402133],
"BAY_SHORE_BLVD_AND_BOUTWELL_ST": [37.73488,-122.40588],
"BAY_SHORE_BLVD_AND_CAMPBELL_AVE": [37.71481,-122.39936],
"BAY_SHORE_BLVD_AND_CARROLL_AVE": [37.73028,-122.40313],
"BAY_SHORE_BLVD_AND_CORTLAND_AVE": [37.73986,-122.40677],
"BAY_SHORE_BLVD_AND_CORTLAND_AVE": [37.73967,-122.40712],
"BAY_SHORE_BLVD_AND_HESTER_AVE": [37.71497,-122.39898],
"BAY_SHORE_BLVD_AND_HESTER_AVE": [37.713546,-122.400071],
"BAY_SHORE_BLVD_AND_JERROLD_AVE": [37.747123,-122.403509],
"BAY_SHORE_BLVD_AND_LELAND_AVE": [37.711138,-122.403783],
"BAY_SHORE_BLVD_AND_MARENGO_ST": [37.738701,-122.406894],
"BAY_SHORE_BLVD_AND_OAKDALE_AVE": [37.74332,-122.40523],
"BAY_SHORE_BLVD_AND_OAKDALE_AVE": [37.74288,-122.40519],
"BAY_SHORE_BLVD_AND_SILVER_AVE": [37.733213,-122.40472],
"BAY_SHORE_BLVD_AND_SILVER_AVE": [37.732963,-122.404789],
"BAY_SHORE_BLVD_AND_SILVER_AVE": [37.732999,-122.404812],
"BAY_SHORE_BLVD_AND_SUNNYDALE_AVE": [37.70909,-122.40485],
"BAY_SHORE_BLVD_AND_TUNNEL_AVE": [37.7129,-122.40102],
"BAY_SHORE_BLVD_AND_VISITACION_AVE": [37.71062,-122.40389],
"BUCHANAN_ST_AND_BAY_ST": [37.80343,-122.43334],
"BUCHANAN_ST_AND_BEACH_ST": [37.80487,-122.43363],
"FORT_MASON_ACCESS_ROAD/BUCHANAN_ST": [37.80542,-122.4336],
"90_BUCKINGHAM_WAY": [37.72598,-122.47686],
"91_BUCKINGHAM_WAY": [37.72597,-122.47714],
"170_BUCKINGHAM_WAY": [37.72595,-122.47881],
"190_BUCKINGHAM_WAY": [37.72587,-122.47879],
"280_BUCKINGHAM_WAY": [37.72691,-122.48004],
"281_BUCKINGHAM_WAY": [37.72717,-122.48005],
"BUCKINGHAM_WAY_AND_WINSTON_DR": [37.72803,-122.47913],
"BUNKER_RD_AND_FIELD_RD": [37.83142,-122.52323],
"BUNKER_RD/MIWOK_TRAIL": [37.832584,-122.527246],
"BUNKER_RD/MIWOK_TRAIL": [37.832477,-122.5272],
"BUNKER_RD/RIFLE_RANGE": [37.83302,-122.50882],
"BUNKER_RD/RIFLE_RANGE": [37.83296,-122.50872],
"BUNKER_RD/STABLES": [37.8318,-122.51495],
"BUNKER_RD/STABLES": [37.83175,-122.51538],
"BUSH_ST_AND_BATTERY_ST": [37.79131,-122.39977],
"BUSH_ST_AND_HYDE_ST": [37.78915,-122.41658],
"BUSH_ST_AND_JONES_ST": [37.78944,-122.41387],
"BUSH_ST_AND_LEAVENWORTH_ST": [37.7893,-122.41496],
"BUSH_ST_AND_MONTGOMERY_ST": [37.790924,-122.402118],
"BUENA_VISTA_AVE_E_AND_BUENA_VISTA_TER": [37.76867,-122.43854],
"BUENA_VISTA_AVE_E_AND_BUENA_VISTA_TER": [37.76773,-122.44021],
"BUENA_VISTA_TER_AND_BUENA_VISTA_AVE_E": [37.76883,-122.43833],
"BUENA_VISTA_TER_AND_ROOSEVELT_WAY": [37.76685,-122.43815],
"BUENA_VISTA_TER_AND_ROOSEVELT_WAY": [37.76681,-122.4382],
"CALIFORNIA_ST_AND_4TH_AVE": [37.785353,-122.462292],
"CALIFORNIA_ST_AND_4TH_AVE": [37.785178,-122.46257],
"CALIFORNIA_ST_AND_6TH_AVE": [37.785069,-122.464641],
"CALIFORNIA_ST_AND_6TH_AVE": [37.784902,-122.464709],
"CALIFORNIA_ST_AND_7TH_AVE": [37.784819,-122.465432],
"CALIFORNIA_ST_AND_8TH_AVE": [37.78463,-122.466825],
"CALIFORNIA_ST_AND_10TH_AVE": [37.784665,-122.469159],
"CALIFORNIA_ST_AND_10TH_AVE": [37.784551,-122.468963],
"CALIFORNIA_ST_AND_12TH_AVE": [37.784586,-122.470848],
"CALIFORNIA_ST_AND_12TH_AVE": [37.784454,-122.471103],
"CALIFORNIA_ST_AND_16TH_AVE": [37.784386,-122.475229],
"CALIFORNIA_ST_AND_16TH_AVE": [37.784253,-122.475501],
"CALIFORNIA_ST_AND_19TH_AVE": [37.784241,-122.478446],
"CALIFORNIA_ST_AND_19TH_AVE": [37.784109,-122.47871],
"CALIFORNIA_ST_AND_22ND_AVE": [37.784097,-122.481659],
"CALIFORNIA_ST_AND_22ND_AVE": [37.783941,-122.481893],
"CALIFORNIA_ST_AND_25TH_AVE": [37.78395,-122.48482],
"CALIFORNIA_ST_AND_25TH_AVE": [37.783808,-122.485286],
"CALIFORNIA_ST_AND_28TH_AVE": [37.783798,-122.488074],
"CALIFORNIA_ST_AND_28TH_AVE": [37.783658,-122.488456],
"CALIFORNIA_ST_AND_30TH_AVE": [37.783671,-122.490513],
"CALIFORNIA_ST_AND_30TH_AVE": [37.783578,-122.490087],
"CALIFORNIA_ST_AND_ARGUELLO_BLVD": [37.785703,-122.459288],
"CALIFORNIA_ST_AND_ARGUELLO_BLVD": [37.785659,-122.459036],
"CALIFORNIA_ST_AND_BAKER_ST": [37.787738,-122.443634],
"CALIFORNIA_ST_AND_BAKER_ST": [37.78762,-122.443384],
"CALIFORNIA_ST_AND_BATTERY_ST": [37.793296,-122.399813],
"CALIFORNIA_ST_AND_BATTERY_ST": [37.793144,-122.39987],
"CALIFORNIA_ST_AND_CHERRY_ST": [37.786042,-122.456835],
"CALIFORNIA_ST_AND_CHERRY_ST": [37.785974,-122.456329],
"CALIFORNIA_ST_AND_COMMONWEALTH_ST": [37.785977,-122.456321],
"CALIFORNIA_ST_AND_DAVIS_ST": [37.793589,-122.397462],
"CALIFORNIA_ST_AND_DAVIS_ST": [37.79342,-122.397749],
"CALIFORNIA_ST_AND_DIVISADERO_ST": [37.788087,-122.44087],
"CALIFORNIA_ST_AND_DIVISADERO_ST": [37.787954,-122.440721],
"CALIFORNIA_ST_AND_DRUMM_ST": [37.793678,-122.396373],
"CALIFORNIA_ST_AND_FILLMORE_ST": [37.788931,-122.434151],
"CALIFORNIA_ST_AND_FILLMORE_ST": [37.788861,-122.433989],
"CALIFORNIA_ST_AND_FRONT_ST": [37.793438,-122.398643],
"CALIFORNIA_ST_AND_FRONT_ST": [37.79327,-122.39892],
"CALIFORNIA_ST_AND_GRANT_AVE": [37.792504,-122.405958],
"CALIFORNIA_ST_AND_GRANT_AVE": [37.792379,-122.405935],
"CALIFORNIA_ST_AND_HYDE_ST": [37.791018,-122.41756],
"CALIFORNIA_ST_AND_HYDE_ST": [37.790902,-122.417537],
"CALIFORNIA_ST_AND_JONES_ST": [37.791472,-122.414121],
"CALIFORNIA_ST_AND_JONES_ST": [37.791347,-122.414098],
"CALIFORNIA_ST_AND_KEARNY_ST": [37.792718,-122.404273],
"CALIFORNIA_ST_AND_KEARNY_ST": [37.792593,-122.40425],
"CALIFORNIA_ST_AND_LARKIN_ST": [37.790866,-122.41889],
"CALIFORNIA_ST_AND_LARKIN_ST": [37.7907,-122.41916],
"CALIFORNIA_ST_AND_LAUREL_ST": [37.786923,-122.449957],
"CALIFORNIA_ST_AND_LAUREL_ST": [37.786712,-122.45026],
"CALIFORNIA_ST_AND_LEAVENWORTH_ST": [37.791285,-122.415611],
"CALIFORNIA_ST_AND_LEAVENWORTH_ST": [37.791133,-122.415749],
"CALIFORNIA_ST_AND_MAPLE_ST": [37.786248,-122.455207],
"CALIFORNIA_ST_AND_MASON_ST": [37.791872,-122.41098],
"CALIFORNIA_ST_AND_MASON_ST": [37.791747,-122.410957],
"CALIFORNIA_ST_AND_MONTGOMERY_ST": [37.792762,-122.402908],
"CALIFORNIA_ST_AND_MONTGOMERY_ST": [37.792931,-122.402622],
"CALIFORNIA_ST_AND_PIERCE_ST": [37.788518,-122.437484],
"CALIFORNIA_ST_AND_PIERCE_ST": [37.788455,-122.436808],
"CALIFORNIA_ST_AND_PARK_PRESIDIO_BLVD": [37.784515,-122.47325],
"CALIFORNIA_ST_AND_PARK_PRESIDIO_BLVD": [37.784365,-122.472764],
"CALIFORNIA_ST_AND_POLK_ST": [37.790661,-122.420541],
"CALIFORNIA_ST_AND_POLK_ST": [37.790492,-122.420828],
"CALIFORNIA_ST_AND_POWELL_ST": [37.792068,-122.40942],
"CALIFORNIA_ST_AND_POWELL_ST": [37.791952,-122.40934],
"CALIFORNIA_ST_AND_PRESIDIO_AVE": [37.787265,-122.446965],
"CALIFORNIA_ST_AND_PRESIDIO_AVE": [37.787212,-122.446931],
"CALIFORNIA_ST_AND_SANSOME_ST": [37.793145,-122.400982],
"CALIFORNIA_ST_AND_SANSOME_ST": [37.792975,-122.401269],
"CALIFORNIA_ST_AND_SPRUCE_ST": [37.786503,-122.453281],
"CALIFORNIA_ST_AND_SPRUCE_ST": [37.786334,-122.453517],
"CALIFORNIA_ST_AND_STEINER_ST": [37.788792,-122.435076],
"CALIFORNIA_ST_AND_STOCKTON_ST": [37.792308,-122.407552],
"CALIFORNIA_ST_AND_STOCKTON_ST": [37.792184,-122.407529],
"CALIFORNIA_ST_AND_TAYLOR_ST": [37.791712,-122.412321],
"CALIFORNIA_ST_AND_TAYLOR_ST": [37.791543,-122.412608],
"CALIFORNIA_ST_AND_VAN_NESS_AVE": [37.79037,-122.42233],
"CALIFORNIA_ST_AND_AVENUE_C": [37.818326,-122.370139],
"CALIFORNIA_ST_AND_AVENUE_D": [37.818504,-122.369531],
"CALIFORNIA_ST_AND_AVENUE_H": [37.81992,-122.36613],
"CALIFORNIA_AVE_AND_AVENUE_M": [37.820749,-122.364196],
"CARDENAS_AVE_AND_GONZALEZ_DR": [37.71904,-122.47538],
"CARL_ST_AND_COLE_ST": [37.765863,-122.449804],
"CARL_ST_AND_COLE_ST": [37.765745,-122.450131],
"CARL_ST_AND_HILLWAY_AVE": [37.765003,-122.456561],
"CARL_ST_AND_HILLWAY_AVE": [37.764932,-122.456512],
"CARL_ST_AND_STANYAN_ST": [37.765495,-122.45259],
"CARL_ST_AND_STANYAN_ST": [37.765371,-122.452928],
"CAROLINA_ST_AND_22ND_ST": [37.75734,-122.39999],
"CASHMERE_ST_AND_HUDSON_AVE": [37.73573,-122.38354],
"CASHMERE_ST_AND_LA_SALLE_AVE": [37.73585,-122.38695],
"CASHMERE_ST_AND_WHITNEY_YOUNG_CIR": [37.7366,-122.38588],
"CABRILLO_ST_AND_6TH_AVE": [37.775451,-122.463975],
"CABRILLO_ST_AND_47TH_AVE": [37.773421,-122.507767],
"CABRILLO_ST_AND_47TH_AVE": [37.773287,-122.507985],
"CABRILLO_ST_AND_LA_PLAYA_ST": [37.77365,-122.50983],
"CABRILLO_ST_AND_LA_PLAYA_ST": [37.773527,-122.510002],
"CESAR_CHAVEZ_ST_AND_ALABAMA_ST": [37.74842,-122.41043],
"CESAR_CHAVEZ_ST_AND_BRYANT_ST": [37.74845,-122.40909],
"CESAR_CHAVEZ_ST_AND_FLORIDA_ST": [37.74823,-122.40976],
"CESAR_CHAVEZ_ST_AND_FOLSOM_ST": [37.74834,-122.41398],
"CESAR_CHAVEZ_ST_AND_FOLSOM_ST": [37.74815,-122.41382],
"CESAR_CHAVEZ_ST_AND_HARRISON_ST": [37.7484,-122.4119],
"CESAR_CHAVEZ_ST_AND_HARRISON_ST": [37.7482,-122.41163],
"CESAR_CHAVEZ_ST_AND_MISSION_ST": [37.748234,-122.418369],
"CESAR_CHAVEZ_ST_AND_SOUTH_VAN_NESS_AVE": [37.748305,-122.415756],
"CHESTNUT_ST_AND_BRODERICK_ST": [37.799837,-122.44442],
"CHESTNUT_ST_AND_BUCHANAN_ST": [37.801308,-122.432863],
"CHESTNUT_ST_AND_BUCHANAN_ST": [37.801157,-122.433057],
"CHESTNUT_ST_AND_DIVISADERO_ST": [37.800051,-122.442746],
"CHESTNUT_ST_AND_FILLMORE_ST": [37.800845,-122.436245],
"CHESTNUT_ST_AND_FILLMORE_ST": [37.800738,-122.436371],
"CHESTNUT_ST_AND_FRANKLIN_ST": [37.80211,-122.426568],
"CHESTNUT_ST_AND_FRANKLIN_ST": [37.80203,-122.426212],
"CHESTNUT_ST_AND_GOUGH_ST": [37.801905,-122.428184],
"CHESTNUT_ST_AND_GOUGH_ST": [37.801825,-122.427852],
"CHESTNUT_ST_AND_LAGUNA_ST": [37.801486,-122.431475],
"CHESTNUT_ST_AND_LAGUNA_ST": [37.80137,-122.431406],
"CHESTNUT_ST_AND_MALLORCA_WAY": [37.80072,-122.43746],
"CHESTNUT_ST_AND_OCTAVIA_ST": [37.801691,-122.429836],
"CHESTNUT_ST_AND_OCTAVIA_ST": [37.801611,-122.429503],
"CHESTNUT_ST_AND_PIERCE_ST": [37.800443,-122.439673],
"CHESTNUT_ST_AND_PIERCE_ST": [37.800363,-122.439341],
"CHESTNUT_ST_AND_SCOTT_ST": [37.800265,-122.441083],
"CHESTNUT_ST_AND_SCOTT_ST": [37.800113,-122.441278],
"CHESTNUT_ST_AND_VAN_NESS_AVE": [37.802333,-122.424871],
"CHESTNUT_ST_AND_VAN_NESS_AVE": [37.802199,-122.424894],
"CHESTNUT_ST_AND_WEBSTER_ST": [37.801103,-122.434502],
"CHESTNUT_ST_AND_WEBSTER_ST": [37.800951,-122.434697],
"CHICAGO_WAY_AND_CORDOVA_AVE": [37.70887,-122.434222],
"CHICAGO_WAY_AND_CORDOVA_AVE": [37.708968,-122.434336],
"CHICAGO_WAY_AND_NAYLOR_ST": [37.709834,-122.432435],
"CHICAGO_WAY_AND_NAYLOR_ST": [37.709628,-122.432504],
"CHICAGO_WAY_AND_SOUTH_HILL_BLVD": [37.710565,-122.431381],
"CHENERY_ST_AND_30TH_ST": [37.74202,-122.42575],
"CHENERY_ST_AND_30TH_ST": [37.74191,-122.42582],
"CHENERY_ST_AND_CASTRO_ST": [37.7346,-122.43233],
"CHENERY_ST_AND_FAIRMOUNT_ST": [37.7389,-122.42579],
"CHENERY_ST_AND_MATEO_ST": [37.73646,-122.42894],
"CHENERY_ST_AND_MATEO_ST": [37.73633,-122.429],
"CHENERY_ST_AND_MIGUEL_ST": [37.73714,-122.42775],
"CHENERY_ST_AND_MIGUEL_ST": [37.73711,-122.42792],
"CHENERY_ST_AND_NATICK_ST": [37.73458,-122.43191],
"CHENERY_ST_AND_RANDALL_ST": [37.739929,-122.425692],
"CHENERY_ST_AND_RANDALL_ST": [37.739625,-122.425498],
"CHENERY_ST_AND_ROANOKE_ST": [37.73563,-122.4302],
"CHENERY_ST_AND_ROANOKE_ST": [37.73548,-122.43028],
"CHUMASERO_DR_AND_BROTHERHOOD_WAY": [37.71331,-122.47292],
"CHUMASERO_DR_AND_BROTHERHOOD_WAY": [37.7131,-122.47278],
"CHUMASERO_DR_AND_FONT_BLVD": [37.71482,-122.47307],
"CHUMASERO_DR_AND_FONT_BLVD": [37.715007,-122.473135],
"CHUMASERO_DR_AND_GALINDO_AVE": [37.71407,-122.47316],
"CHURCH_ST_AND_16TH_ST": [37.764621,-122.428722],
"CHURCH_ST_AND_16TH_ST": [37.764382,-122.428609],
"CHURCH_ST_AND_17TH_ST": [37.76281,-122.4285],
"CHURCH_ST_AND_18TH_ST": [37.761467,-122.428416],
"CHURCH_ST_AND_22ND_ST": [37.754785,-122.427659],
"CHURCH_ST_AND_24TH_ST": [37.7518,-122.427497],
"CHURCH_ST_AND_24TH_ST": [37.751591,-122.42735],
"CHURCH_ST_AND_27TH_ST": [37.746985,-122.427073],
"CHURCH_ST_AND_27TH_ST": [37.746781,-122.426893],
"CHURCH_ST_AND_29TH_ST": [37.743587,-122.426585],
"CHURCH_ST_AND_30TH_ST": [37.742222,-122.426459],
"CHURCH_ST_AND_30TH_ST": [37.742097,-122.426528],
"CHURCH_ST_AND_CLIPPER_ST": [37.749388,-122.427289],
"CHURCH_ST_AND_CLIPPER_ST": [37.749182,-122.427122],
"CHURCH_ST_AND_DAY_ST": [37.742811,-122.426654],
"CHURCH_ST_AND_DUBOCE_AVE": [37.769499,-122.429167],
"CHURCH_ST_AND_DUBOCE_AVE": [37.769302,-122.429087],
"CHURCH_ST_AND_MARKET_ST": [37.767821,-122.429065],
"CHURCH_ST_AND_MARKET_ST": [37.767777,-122.428881],
"CHURCH_ST_AND_MARKET_ST": [37.76729,-122.428889],
"CIRCULAR_AVE_AND_BADEN_ST": [37.73038,-122.4396],
"CIRCULAR_AVE_AND_MONTEREY_BLVD": [37.73132,-122.43699],
"CIRCULAR_AVE_AND_MONTEREY_BLVD": [37.73139,-122.43716],
"LAGUNA_HONDA_HOSP/CLARENDON_HALL": [37.74984,-122.45691],
"CLAY_ST_AND_DRUMM_ST": [37.795436,-122.396819],
"CLAY_ST_AND_FRANKLIN_ST": [37.791907,-122.424463],
"CLAY_ST_AND_FRONT_ST": [37.795116,-122.399101],
"CLAY_ST_AND_GRANT_AVE": [37.794263,-122.405971],
"CLAY_ST_AND_HYDE_ST": [37.792756,-122.417899],
"CLAY_ST_AND_JONES_ST": [37.793173,-122.414616],
"CLAY_ST_AND_KEARNY_ST": [37.794477,-122.404411],
"CLAY_ST_AND_LARKIN_ST": [37.792526,-122.419589],
"CLAY_ST_AND_LEAVENWORTH_ST": [37.792959,-122.416304],
"CLAY_ST_AND_MASON_ST": [37.793653,-122.410823],
"CLAY_ST_AND_MONTGOMERY_ST": [37.794682,-122.40277],
"CLAY_ST_AND_POLK_ST": [37.792357,-122.42101],
"CLAY_ST_AND_POWELL_ST": [37.793826,-122.409591],
"CLAY_ST_AND_SANSOME_ST": [37.79484,-122.401543],
"CLAY_ST_AND_STOCKTON_ST": [37.794082,-122.407561],
"CLAY_ST_AND_TAYLOR_ST": [37.793363,-122.412744],
"CLAY_ST_AND_VAN_NESS_AVE": [37.792106,-122.422913],
"CLARENDON_AVE_AND_CLARENDON_WOODS_S": [37.75171,-122.45839],
"CLARENDON_AVE_AND_GALEWOOD_CIRCLE": [37.753074,-122.455858],
"CLARENDON_AVE_AND_OLYMPIA_WAY": [37.751628,-122.456178],
"CLARENDON_AVE_AND_PANORAMA_DR": [37.75368,-122.455514],
"CLEMENT_ST_AND_2ND_AVE": [37.783249,-122.459105],
"CLEMENT_ST_AND_2ND_AVE": [37.78309,-122.45982],
"CLEMENT_ST_AND_4TH_AVE": [37.78309,-122.46257],
"CLEMENT_ST_AND_4TH_AVE": [37.78299,-122.46195],
"CLEMENT_ST_AND_6TH_AVE": [37.783,-122.46479],
"CLEMENT_ST_AND_6TH_AVE": [37.782856,-122.464331],
"CLEMENT_ST_AND_8TH_AVE": [37.782798,-122.466158],
"CLEMENT_ST_AND_10TH_AVE": [37.7828,-122.469],
"CLEMENT_ST_AND_10TH_AVE": [37.7827,-122.46837],
"CLEMENT_ST_AND_12TH_AVE": [37.7827,-122.47116],
"CLEMENT_ST_AND_12TH_AVE": [37.78258,-122.47097],
"CLEMENT_ST_AND_14TH_AVE": [37.78249,-122.47312],
"CLEMENT_ST_AND_15TH_AVE": [37.78258,-122.47397],
"CLEMENT_ST_AND_16TH_AVE": [37.78239,-122.47536],
"CLEMENT_ST_AND_17TH_AVE": [37.78245,-122.47671],
"CLEMENT_ST_AND_18TH_AVE": [37.78229,-122.47751],
"CLEMENT_ST_AND_20TH_AVE": [37.78231,-122.47984],
"CLEMENT_ST_AND_20TH_AVE": [37.78222,-122.47914],
"CLEMENT_ST_AND_22ND_AVE": [37.78224,-122.48152],
"CLEMENT_ST_AND_22ND_AVE": [37.78209,-122.48178],
"CLEMENT_ST_AND_24TH_AVE": [37.78213,-122.48367],
"CLEMENT_ST_AND_25TH_AVE": [37.78206,-122.48524],
"CLEMENT_ST_AND_25TH_AVE": [37.78197,-122.4845],
"CLEMENT_ST_AND_27TH_AVE": [37.78199,-122.48688],
"CLEMENT_ST_AND_27TH_AVE": [37.78185,-122.48715],
"CLEMENT_ST_AND_29TH_AVE": [37.78189,-122.48903],
"CLEMENT_ST_AND_29TH_AVE": [37.78175,-122.48929],
"CLEMENT_ST_AND_30TH_AVE": [37.78181,-122.49061],
"CLEMENT_ST_AND_31ST_AVE": [37.78166,-122.49143],
"CLEMENT_ST_AND_32ND_AVE": [37.78174,-122.49223],
"CLEMENT_ST_AND_32ND_AVE": [37.7816,-122.49253],
"CLEMENT_ST_AND_LEGION_OF_HONOR_DR": [37.781644,-122.494397],
"CLAYTON_ST_AND_TWIN_PEAKS_BLVD": [37.760863,-122.446485],
"CLIPPER_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.74689,-122.44396],
"CLIPPER_ST_AND_PORTOLA_DR": [37.7467,-122.445],
"CLAYTON_ST_AND_CARL_ST": [37.766288,-122.447779],
"CLAYTON_ST_AND_CARL_ST": [37.766154,-122.44794],
"CLAYTON_ST_AND_CORBETT_AVE": [37.758793,-122.445935],
"CLAYTON_ST_AND_CORBETT_AVE": [37.758668,-122.445866],
"CLAYTON_ST_AND_CARMEL_ST": [37.760944,-122.446336],
"CLAYTON_ST_AND_FREDERICK_ST": [37.76694,-122.447917],
"CLAYTON_ST_AND_MARKET_ST": [37.758383,-122.444479],
"CLAYTON_ST_AND_MARKET_ST": [37.758222,-122.444319],
"CLAYTON_ST_AND_PARNASSUS_AVE": [37.765405,-122.447608],
"CLAYTON_ST_AND_PARNASSUS_AVE": [37.765226,-122.447757],
"CAMBON_DR_AND_CASTELO_AVE": [37.717443,-122.47427],
"CAMBON_DR_AND_CASTELO_AVE": [37.717264,-122.47443],
"CAMBON_DR_AND_FONT_BLVD": [37.716015,-122.474441],
"COIT_TOWER": [37.80266,-122.40579],
"COLE_ST_AND_17TH_ST": [37.761711,-122.449212],
"COLE_ST_AND_ALMA_ST": [37.763263,-122.449533],
"COLE_ST_AND_ALMA_ST": [37.76313,-122.44938],
"COLE_ST_AND_CARL_ST": [37.76594,-122.449911],
"COLE_ST_AND_CARL_ST": [37.76556,-122.44996],
"COLE_ST_AND_CARMEL_ST": [37.760926,-122.449052],
"COLE_ST_AND_FREDERICK_ST": [37.76683,-122.4502],
"COLE_ST_AND_HAIGHT_ST": [37.769456,-122.45061],
"COLE_ST_AND_HAIGHT_ST": [37.769447,-122.450771],
"COLE_ST_AND_PARNASSUS_AVE": [37.76477,-122.44971],
"COLE_ST_AND_PARNASSUS_AVE": [37.76462,-122.44978],
"COLE_ST_AND_WALLER_ST": [37.768528,-122.450427],
"COLUMBUS_AVE_AND_BAY_ST": [37.80551,-122.41784],
"COLUMBUS_AVE_AND_BROADWAY": [37.798123,-122.406897],
"COLUMBUS_AVE_AND_BROADWAY": [37.797626,-122.406465],
"COLUMBUS_AVE_AND_CHESTNUT_ST": [37.803794,-122.415136],
"COLUMBUS_AVE_AND_CHESTNUT_ST": [37.80341,-122.414586],
"COLUMBUS_AVE_AND_FILBERT_ST": [37.801188,-122.411605],
"COLUMBUS_AVE_AND_FRANCISCO_ST": [37.804517,-122.416167],
"COLUMBUS_AVE_AND_FRANCISCO_ST": [37.804205,-122.415973],
"COLUMBUS_AVE_AND_GREEN_ST": [37.799386,-122.408723],
"COLUMBUS_AVE_AND_JACKSON_ST": [37.796065,-122.404307],
"COLUMBUS_AVE_AND_JACKSON_ST": [37.79626,-122.40442],
"COLUMBUS_AVE_AND_KEARNY_ST": [37.797319,-122.405742],
"COLUMBUS_AVE_AND_LOMBARD_ST": [37.802687,-122.413531],
"COLUMBUS_AVE_AND_LOMBARD_ST": [37.802598,-122.413646],
"COLUMBUS_AVE_AND_MASON_ST": [37.802089,-122.41266],
"COLUMBUS_AVE_AND_NORTH_POINT_ST": [37.80549,-122.417589],
"COLUMBUS_AVE_AND_STOCKTON_ST": [37.79911,-122.408602],
"COLUMBUS_AVE_AND_TAYLOR_ST": [37.803285,-122.414643],
"COLUMBUS_AVE_AND_UNION_ST": [37.8005,-122.410356],
"COLUMBUS_AVE_AND_UNION_ST": [37.800331,-122.410242],
"COLUMBUS_AVE_AND_WASHINGTON_ST": [37.79591,-122.403682],
"1095_CONNECTICUT_ST": [37.753902,-122.397341],
"CONNECTICUT_ST_AND_17TH_ST": [37.76498,-122.397661],
"CONNECTICUT_ST_AND_17TH_ST": [37.764749,-122.397785],
"CONNECTICUT_ST_AND_18TH_ST": [37.762614,-122.397569],
"CONNECTICUT_ST_AND_18TH_ST": [37.76243,-122.39741],
"CONNECTICUT_ST_AND_19TH_ST": [37.76115,-122.39733],
"CONNECTICUT_ST_AND_25TH_ST": [37.752563,-122.396402],
"CONNECTICUT_ST_AND_26TH_ST": [37.75143,-122.396345],
"CONNECTICUT_ST_AND_26TH_ST": [37.751269,-122.396517],
"CONNECTICUT_ST_AND_CESAR_CHAVEZ_ST": [37.750002,-122.39622],
"CONNECTICUT_ST_AND_CESAR_CHAVEZ_ST": [37.749868,-122.396381],
"CONZELMAN_RD/KIRBY_COVE": [37.82952,-122.48402],
"CONZELMAN_RD/KIRBY_COVE": [37.82944,-122.48354],
"CONZELMAN_RD/GGNRA_ENTRANCE_SIGN": [37.83309,-122.48355],
"CONZELMAN_RD/GGNRA_ENTRANCE_SIGN": [37.832836,-122.483291],
"CORDOVA_AVE_AND_PRAGUE_ST": [37.710182,-122.434874],
"CORDOVA_AVE_AND_WINDING_WAY": [37.709638,-122.434828],
"CORDOVA_AVE_AND_WINDING_WAY": [37.709504,-122.434588],
"CORNWALL_ST_AND_5TH_AVE": [37.784882,-122.463621],
"CORTLAND_AVE_AND_ANDOVER_ST": [37.73909,-122.41639],
"CORTLAND_AVE_AND_ANDOVER_ST": [37.73904,-122.41658],
"CORTLAND_AVE_AND_BOCANA_ST": [37.7393,-122.41846],
"CORTLAND_AVE_AND_BOCANA_ST": [37.73931,-122.41872],
"CORTLAND_AVE_AND_BRADFORD_ST": [37.739791,-122.409746],
"CORTLAND_AVE_AND_BAYSHORE_BLVD": [37.739567,-122.407031],
"CORTLAND_AVE_AND_ELSIE_ST": [37.73992,-122.41997],
"CORTLAND_AVE_AND_ELSIE_ST": [37.7397,-122.41969],
"CORTLAND_AVE_AND_ELLSWORTH_ST": [37.73892,-122.41455],
"CORTLAND_AVE_AND_ELLSWORTH_ST": [37.738829,-122.414615],
"CORTLAND_AVE_AND_FOLSOM_ST": [37.739,-122.41366],
"CORTLAND_AVE_AND_FOLSOM_ST": [37.73892,-122.41343],
"CORTLAND_AVE_AND_HILTON_ST": [37.739692,-122.40781],
"CORTLAND_AVE_AND_MISSION_ST": [37.74101,-122.42267],
"CORTLAND_AVE_AND_MISSION_ST": [37.74085,-122.42251],
"CORTLAND_AVE_AND_PRENTISS_ST": [37.73978,-122.41199],
"CORTLAND_AVE_AND_PRENTISS_ST": [37.73957,-122.41211],
"CORTLAND_AVE_AND_PROSPECT_AVE": [37.740294,-122.420904],
"CORTLAND_AVE_AND_PROSPECT_AVE": [37.7402,-122.42093],
"210_CORBETT_AVE": [37.7618,-122.442841],
"211_CORBETT_AVE": [37.761648,-122.442944],
"320_CORBETT_AVE": [37.759926,-122.445327],
"341_CORBETT_AVE": [37.759908,-122.445075],
"539_CORBETT_AVE": [37.757499,-122.444147],
"795_CORBETT_AVE": [37.754118,-122.443013],
"800_CORBETT_AVE": [37.75399,-122.443],
"925_CORBETT_AVE": [37.752083,-122.443414],
"956_CORBETT_AVE": [37.751682,-122.443712],
"CORBETT_AVE_AND_CLAYTON_ST": [37.75894,-122.44614],
"CORBETT_AVE_AND_CLAYTON_ST": [37.758659,-122.4459],
"CORBETT_AVE_AND_CUESTA_CT": [37.75085,-122.44396],
"CORBETT_AVE_AND_DANVERS_ST": [37.761202,-122.444044],
"CORBETT_AVE_AND_DANVERS_ST": [37.761327,-122.444078],
"CORBETT_AVE_AND_DOUGLASS_ST": [37.76208,-122.43962],
"CORBETT_AVE_AND_GRAYSTONE_TER": [37.75641,-122.44328],
"CORBETT_AVE_AND_GRAYSTONE_TER": [37.756446,-122.443425],
"CORBETT_AVE_AND_HATTIE_ST": [37.761711,-122.441122],
"CORBETT_AVE_AND_HATTIE_ST": [37.76161,-122.44112],
"CORBETT_AVE_AND_HOPKINS_AVE": [37.752869,-122.443815],
"CORBETT_AVE_AND_IRON_ALY": [37.75783,-122.444743],
"CORBETT_AVE_AND_MARS_ST": [37.760542,-122.44425],
"CORBETT_AVE_AND_MARS_ST": [37.76048,-122.444479],
"CORBETT_AVE_AND_ORD_ST": [37.761898,-122.440216],
"CORBETT_AVE_AND_ROMAIN_ST": [37.755483,-122.442795],
"CORBETT_AVE_AND_ROMAIN_ST": [37.755349,-122.44283],
"CRESCENT_AVE_AND_AGNON_AVE": [37.735074,-122.421822],
"CRESCENT_AVE_AND_ANDOVER_ST": [37.734966,-122.416725],
"CRESCENT_AVE_AND_ANDOVER_ST": [37.734832,-122.416942],
"CRESCENT_AVE_AND_ARNOLD_AVE": [37.734966,-122.419726],
"CRESCENT_AVE_AND_COLLEGE_AVE": [37.735253,-122.424056],
"CRESCENT_AVE_AND_ELLSWORTH_ST": [37.734867,-122.414834],
"CRESCENT_AVE_AND_FOLSOM_ST": [37.734804,-122.413586],
"CRESCENT_AVE_AND_FOLSOM_ST": [37.73467,-122.413804],
"CRESCENT_AVE_AND_LEESE_ST": [37.735244,-122.422567],
"CRESCENT_AVE_AND_MISSION_ST": [37.735423,-122.424457],
"CRESCENT_AVE_AND_MURRAY_ST": [37.735136,-122.420127],
"CRESCENT_AVE_AND_PORTER_ST": [37.734895,-122.418214],
"CRESCENT_AVE_AND_PUTNAM_ST": [37.735009,-122.411169],
"CRESCENT_AVE_AND_PUTNAM_ST": [37.734911,-122.411283],
"CRESCENT_AVE_AND_ROSCOE_ST": [37.735055,-122.418626],
"CARMEL_ST_AND_BELVEDERE_ST": [37.76092,-122.447631],
"CARMEL_ST_AND_TWIN_PEAKS_BLVD": [37.760935,-122.446634],
"CRESPI_DR_AND_19TH_AVE": [37.720218,-122.475313],
"CRESPI_DR_AND_VARELA_AVE": [37.7201,-122.47594],
"40_CRESTLINE_DR": [37.750388,-122.446577],
"74_CRESTLINE_DR": [37.751762,-122.446198],
"FULTON_ST_AND_33RD_AVE": [37.77223,-122.49318],
"FULTON_ST_AND_33RD_AVE": [37.7721,-122.49288],
"FULTON_ST_AND_36TH_AVE": [37.77208,-122.49634],
"FULTON_ST_AND_36TH_AVE": [37.77197,-122.49557],
"FULTON_ST_AND_37TH_AVE": [37.77192,-122.49679],
"FULTON_ST_AND_38TH_AVE": [37.77198,-122.49798],
"FULTON_ST_AND_40TH_AVE": [37.77189,-122.50009],
"FULTON_ST_AND_40TH_AVE": [37.77179,-122.49991],
"FULTON_ST_AND_43RD_AVE": [37.77177,-122.50306],
"FULTON_ST_AND_43RD_AVE": [37.77159,-122.50363],
"FULTON_ST_AND_46TH_AVE": [37.77159,-122.50704],
"FULTON_ST_AND_46TH_AVE": [37.77148,-122.50631],
"FULTON_ST_AND_ARGUELLO_BLVD": [37.774354,-122.458416],
"FULTON_ST_AND_ARGUELLO_BLVD": [37.774282,-122.458003],
"FULTON_ST_AND_CLAYTON_ST": [37.775407,-122.449774],
"FULTON_ST_AND_CLAYTON_ST": [37.77537,-122.44929],
"FULTON_ST_AND_GREAT_HWY": [37.771421,-122.510792],
"FULTON_ST_AND_LA_PLAYA_ST": [37.77134,-122.50939],
"FULTON_ST_AND_MASONIC_AVE": [37.775844,-122.446404],
"FULTON_ST_AND_MASONIC_AVE": [37.775773,-122.446289],
"FULTON_ST_AND_PARK_PRESIDIO_BLVD": [37.77319,-122.47218],
"FULTON_ST_AND_PARK_PRESIDIO_BLVD": [37.77305,-122.47199],
"FULTON_ST_AND_PARKER_AVE": [37.775014,-122.452868],
"FULTON_ST_AND_SHRADER_ST": [37.77499,-122.45238],
"FULTON_ST_AND_STANYAN_ST": [37.774756,-122.454519],
"FULTON_ST_AND_STANYAN_STW": [37.774773,-122.454737],
"FUNSTON_AVE_AND_PRESIDIO_BLVD": [37.798257,-122.456355],
"FOWLER_AVE_AND_PORTOLA_DR": [37.744356,-122.453233],
"GOLDEN_GATE_AVE_AND_HYDE_ST": [37.781622,-122.41549],
"GOLDEN_GATE_AVE_AND_JONES_ST": [37.78207,-122.41193],
"GOLDEN_GATE_AVE_AND_LEAVENWORTH_ST": [37.781826,-122.413896],
"GOLDEN_GATE_AVE_AND_POLK_ST": [37.78123,-122.41833],
"GOLDEN_GATE_AVE_AND_VAN_NESS_AVE": [37.78095,-122.42066],
"GARFIELD_ST_AND_BEVERLY_ST": [37.719719,-122.471533],
"GARFIELD_ST_AND_BRIGHT_ST": [37.719988,-122.463459],
"GARFIELD_ST_AND_BRIGHT_ST": [37.719791,-122.463642],
"GARFIELD_ST_AND_BYXBEE_ST": [37.719737,-122.469735],
"GARFIELD_ST_AND_VERNON_ST": [37.719746,-122.467937],
"GARFIELD_ST_AND_VICTORIA_ST": [37.719613,-122.465452],
"GEARY_BLVD_AND_3RD_AVE": [37.781277,-122.460938],
"GEARY_BLVD_AND_3RD_AVE": [37.781045,-122.461156],
"GEARY_BLVD_AND_6TH_AVE": [37.781134,-122.464159],
"GEARY_BLVD_AND_6TH_AVE": [37.780902,-122.464377],
"GEARY_BLVD_AND_9TH_AVE": [37.780982,-122.467644],
"GEARY_BLVD_AND_9TH_AVE": [37.780777,-122.467323],
"GEARY_BLVD_AND_12TH_AVE": [37.780839,-122.470601],
"GEARY_BLVD_AND_12TH_AVE": [37.780607,-122.470819],
"GEARY_BLVD_AND_17TH_AVE": [37.780597,-122.476045],
"GEARY_BLVD_AND_17TH_AVE": [37.780365,-122.476263],
"GEARY_BLVD_AND_20TH_AVE": [37.780453,-122.479266],
"GEARY_BLVD_AND_20TH_AVE": [37.780221,-122.479484],
"GEARY_BLVD_AND_22ND_AVE": [37.780346,-122.481398],
"GEARY_BLVD_AND_23RD_AVE": [37.780078,-122.482693],
"GEARY_BLVD_AND_25TH_AVE": [37.78022,-122.48461],
"GEARY_BLVD_AND_25TH_AVE": [37.779979,-122.484825],
"GEARY_BLVD_AND_28TH_AVE": [37.780005,-122.487806],
"GEARY_BLVD_AND_28TH_AVE": [37.779862,-122.488046],
"GEARY_BLVD_AND_30TH_AVE": [37.779959,-122.489972],
"GEARY_BLVD_AND_30TH_AVE": [37.779727,-122.49019],
"GEARY_BLVD_AND_32ND_AVE": [37.779611,-122.491943],
"GEARY_BLVD_AND_33RD_AVE": [37.77969,-122.4933],
"GEARY_BLVD_AND_33RD_AVE": [37.779735,-122.493112],
"GEARY_BLVD_AND_33RD_AVE": [37.779798,-122.493445],
"GEARY_BLVD_AND_33RD_AVE": [37.779574,-122.493399],
"GEARY_BLVD_AND_36TH_AVE": [37.779671,-122.496402],
"GEARY_BLVD_AND_36TH_AVE": [37.779439,-122.49662],
"GEARY_BLVD_AND_39TH_AVE": [37.779473,-122.500677],
"GEARY_BLVD_AND_39TH_AVE": [37.779286,-122.499829],
"GEARY_BLVD_AND_42ND_AVE": [37.779651,-122.502855],
"GEARY_BLVD_AND_42ND_AVE": [37.779151,-122.502775],
"GEARY_BLVD_AND_45TH_AVE": [37.779043,-122.506259],
"GEARY_BLVD_AND_ARGUELLO_BLVD": [37.781376,-122.458737],
"GEARY_BLVD_AND_ARGUELLO_BLVD": [37.781153,-122.458692],
"GEARY_BLVD_AND_BAKER_ST": [37.782973,-122.442965],
"GEARY_BLVD_AND_COLLINS_ST": [37.782242,-122.449992],
"GEARY_BLVD_AND_COLLINS_ST": [37.782028,-122.449911],
"GEARY_BLVD_AND_COMMONWEALTH_ST": [37.781528,-122.455677],
"GEARY_BLVD_AND_DIVISADERO_ST": [37.783428,-122.439366],
"GEARY_BLVD_AND_DIVISADERO_ST": [37.783178,-122.439572],
"GEARY_BLVD_AND_FILLMORE_ST": [37.784391,-122.43305],
"GEARY_BLVD_AND_FILLMORE_ST": [37.784257,-122.433313],
"GEARY_BLVD_AND_FRANKLIN_ST": [37.78557,-122.42289],
"GEARY_BLVD_AND_GOUGH_ST": [37.785434,-122.425082],
"GEARY_BLVD_AND_HYDE_ST": [37.786351,-122.416611],
"GEARY_BLVD_AND_JONES_ST": [37.786769,-122.413332],
"GEARY_BLVD_AND_KEARNY_ST": [37.787997,-122.403656],
"GEARY_BLVD_AND_LARKIN_ST": [37.786137,-122.41825],
"GEARY_BLVD_AND_LEAVENWORTH_ST": [37.786556,-122.414971],
"GEARY_BLVD_AND_LAGUNA_ST": [37.785033,-122.427811],
"GEARY_BLVD_AND_LAGUNA_ST": [37.784854,-122.428155],
"GEARY_BLVD_AND_MASON_ST": [37.78717,-122.41028],
"CASTRO_ST_AND_14TH_ST": [37.76761,-122.43558],
"CASTRO_ST_AND_14TH_ST": [37.76742,-122.43571],
"CASTRO_ST_AND_15TH_ST": [37.76583,-122.43557],
"CASTRO_ST_AND_15TH_ST": [37.76561,-122.43538],
"CASTRO_ST_AND_16TH_ST": [37.764164,-122.435254],
"CASTRO_ST_AND_16TH_ST": [37.76427,-122.43544],
"CASTRO_ST_AND_17TH_ST": [37.76237,-122.43508],
"CASTRO_ST_AND_18TH_ST": [37.760836,-122.434934],
"CASTRO_ST_AND_18TH_ST": [37.760863,-122.435048],
"CASTRO_ST_AND_19TH_ST": [37.75939,-122.43491],
"CASTRO_ST_AND_19TH_ST": [37.75916,-122.43479],
"CASTRO_ST_AND_20TH_ST": [37.75778,-122.43477],
"CASTRO_ST_AND_20TH_ST": [37.757632,-122.434636],
"CASTRO_ST_AND_21ST_ST": [37.755955,-122.434465],
"CASTRO_ST_AND_21ST_ST": [37.756098,-122.434625],
"CASTRO_ST_AND_22ND_ST": [37.75464,-122.43448],
"CASTRO_ST_AND_22ND_ST": [37.75441,-122.43431],
"CASTRO_ST_AND_23RD_ST": [37.752779,-122.434156],
"CASTRO_ST_AND_23RD_ST": [37.752895,-122.434316],
"CASTRO_ST_AND_24TH_ST": [37.7512,-122.43401],
"CASTRO_ST_AND_24TH_ST": [37.751315,-122.43411],
"CASTRO_ST_AND_25TH_ST": [37.74981,-122.43404],
"CASTRO_ST_AND_25TH_ST": [37.7496,-122.43383],
"CASTRO_ST_AND_DUBOCE_AVE": [37.76918,-122.43596],
"CASTRO_ST_AND_DUBOCE_AVE": [37.76895,-122.43571],
"CASTRO_ST_AND_ELIZABETH_ST": [37.751886,-122.434053],
"CASTRO_ST_AND_ELIZABETH_ST": [37.752083,-122.434248],
"CASTRO_ST_AND_MARKET_ST": [37.762397,-122.435266],
"CITY_VIEW_WAY_AND_KNOLLVIEW_WAY": [37.748898,-122.451377],
"CURTIS_ST_AND_PRAGUE_ST": [37.710209,-122.437955],
"CARGO_WAY_AND_3RD_ST": [37.74606,-122.38695],
"CARGO_WAY_AND_3RD_ST": [37.74577,-122.38665],
"CARGO_WAY_AND_MENDELL_ST": [37.7439,-122.38338],
"DUBOCE_PORTAL/NOT_A_STOP": [37.769427,-122.427254],
"DALY_CITY_BART_STATION": [37.705764,-122.469273],
"14_DAKOTA_ST": [37.75376,-122.39576],
"101_DAKOTA_ST": [37.75374,-122.39565],
"DAKOTA_ST_AND_23RD_ST": [37.7547,-122.39656],
"DAKOTA_ST_AND_25TH_ST": [37.75268,-122.39468],
"DAVIS_ST_AND_CALIFORNIA_ST": [37.79363,-122.3977],
"DAVIS_ST_AND_PINE_ST": [37.792608,-122.397532],
"DE_HARO_ST_AND_16TH_ST": [37.766056,-122.40163],
"DE_HARO_ST_AND_17TH_ST": [37.764762,-122.401516],
"DE_HARO_ST_AND_18TH_ST": [37.76221,-122.401243],
"DE_HARO_ST_AND_19TH_ST": [37.760934,-122.401117],
"DE_HARO_ST_AND_20TH_ST": [37.759667,-122.401026],
"DE_HARO_ST_AND_22ND_ST": [37.757437,-122.400822],
"DE_HARO_ST_AND_23RD_ST": [37.754885,-122.400571],
"DE_HARO_ST_AND_MARIPOSA_ST": [37.763504,-122.401368],
"DE_HARO_ST_AND_SOUTHERN_HEIGHTS_AVE": [37.758017,-122.400867],
"5157_DIAMOND_HEIGHTS_BLVD": [37.74693,-122.4402],
"DIAMOND_HEIGHTS_BLVD_AND_ADDISON_ST": [37.740198,-122.435762],
"DIAMOND_HEIGHTS_BLVD_AND_BERKELEY": [37.73867,-122.43668],
"DIAMOND_HEIGHTS_BLVD_AND_BERKELEY_WAY": [37.7386,-122.4369],
"DIAMOND_HEIGHTS_BLVD_AND_DIAMOND_ST": [37.74185,-122.43566],
"DIAMOND_HEIGHTS_BLVD_AND_DIAMOND_ST": [37.74159,-122.43574],
"DIAMOND_HEIGHTS_BLVD_AND_DUNCAN_ST": [37.745239,-122.439852],
"DIAMOND_HEIGHTS_BLVD_AND_GOLD_MINE_DR": [37.74363,-122.43751],
"DIAMOND_HEIGHTS_BLVD_AND_GOLD_MINE_DR": [37.74029,-122.43588],
"DIAMOND_HEIGHTS_BLVD_AND_GOLD_MINE_DR": [37.74359,-122.43786],
"DIAMOND_ST_AND_24TH_ST": [37.75126,-122.43638],
"DIAMOND_ST_AND_24TH_ST": [37.751075,-122.436219],
"DIAMOND_ST_AND_25TH_ST": [37.74965,-122.43621],
"DIAMOND_ST_AND_25TH_ST": [37.749486,-122.436059],
"DIAMOND_ST_AND_26TH_ST": [37.747889,-122.43591],
"DIAMOND_ST_AND_26TH_ST": [37.747853,-122.43607],
"DIAMOND_ST_AND_27TH_ST": [37.746292,-122.435761],
"DIAMOND_ST_AND_27TH_ST": [37.746256,-122.435922],
"DIAMOND_ST_AND_28TH_ST": [37.744686,-122.435601],
"DIAMOND_ST_AND_28TH_ST": [37.74465,-122.435762],
"DIAMOND_ST_AND_29TH_ST": [37.743249,-122.435659],
"DIAMOND_ST_AND_29TH_ST": [37.74308,-122.435487],
"DIAMOND_ST_AND_ARBOR_ST": [37.738681,-122.434468],
"DIAMOND_ST_AND_ARBOR_ST": [37.738262,-122.434674],
"DIAMOND_ST_AND_CESAR_CHAVEZ_ST": [37.747104,-122.435841],
"DIAMOND_ST_AND_CESAR_CHAVEZ_ST": [37.747068,-122.43599],
"DIAMOND_ST_AND_BOSWORTH_ST": [37.733506,-122.434148],
"DIAMOND_ST_AND_BOSWORTH_ST": [37.733452,-122.434217],
"DIAMOND_ST_AND_CHENERY_ST": [37.73446,-122.433839],
"DIAMOND_ST_AND_CHENERY_ST": [37.734469,-122.433953],
"DIAMOND_ST_AND_CLIPPER_ST": [37.748853,-122.436162],
"DIAMOND_ST_AND_CLIPPER_ST": [37.748683,-122.43599],
"DIAMOND_ST_AND_CONRAD_ST": [37.7383,-122.4363],
"DIAMOND_ST_AND_CONRAD_ST": [37.73841,-122.43593],
"DIAMOND_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.741599,-122.43535],
"DIAMOND_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.73822,-122.43726],
"DIAMOND_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.741617,-122.435533],
"DIAMOND_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.74192,-122.435476],
"DIAMOND_ST_AND_DUNCAN_ST": [37.745641,-122.435864],
"DIAMOND_ST_AND_DUNCAN_ST": [37.745471,-122.435693],
"DIAMOND_ST_AND_MOFFITT_ST": [37.7388,-122.43463],
"DIAMOND_ST_AND_MOFFITT_ST": [37.73889,-122.4346],
"DIAMOND_ST_AND_SURREY_ST": [37.73623,-122.43444],
"DIAMOND_ST_AND_SURREY_ST": [37.73608,-122.43433],
"DIAMOND_ST_AND_SUSSEX_ST": [37.737342,-122.434617],
"DIAMOND_ST_AND_SUSSEX_ST": [37.73731,-122.43475],
"DIVISADERO_ST_AND_BAY_ST": [37.801907,-122.443319],
"DIVISADERO_ST_AND_BEACH_ST": [37.803772,-122.443697],
"DIVISADERO_ST_AND_BUSH_ST": [37.786283,-122.439996],
"DIVISADERO_ST_AND_CALIFORNIA_ST": [37.788184,-122.440385],
"DIVISADERO_ST_AND_CALIFORNIA_ST": [37.787988,-122.4405],
"DIVISADERO_ST_AND_CHESTNUT_ST": [37.79998,-122.442861],
"DIVISADERO_ST_AND_CLAY_ST": [37.789977,-122.440741],
"DIVISADERO_ST_AND_CLAY_ST": [37.78997,-122.44089],
"DIVISADERO_ST_AND_EDDY_ST": [37.780591,-122.438942],
"DIVISADERO_ST_AND_EDDY_ST": [37.780591,-122.438942],
"DIVISADERO_ST_AND_ELLIS_ST": [37.78181,-122.43907],
"DIVISADERO_ST_AND_ELLIS_ST": [37.78161,-122.43923],
"DIVISADERO_ST_AND_FRANCISCO_ST": [37.80097,-122.443136],
"DIVISADERO_ST_AND_FULTON_ST": [37.77677,-122.43806],
"DIVISADERO_ST_AND_FULTON_ST": [37.776763,-122.438243],
"DIVISADERO_ST_AND_GEARY_BLVD": [37.783375,-122.439412],
"DIVISADERO_ST_AND_GEARY_BLVD": [37.78316,-122.439526],
"DIVISADERO_ST_AND_HAIGHT_ST": [37.771329,-122.436983],
"DIVISADERO_ST_AND_HAIGHT_ST": [37.77105,-122.4371],
"DIVISADERO_ST_AND_HAYES_ST": [37.775059,-122.437739],
"DIVISADERO_ST_AND_HAYES_ST": [37.774889,-122.437865],
"DIVISADERO_ST_AND_JACKSON_ST": [37.79154,-122.44108],
"DIVISADERO_ST_AND_MCALLISTER_ST": [37.77786,-122.4383],
"DIVISADERO_ST_AND_MCALLISTER_ST": [37.777682,-122.438415],
"DIVISADERO_ST_AND_NORTH_POINT_ST": [37.802844,-122.443514],
"DIVISADERO_ST_AND_OAK_ST": [37.773185,-122.43735],
"DIVISADERO_ST_AND_OAK_ST": [37.773051,-122.437487],
"DIVISADERO_ST_AND_PINE_ST": [37.786997,-122.440317],
"DIVISADERO_ST_AND_SUTTER_ST": [37.785338,-122.439813],
"DIVISADERO_ST_AND_SUTTER_ST": [37.78515,-122.439939],
"DIVISION_ST_AND_BRYANT_ST": [37.76934,-122.41074],
"DIVISION_ST_AND_RHODE_ISLAND_ST": [37.76976,-122.403152],
"DIVISION_ST_AND_TOWNSEND_ST": [37.769894,-122.403301],
"DELTA_ST_AND_TIOGA_AVE": [37.71729,-122.40773],
"DONAHUE_ST_AND_INNES_AVE": [37.729002,-122.369913],
"DAWNVIEW_WAY_AND_BURNETT_AVE": [37.747925,-122.44511],
"DAWNVIEW_WAY_AND_GLENVIEW_DR": [37.748033,-122.447539],
"DOUGLASS_ST_AND_24TH_ST": [37.75112,-122.43854],
"DOUGLASS_ST_AND_ALVARADO_ST": [37.75352,-122.43875],
"DRUMM_ST_AND_CALIFORNIA_ST": [37.79398,-122.39635],
"DUBOCE_AVE_AND_CHURCH_ST": [37.769472,-122.429408],
"DUBOCE_AVE_AND_CHURCH_ST": [37.769409,-122.4294],
"DUBOCE_AVE_AND_NOE_ST": [37.76911,-122.4337],
"DUNCAN_ST_AND_AMBER_DR": [37.7452,-122.44141],
"DUNCAN_ST_AND_CAMEO_WAY": [37.74519,-122.44304],
"DUNCAN_ST_AND_DIAMOND_HEIGHTS_BLVD": [37.74526,-122.44029],
"EARL_ST_AND_KIRKWOOD_AVE": [37.728779,-122.37313],
"EUCLID_AVE_AND_ARGUELLO_BLVD": [37.78389,-122.45885],
"EUCLID_AVE_AND_COLLINS_ST": [37.78462,-122.4499],
"EUCLID_AVE_AND_COLLINS_ST": [37.78437,-122.45027],
"EUCLID_AVE_AND_IRIS_AVE": [37.78421,-122.45174],
"EUCLID_AVE_AND_IRIS_AVE": [37.78402,-122.45195],
"EUCLID_AVE_AND_JORDAN_AVE": [37.78399,-122.45666],
"EUCLID_AVE_AND_JORDAN_AVE": [37.78386,-122.45696],
"EUCLID_AVE_AND_MASONIC_AVE": [37.78499,-122.44827],
"EUCLID_AVE_AND_PRESIDIO_AVE": [37.78538,-122.44672],
"EUCLID_AVE_AND_PRESIDIO_AVE": [37.78524,-122.44664],
"EUCLID_AVE_AND_PARKER_AVE": [37.78412,-122.45449],
"EUCLID_AVE_AND_PARKER_AVE": [37.78396,-122.45475],
"EUCLID_AVE_AND_SPRUCE_ST": [37.78411,-122.45351],
"EUCLID_AVE_AND_SPRUCE_ST": [37.78396,-122.45374],
"EDDY_ST_AND_BUCHANAN_ST": [37.781919,-122.428946],
"EDDY_ST_AND_BUCHANAN_ST": [37.781767,-122.429141],
"EDDY_ST_AND_DIVISADERO_ST": [37.780546,-122.438759],
"EDDY_ST_AND_FILLMORE_ST": [37.7815,-122.432236],
"EDDY_ST_AND_FILLMORE_ST": [37.781348,-122.432431],
"EDDY_ST_AND_GOUGH_ST": [37.782516,-122.42427],
"EDDY_ST_AND_GOUGH_ST": [37.7824,-122.424201],
"EDDY_ST_AND_HYDE_ST": [37.783478,-122.415718],
"EDDY_ST_AND_JONES_ST": [37.783887,-122.412428],
"EDDY_ST_AND_LARKIN_ST": [37.783353,-122.41769],
"EDDY_ST_AND_LARKIN_ST": [37.783273,-122.417357],
"EDDY_ST_AND_LEAVENWORTH_ST": [37.783682,-122.414079],
"EDDY_ST_AND_LAGUNA_ST": [37.782133,-122.427296],
"EDDY_ST_AND_LAGUNA_ST": [37.782017,-122.427227],
"EDDY_ST_AND_MASON_ST": [37.78427,-122.409402],
"EDDY_ST_AND_PIERCE_ST": [37.781081,-122.435515],
"EDDY_ST_AND_PIERCE_ST": [37.780929,-122.435709],
"EDDY_ST_AND_POLK_ST": [37.783184,-122.419042],
"EDDY_ST_AND_POLK_ST": [37.783059,-122.419019],
"EDDY_ST_AND_SCOTT_ST": [37.780876,-122.437165],
"EDDY_ST_AND_SCOTT_ST": [37.780724,-122.43736],
"EDDY_ST_AND_TAYLOR_ST": [37.784101,-122.410789],
"EDDY_ST_AND_VAN_NESS_AVE": [37.782988,-122.420613],
"EDDY_ST_AND_VAN_NESS_AVE": [37.782863,-122.42059],
"ELLIS_ST_AND_JONES_ST": [37.78488,-122.41315],
"ELLIS_ST_AND_LEAVENWORTH_ST": [37.78471,-122.41427],
"ELLIS_ST_AND_TAYLOR_ST": [37.78509,-122.41145],
"THE_EMBARCADERO_AND_BAY_ST": [37.806945,-122.406278],
"THE_EMBARCADERO_AND_BAY_ST": [37.806629,-122.40603],
"THE_EMBARCADERO_AND_BROADWAY": [37.799552,-122.397869],
"THE_EMBARCADERO_AND_BROADWAY": [37.798901,-122.397434],
"THE_EMBARCADERO_AND_BRANNAN_ST": [37.784359,-122.388138],
"THE_EMBARCADERO_AND_CHESTNUT_ST": [37.80519,-122.40377],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.791079,-122.390104],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.790481,-122.389692],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.790749,-122.389841],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.790561,-122.389898],
"THE_EMBARCADERO/FERRY_BUILDING": [37.795105,-122.393861],
"THE_EMBARCADERO_AND_GREENWICH_ST": [37.803263,-122.401113],
"THE_EMBARCADERO_AND_GREENWICH_ST": [37.80296,-122.401029],
"THE_EMBARCADERO_AND_GREEN_ST": [37.801264,-122.399369],
"THE_EMBARCADERO_AND_GREEN_ST": [37.800605,-122.39892],
"THE_EMBARCADERO_AND_HOWARD_ST": [37.792686,-122.391146],
"THE_EMBARCADERO_AND_HOWARD_ST": [37.792159,-122.391066],
"THE_EMBARCADERO_AND_MISSION_ST": [37.79381,-122.39278],
"THE_EMBARCADERO_AND_MISSION_ST": [37.793775,-122.392315],
"THE_EMBARCADERO_AND_MARKET_ST": [37.795,-122.39445],
"THE_EMBARCADERO/PIER_1": [37.79721,-122.39557],
"THE_EMBARCADERO/PIER_5": [37.79784,-122.39616],
"THE_EMBARCADERO/PIER_5": [37.79781,-122.39662],
"THE_EMBARCADERO_AND_SANSOME_ST": [37.805022,-122.403314],
"THE_EMBARCADERO_AND_STOCKTON_ST": [37.808351,-122.410287],
"THE_EMBARCADERO_AND_TOWNSEND_ST": [37.7836,-122.38832],
"THE_EMBARCADERO_AND_WASHINGTON_ST": [37.797085,-122.39567],
"THE_EMBARCADERO_AND_WASHINGTON_ST": [37.796685,-122.395591],
"THE_EMBARCADERO_AND_WASHINGTON_ST": [37.796355,-122.395181],
"EUREKA_ST_AND_18TH_ST": [37.760631,-122.438188],
"EUREKA_ST_AND_19TH_ST": [37.759034,-122.438039],
"EUREKA_ST_AND_20TH_ST": [37.75741,-122.437879],
"EUREKA_ST_AND_21ST_ST": [37.755973,-122.437902],
"EUREKA_ST_AND_21ST_ST": [37.755813,-122.43773],
"EUREKA_ST_AND_22ND_ST": [37.754367,-122.437742],
"EUREKA_ST_AND_22ND_ST": [37.754215,-122.43757],
"EUREKA_ST_AND_23RD_ST": [37.75279,-122.43759],
"EUREKA_ST_AND_MARKET_ST": [37.761594,-122.43828],
"EUCALYPTUS_DR_AND_19TH_AVE": [37.731157,-122.474744],
"EUCALYPTUS_DR_AND_19TH_AVE": [37.731041,-122.474538],
"EUCALYPTUS_DR_AND_JUNIPERO_SERRA_BLVD": [37.730988,-122.472442],
"EVANS_AVE_AND_3RD_ST": [37.742628,-122.387862],
"EVANS_AVE_AND_CESAR_CHAVEZ_ST": [37.749066,-122.396886],
"EVANS_AVE_AND_CESAR_CHAVEZ_ST": [37.74903,-122.397069],
"EVANS_AVE_AND_KEITH_ST": [37.73877,-122.380797],
"EVANS_AVE_AND_KEITH_ST": [37.738761,-122.381084],
"EVANS_AVE_AND_MIDDLE_POINT_RD": [37.737672,-122.379252],
"EVANS_AVE_AND_MENDELL_ST": [37.740699,-122.384507],
"EVANS_AVE_AND_NEWHALL_ST": [37.741949,-122.386408],
"EVANS_AVE_AND_NAPOLEON_ST": [37.747263,-122.395879],
"EVANS_AVE_AND_NAPOLEON_ST": [37.747343,-122.396257],
"EVANS_AVE_AND_NEWHALL_ST": [37.740003,-122.382973],
"EVANS_AVE_AND_PHELPS_ST": [37.742994,-122.388309],
"EVANS_AVE_AND_PHELPS_ST": [37.742977,-122.388595],
"EVANS_AVE_AND_QUINT_ST": [37.744245,-122.390531],
"EVANS_AVE_AND_SELBY_ST": [37.745968,-122.39384],
"EVANS_AVE/US_POST_OFFICE": [37.73986,-122.38264],
"EVANS_AVE/OPPOSITE_US_POST_OFFICE": [37.739717,-122.382813],
"909_ELLSWORTH_ST": [37.73284,-122.41679],
"945_ELLSWORTH_ST": [37.73281,-122.41776],
"989_ELLSWORTH_ST": [37.73262,-122.41893],
"ELLSWORTH_ST_AND_CRESCENT_AVE": [37.73471,-122.41491],
"EXCELSIOR_AVE_AND_MADRID_ST": [37.72475,-122.43059],
"EXCELSIOR_AVE_AND_MISSION_ST": [37.726162,-122.433577],
"EXCELSIOR_AVE_AND_NAPLES_ST": [37.72399,-122.42899],
"EXCELSIOR_AVE_AND_PARIS_ST": [37.72552,-122.43219],
"50_THOMAS_MELLON_DR": [37.709831,-122.392893],
"EXECUTIVE_PARK_BLVD_AND_BLANKEN_AVE": [37.71088,-122.39476],
"FOREST_HILL_STATION": [37.74809,-122.45904],
"FAIRFAX_AVE_AND_KEITH_ST": [37.73817,-122.38179],
"FARNUM_ST_AND_MOFFITT_ST": [37.738333,-122.434067],
"FELL_ST_AND_GOUGH_ST": [37.77597,-122.42302],
"FELTON_ST_AND_AMHERST_ST": [37.72702,-122.41634],
"FELTON_ST_AND_AMHERST_ST": [37.72688,-122.41653],
"FELTON_ST_AND_CAMBRIDGE_ST": [37.7264,-122.41874],
"FELTON_ST_AND_CAMBRIDGE_ST": [37.72637,-122.41851],
"FELTON_ST_AND_HARVARD_ST": [37.72597,-122.42028],
"FELTON_ST_AND_HARVARD_ST": [37.72586,-122.42046],
"FELTON_ST_AND_MADISON_ST": [37.725598,-122.422043],
"FELTON_ST_AND_MADISON_ST": [37.72543,-122.42211],
"FELTON_ST_AND_PERU_AVE": [37.7252,-122.42324],
"FELTON_ST_AND_UNIVERSITY_ST": [37.7274,-122.41457],
"FIELD_RD/VISITOR_CENTER": [37.83048,-122.524411],
"FIELD_RD_AND_BUNKER_RD": [37.831337,-122.523264],
"FIELD_RD/NIKE_SITE": [37.82906,-122.52767],
"FIELD_RD/YOUTH_HOSTEL": [37.83166,-122.52345],
"FILLMORE_ST_AND_BAY_ST": [37.802585,-122.43668],
"FILLMORE_ST_AND_BROADWAY": [37.794158,-122.434842],
"FILLMORE_ST_AND_BROADWAY": [37.793805,-122.434878],
"FILLMORE_ST_AND_BEACH_ST": [37.804423,-122.437127],
"FILLMORE_ST_AND_BEACH_ST": [37.804447,-122.436958],
"FILLMORE_ST_AND_CHESTNUT_ST": [37.801091,-122.436229],
"FILLMORE_ST_AND_CHESTNUT_ST": [37.800891,-122.436469],
"FILLMORE_ST_AND_CERVANTES_BLVD": [37.802817,-122.436806],
"FILLMORE_ST_AND_EDDY_ST": [37.781733,-122.432329],
"FILLMORE_ST_AND_EDDY_ST": [37.781523,-122.432401],
"FILLMORE_ST_AND_GOLDEN_GATE_AVE": [37.779859,-122.431955],
"FILLMORE_ST_AND_GEARY_BLVD": [37.784733,-122.432921],
"FILLMORE_ST_AND_GEARY_BLVD": [37.783984,-122.43291],
"FILLMORE_ST_AND_GROVE_ST": [37.776998,-122.431369],
"FILLMORE_ST_AND_GROVE_ST": [37.776859,-122.431472],
"FILLMORE_ST_AND_HAIGHT_ST": [37.772199,-122.430537],
"FILLMORE_ST_AND_HAIGHT_ST": [37.772033,-122.430347],
"FILLMORE_ST_AND_HAYES_ST": [37.776106,-122.431197],
"FILLMORE_ST_AND_HAYES_ST": [37.775598,-122.431207],
"FILLMORE_ST_AND_JACKSON_ST": [37.792761,-122.434556],
"FILLMORE_ST_AND_JACKSON_ST": [37.792386,-122.434607],
"FILLMORE_ST_AND_JEFFERSON_ST": [37.805421,-122.437389],
"FILLMORE_ST_AND_LOMBARD_ST": [37.799707,-122.435952],
"FILLMORE_ST_AND_LOMBARD_ST": [37.799595,-122.436051],
"FILLMORE_ST_AND_MCALLISTER_ST": [37.77854,-122.431687],
"FILLMORE_ST_AND_MCALLISTER_ST": [37.778343,-122.431762],
"FILLMORE_ST_AND_NORTH_POINT_ST": [37.803547,-122.436791],
"FILLMORE_ST_AND_OAK_ST": [37.774268,-122.430825],
"FILLMORE_ST_AND_OAK_ST": [37.773759,-122.430866],
"FILLMORE_ST_AND_O'FARRELL_ST": [37.783193,-122.432627],
"FILLMORE_ST_AND_O'FARRELL_ST": [37.783019,-122.432699],
"FILLMORE_ST_AND_PINE_ST": [37.788049,-122.433565],
"FILLMORE_ST_AND_PINE_ST": [37.787717,-122.433655],
"FILLMORE_ST_AND_SACRAMENTO_ST": [37.789925,-122.4341],
"FILLMORE_ST_AND_SACRAMENTO_ST": [37.789744,-122.433947],
"FILLMORE_ST_AND_SACRAMENTO_ST": [37.789577,-122.43404],
"FILLMORE_ST_AND_SUTTER_ST": [37.786051,-122.433244],
"FILLMORE_ST_AND_SUTTER_ST": [37.785814,-122.433268],
"FILLMORE_ST_AND_TURK_ST": [37.780204,-122.432138],
"FILLMORE_ST_AND_UNION_ST": [37.797391,-122.435489],
"FITZGERALD_AVE_AND_HAWES_ST": [37.719921,-122.389587],
"FITZGERALD_AVE_AND_INGALLS_ST": [37.720966,-122.391453],
"FITZGERALD_AVE_AND_JENNINGS_ST": [37.722028,-122.39332],
"FITZGERALD_AVE_AND_KEITH_ST": [37.722895,-122.394842],
"FOERSTER_ST_AND_FLOOD_AVE": [37.729795,-122.448765],
"FOERSTER_ST_AND_JUDSON_AVE": [37.728492,-122.448753],
"FOERSTER_ST_AND_MANGELS_AVE": [37.73315,-122.448948],
"FOERSTER_ST_AND_MANGELS_AVE": [37.732989,-122.448788],
"FOERSTER_ST_AND_MONTEREY_BLVD": [37.731401,-122.448776],
"FOERSTER_ST_AND_TERESITA_BLVD": [37.734194,-122.448799],
"FOLSOM_ST_AND_1ST_ST": [37.787423,-122.394188],
"FOLSOM_ST_AND_2ND_ST": [37.785746,-122.396528],
"FOLSOM_ST_AND_3RD_ST": [37.783989,-122.398753],
"FOLSOM_ST_AND_4TH_ST": [37.782045,-122.401104],
"FOLSOM_ST_AND_5TH_ST": [37.780386,-122.403099],
"FOLSOM_ST_AND_6TH_ST": [37.778629,-122.405324],
"FOLSOM_ST_AND_7TH_ST": [37.776641,-122.407847],
"FOLSOM_ST_AND_8TH_ST": [37.775115,-122.409773],
"FOLSOM_ST_AND_9TH_ST": [37.773894,-122.411321],
"FOLSOM_ST_AND_11TH_ST": [37.771905,-122.413958],
"FOLSOM_ST_AND_11TH_ST": [37.771833,-122.41413],
"FOLSOM_ST_AND_14TH_ST": [37.768461,-122.415667],
"FOLSOM_ST_AND_14TH_ST": [37.768461,-122.41553],
"FOLSOM_ST_AND_16TH_ST": [37.76557,-122.415245],
"FOLSOM_ST_AND_16TH_ST": [37.765231,-122.415417],
"FOLSOM_ST_AND_17TH_ST": [37.76383,-122.41528],
"FOLSOM_ST_AND_18TH_ST": [37.762215,-122.414914],
"FOLSOM_ST_AND_18TH_ST": [37.761858,-122.415086],
"FOLSOM_ST_AND_20TH_ST": [37.759,-122.41478],
"FOLSOM_ST_AND_20TH_ST": [37.758815,-122.414606],
"FOLSOM_ST_AND_22ND_ST": [37.755951,-122.414332],
"FOLSOM_ST_AND_22ND_ST": [37.75546,-122.414481],
"FOLSOM_ST_AND_24TH_ST": [37.752757,-122.414024],
"FOLSOM_ST_AND_24TH_ST": [37.752596,-122.414208],
"FOLSOM_ST_AND_25TH_ST": [37.750999,-122.414048],
"FOLSOM_ST_AND_25TH_ST": [37.750829,-122.413842],
"FOLSOM_ST_AND_26TH_ST": [37.749063,-122.413854],
"FOLSOM_ST_AND_CESAR_CHAVEZ_ST": [37.74848,-122.41379],
"FOLSOM_ST_AND_CESAR_CHAVEZ_ST": [37.74811,-122.41359],
"FOLSOM_ST_AND_BESSIE_ST": [37.74687,-122.41362],
"FOLSOM_ST_AND_CORTLAND_AVE": [37.73888,-122.4133],
"FOLSOM_ST_AND_CORTLAND_AVE": [37.7388,-122.41337],
"FOLSOM_ST_AND_CRESCENT_AVE": [37.73494,-122.41365],
"FOLSOM_ST_AND_CRESCENT_AVE": [37.73483,-122.41372],
"FOLSOM_ST_AND_MAIN_ST": [37.789269,-122.391859],
"FOLSOM_ST_AND_OGDEN_ST": [37.73605,-122.41352],
"FOLSOM_ST_AND_OGDEN_ST": [37.73579,-122.41364],
"FOLSOM_ST_AND_PRECITA_AVE": [37.7471,-122.41349],
"FOLSOM_ST_AND_STONEMAN_ST": [37.74532,-122.41336],
"FOLSOM_ST_AND_STONEMAN_ST": [37.74521,-122.41345],
"FOLSOM_ST_AND_TOMPKINS_ST": [37.73718,-122.41344],
"FOLSOM_ST_AND_TOMPKINS_ST": [37.73716,-122.41352],
"FONT_BLVD_AND_ARBALLO_DR": [37.72176,-122.482151],
"FONT_BLVD_AND_ARBALLO_DR": [37.72184,-122.48254],
"FONT_BLVD_AND_CHUMASERO_DR": [37.715213,-122.473169],
"FONT_BLVD_AND_CAMBON_DR": [37.715899,-122.474292],
"FONT_BLVD_AND_CAMBON_DR": [37.715899,-122.474578],
"FONT_BLVD_AND_GONZALEZ_DR": [37.716782,-122.475758],
"FONT_BLVD_AND_JUAN_BAUTISTA_CIR": [37.717701,-122.477076],
"FONT_BLVD_AND_SERRANO_DR": [37.719601,-122.479607],
"FONT_BLVD_AND_SERRANO_DR": [37.71963,-122.47998],
"FONT_BLVD_AND_TAPIA_DR": [37.72068,-122.480902],
"FOUNTAIN_ST_AND_24TH_ST": [37.75075,-122.44166],
"FREDERICK_ST_AND_ARGUELLO_BLVD": [37.766047,-122.457635],
"FREDERICK_ST_AND_ASHBURY_ST": [37.767261,-122.446691],
"FREDERICK_ST_AND_ASHBURY_ST": [37.767145,-122.446462],
"FREDERICK_ST_AND_CLAYTON_ST": [37.7671,-122.447917],
"FREDERICK_ST_AND_STANYAN_ST": [37.766413,-122.453257],
"FREDERICK_ST_AND_WILLARD_ST": [37.766208,-122.454908],
"FREDERICK_ST_AND_WILLARD_ST": [37.766092,-122.454701],
"FREMONT_ST_AND_FOLSOM_ST": [37.788217,-122.393763],
"FREMONT_ST_AND_HOWARD_ST": [37.78919,-122.39497],
"FREMONT_ST_AND_MISSION_ST": [37.789948,-122.395929],
"FREMONT_ST_AND_MISSION_ST": [37.789877,-122.395871],
"FREMONT_ST_AND_MARKET_ST": [37.791645,-122.398151],
"DON_CHEE_WAY/STEUART_ST": [37.794052,-122.393449],
"DON_CHEE_WAY/STEUART_ST": [37.793918,-122.393438],
"FORT_CRONKHITE_PARKING_LOT": [37.83238,-122.53867],
"MARINA_BLVD_AND_LAGUNA_ST": [37.805118,-122.432185],
"FULTON_ST_AND_4TH_AVE": [37.773952,-122.461659],
"FULTON_ST_AND_4TH_AVE": [37.77384,-122.46125],
"FULTON_ST_AND_6TH_AVE": [37.773639,-122.463848],
"FULTON_ST_AND_6TH_AVE": [37.773532,-122.463837],
"FULTON_ST_AND_8TH_AVE": [37.77347,-122.466049],
"FULTON_ST_AND_8TH_AVE": [37.773318,-122.465739],
"FULTON_ST_AND_10TH_AVE": [37.77335,-122.46839],
"FULTON_ST_AND_10TH_AVE": [37.77325,-122.46761],
"FULTON_ST_AND_12TH_AVE": [37.77326,-122.47053],
"FULTON_ST_AND_12TH_AVE": [37.77318,-122.46982],
"FULTON_ST_AND_16TH_AVE": [37.77305,-122.47492],
"FULTON_ST_AND_16TH_AVE": [37.77295,-122.47419],
"FULTON_ST_AND_18TH_AVE": [37.772959,-122.476776],
"FULTON_ST_AND_18TH_AVE": [37.77283,-122.47683],
"FULTON_ST_AND_20TH_AVE": [37.77286,-122.47917],
"FULTON_ST_AND_20TH_AVE": [37.77275,-122.47846],
"FULTON_ST_AND_22ND_AVE": [37.77276,-122.48134],
"FULTON_ST_AND_22ND_AVE": [37.77266,-122.48061],
"FULTON_ST_AND_25TH_AVE": [37.772591,-122.484306],
"FULTON_ST_AND_25TH_AVE": [37.772547,-122.4841],
"FULTON_ST_AND_28TH_AVE": [37.77251,-122.48726],
"FULTON_ST_AND_28TH_AVE": [37.77235,-122.48717],
"FULTON_ST_AND_30TH_AVE": [37.7724,-122.48941],
"FULTON_ST_AND_30TH_AVE": [37.77224,-122.48919],
"GEARY_BLVD_AND_MASONIC_AVE": [37.782152,-122.447286],
"GEARY_BLVD_AND_PARK_PRESIDIO_BLVD": [37.780687,-122.472423],
"GEARY_BLVD_AND_PARK_PRESIDIO_BLVD": [37.780526,-122.472676],
"GEARY_BLVD_AND_POWELL_ST": [37.787401,-122.408391],
"GEARY_BLVD_AND_PRESIDIO_AVE": [37.782608,-122.446152],
"GEARY_BLVD_AND_PRESIDIO_AVE": [37.782384,-122.445865],
"GEARY_BLVD_AND_SCOTT_ST": [37.783847,-122.437761],
"GEARY_BLVD_AND_SCOTT_ST": [37.783624,-122.437669],
"GEARY_BLVD_AND_SPRUCE_ST": [37.781849,-122.453075],
"GEARY_BLVD_AND_SPRUCE_ST": [37.781599,-122.453258],
"GEARY_BLVD_AND_STANYAN_ST": [37.78126,-122.456434],
"GEARY_BLVD_AND_ST_JOSEPH'S_AVE": [37.782795,-122.442541],
"GEARY_BLVD_AND_STOCKTON_ST": [37.787642,-122.406488],
"GEARY_BLVD_AND_TAYLOR_ST": [37.786983,-122.411681],
"GEARY_BLVD_AND_VAN_NESS_AVE": [37.785843,-122.420635],
"GEARY_BLVD_AND_WEBSTER_ST": [37.784641,-122.431021],
"GEARY_BLVD_AND_WEBSTER_ST": [37.784489,-122.431353],
"CONCOURSE_DR/ACADEMY_OF_SCIENCES": [37.770436,-122.466151],
"TEA_GARDEN_DR/DEYOUNG_MUSEUM": [37.770534,-122.468925],
"GOLDEN_GATE_BRIDGE/PARKING_LOT": [37.807561,-122.475024],
"GOLDEN_GATE_BRIDGE/PARKING_LOT": [37.807463,-122.474897],
"GOLDEN_GATE_BR_TUNNEL/MERCHANT_RD": [37.80608,-122.475585],
"GOLDEN_GATE_BR_TUNNEL/MERCHANT_RD": [37.806668,-122.475872],
"GOLDEN_GATE_BRIDGE/TOLL_PLAZA": [37.806571,-122.475046],
"GOLDEN_GATE_BRIDGE/TOLL_PLAZA": [37.807257,-122.475367],
"GREAT_HWY/NEAR_BEACH_CHALET": [37.767879,-122.510284],
"GREAT_HWY/NEAR_BEACH_CHALET": [37.76737,-122.510456],
"LOWER_GREAT_HWY_AND_RIVERA_ST": [37.74544,-122.50755],
"GREAT_HWY_AND_SLOAT_BLVD": [37.735482,-122.506821],
"GILMAN_AVE_AND_3RD_ST": [37.722458,-122.395415],
"GILMAN_AVE_AND_GRIFFITH_ST": [37.718234,-122.388272],
"GILMAN_AVE_AND_INGALLS_ST": [37.72035,-122.391729],
"GILMAN_AVE_AND_JENNINGS_ST": [37.721413,-122.393595],
"SAN_JOSE_AVE/GLEN_PARK_STATION": [37.732525,-122.433416],
"SAN_JOSE_AVE/GLEN_PARK_STATION": [37.732401,-122.433855],
"GONZALEZ_DR_AND_CARDENAS_AVE": [37.719102,-122.475633],
"GONZALEZ_DR_AND_FONT_BLVD": [37.716693,-122.475907],
"GONZALEZ_DR_AND_JOSEPHA_AVE": [37.715979,-122.477167],
"GENNESSEE_ST_AND_FLOOD_AVE": [37.729955,-122.451205],
"GENNESSEE_ST_AND_MONTEREY_BLVD": [37.731419,-122.451216],
"1650_GENEVA_AVE": [37.71187,-122.42819],
"1650_GENEVA_AVE": [37.71174,-122.42829],
"1701_GENEVA_AVE": [37.711109,-122.426766],
"1721_GENEVA_AVE": [37.71108,-122.42627],
"1750_GENEVA_AVE": [37.71072,-122.42576],
"GENEVA_AVE/BALBOA_PARK_BART": [37.720008,-122.446999],
"GENEVA_AVE/BALBOA_PARK_BART": [37.719861,-122.447136],
"GENEVA_AVE/BALBOA_PARK_BART": [37.720801,-122.446738],
"GENEVA_AVE/BALBOA_PARK_BART_STATION": [37.720702,-122.446761],
"GENEVA_AVE/BALBOA_PARK_BART": [37.720756,-122.446806],
"GENEVA_AVE_AND_BROOKDALE_AVE": [37.71004,-122.42434],
"GENEVA_AVE_AND_BROOKDALE_AVE": [37.70982,-122.42443],
"GENEVA_AVE_AND_CASTELO_ST": [37.7079,-122.41823],
"GENEVA_AVE_AND_CASTELO_ST": [37.7077,-122.41841],
"GENEVA_AVE_AND_CAYUGA_AVE": [37.718927,-122.443554],
"GENEVA_AVE_AND_CAYUGA_AVE": [37.718722,-122.443554],
"GENEVA_AVE_AND_GENEVA_AVE": [37.72312,-122.45118],
"GENEVA_AVE_AND_CIELITO_DR_E": [37.70898,-122.42215],
"GENEVA_AVE_AND_CIELITO_DR": [37.708984,-122.422129],
"GENEVA_AVE_AND_DELANO_AVE": [37.720069,-122.44526],
"KISKA_RD_AND_REARDON_RD": [37.73004,-122.37711],
"KEARNY_ST_AND_BUSH_ST": [37.791004,-122.403976],
"KEARNY_ST_AND_CALIFORNIA_ST": [37.792878,-122.404364],
"KEARNY_ST_AND_CLAY_ST": [37.794699,-122.404741],
"KEARNY_ST_AND_GEARY_BLVD": [37.788051,-122.403461],
"KEARNY_ST_AND_JACKSON_ST": [37.796126,-122.405027],
"KEARNY_ST_AND_NORTH_POINT_ST": [37.807182,-122.407211],
"KEARNY_ST_AND_PACIFIC_AVE": [37.797331,-122.405267],
"KEARNY_ST_AND_SACRAMENTO_ST": [37.79377,-122.40455],
"KEARNY_ST_AND_SUTTER_ST": [37.789746,-122.403724],
"KIRKWOOD_AVE_AND_DORMITORY_RD": [37.72988,-122.37527],
"1100_LAKE_MERCED_BLVD": [37.70913,-122.48498],
"1100_LAKE_MERCED_BLVD": [37.709312,-122.485294],
"LAKE_MERCED_AND_BROTHERHOOD_WAY": [37.714567,-122.485148],
"LAKE_MERCED_BLVD_AND_BROTHERHOOD_WAY": [37.71487,-122.485354],
"LAKE_MERCED_BLVD_AND_BROTHERHOOD_WAY": [37.714772,-122.485114],
"LAKE_MERCED_BLVD_AND_FONT_BLVD": [37.72423,-122.48489],
"LAKE_MERCED_BLVD_AND_HIGUERA_AVE": [37.718698,-122.485001],
"LAKE_MERCED_BLVD_AND_HIGUERA_AVE": [37.718422,-122.485207],
"LAKE_MERCED_BLVD_AND_LAKE_MERCED_HILLS_BLVD": [37.71153,-122.48527],
"LAKE_MERCED_BLVD_AND_LAKE_MERCED_HILLS_BLVD": [37.711203,-122.485513],
"LAKE_MERCED_AND_MIDDLEFIELD_DR": [37.729628,-122.486404],
"LAKE_MERCED_AND_MIDDLEFIELD_DR": [37.729441,-122.48629],
"LAKE_MERCED_BLVD/SFSU": [37.72606,-122.48434],
"LA_PLAYA_ST_AND_BALBOA_ST": [37.775008,-122.510244],
"LA_PLAYA_ST_AND_CABRILLO_ST": [37.773214,-122.509991],
"LA_PLAYA_ST_AND_CABRILLO_ST": [37.773214,-122.51006],
"LA_PLAYA_ST_AND_FULTON_ST": [37.77169,-122.50984],
"LARKIN_ST_AND_BEACH_ST": [37.806348,-122.422083],
"LARKIN_ST_AND_EDDY_ST": [37.783228,-122.417415],
"LARKIN_ST_AND_GOLDEN_GATE_AVE": [37.781693,-122.417106],
"LARKIN_ST_AND_GROVE_ST": [37.778901,-122.416545],
"LARKIN_ST_AND_MCALLISTER_ST": [37.78076,-122.41696],
"LARKIN_ST_AND_MCALLISTER_ST": [37.780569,-122.416865],
"LARKIN_ST_AND_O'FARRELL_ST": [37.785084,-122.417792],
"LAWTON_ST_AND_7TH_AVE": [37.758605,-122.464086],
"LAWTON_ST_AND_7TH_AVE": [37.758471,-122.463879],
"LAWTON_ST_AND_9TH_AVE": [37.758524,-122.465804],
"LAWTON_ST_AND_9TH_AVE": [37.75839,-122.46605],
"LAWTON_ST_AND_11TH_AVE": [37.7584,-122.46793],
"LAWTON_ST_AND_11TH_AVE": [37.75824,-122.46812],
"LAWTON_ST_AND_FUNSTON_AVE": [37.7583,-122.47008],
"LAWTON_ST_AND_FUNSTON_AVE": [37.7582,-122.47003],
"LAWTON_ST_AND_LOMITA_AVE": [37.75913,-122.47227],
"LAWTON_ST_AND_LOMITA_AVE": [37.75916,-122.47269],
"LEAVENWORTH_ST_AND_BUSH_ST": [37.78922,-122.41529],
"LEAVENWORTH_ST_AND_CALIFORNIA_ST": [37.79109,-122.41567],
"LEAVENWORTH_ST_AND_CLAY_ST": [37.79295,-122.41604],
"LEAVENWORTH_ST_AND_GEARY_BLVD": [37.78643,-122.4147],
"LEAVENWORTH_ST_AND_JACKSON_ST": [37.79465,-122.41638],
"LEAVENWORTH_ST_AND_O'FARRELL_ST": [37.7855,-122.41453],
"LEAVENWORTH_ST_AND_PINE_ST": [37.79015,-122.41548],
"LEAVENWORTH_ST_AND_POST_ST": [37.78736,-122.41488],
"LEAVENWORTH_ST_AND_SACRAMENTO_ST": [37.79206,-122.41586],
"LEAVENWORTH_ST_AND_SUTTER_ST": [37.788322,-122.415097],
"LEAVENWORTH_ST_AND_WASHINGTON_ST": [37.79382,-122.41622],
"LEGION_OF_HONOR": [37.785015,-122.499592],
"LEGION_OF_HONOR": [37.78498,-122.49969],
"LETTERMAN_HOSPITAL": [37.798177,-122.450072],
"LAGUNA_HONDA_BLVD_AND_BALCETA_AVE": [37.74537,-122.45709],
"LAGUNA_HONDA_BLVD_AND_BALCETA_AVE": [37.74529,-122.45718],
"LAGUNA_HONDA_BLVD_AND_CLARENDON_AVE": [37.751119,-122.461346],
"GENEVA_AVE_AND_DELANO_AVE": [37.720283,-122.445363],
"GENEVA_AVE_AND_ESQUINA_DR": [37.70866,-122.42176],
"GENEVA_AVE_AND_HOWTH_ST": [37.722121,-122.449979],
"GENEVA_AVE_AND_HOWTH_ST": [37.721978,-122.45007],
"GENEVA_AVE_AND_MADRID_ST": [37.714768,-122.437587],
"GENEVA_AVE_AND_MADRID_ST": [37.715143,-122.438034],
"GENEVA_AVE_AND_MISSION_ST": [37.716589,-122.441069],
"GENEVA_AVE_AND_MISSION_ST": [37.716473,-122.440874],
"GENEVA_AVE_AND_MISSION_ST": [37.716509,-122.441172],
"GENEVA_AVE_AND_MUNICH_ST": [37.712948,-122.43303],
"GENEVA_AVE_AND_MOSCOW_ST": [37.713332,-122.433957],
"GENEVA_AVE_AND_NAPLES_ST": [37.714251,-122.436042],
"GENEVA_AVE_AND_NAPLES_ST": [37.714028,-122.435961],
"GENEVA_AVE_AND_PARIS_ST": [37.715714,-122.439305],
"GENEVA_AVE_AND_PARIS_ST": [37.715679,-122.439614],
"GENEVA_AVE_AND_PRAGUE_ST": [37.712832,-122.431805],
"GENEVA_AVE_AND_RIO_VERDE_ST": [37.706939,-122.415534],
"GENEVA_AVE_AND_SAN_JOSE_AVE": [37.720961,-122.446978],
"GENEVA_AVE_AND_SAN_JOSE_AVE": [37.720729,-122.446692],
"GENEVA_AVE_AND_SANTOS_ST": [37.708368,-122.419954],
"GENEVA_AVE_AND_SANTOS_ST": [37.708484,-122.420354],
"GENEVA_AVE_AND_SANTOS_ST": [37.708207,-122.420022],
"GENEVA_AVE_AND_SANA_JOSE_AVE": [37.720567,-122.446606],
"GENEVA_AVE_AND_SAN_JOSE_AVE": [37.720565,-122.446608],
"GLENVIEW_DR_AND_PORTOLA_DR": [37.746667,-122.447768],
"GOUGH_ST_AND_SACRAMENTO_ST": [37.791041,-122.425771],
"GRAFTON_AVE_AND_ASHTON_AVE": [37.72005,-122.46213],
"GRAFTON_AVE_AND_BRIGHTON_AVE": [37.72007,-122.45498],
"GRAFTON_AVE_AND_CAPITOL_AVE": [37.719953,-122.45929],
"GRAFTON_AVE_AND_FAXON_AVE": [37.72007,-122.46012],
"GRAFTON_AVE_AND_GRANADA_AVE": [37.719962,-122.457251],
"GRAFTON_AVE_AND_HAROLD_AVE": [37.72008,-122.453],
"GRAFTON_AVE_AND_JULES_AVE": [37.719952,-122.461329],
"GRAFTON_AVE_AND_LEE_ST": [37.71999,-122.45421],
"GRAFTON_AVE_AND_MIRAMAR_AVE": [37.72006,-122.45806],
"GRAFTON_AVE_AND_PLYMOUTH_AVE": [37.719962,-122.456232],
"GARCES_DR_AND_BUCARELI_DR": [37.715978,-122.481473],
"GARCES_DR_AND_GONZALEZ_DR": [37.715845,-122.478323],
"GARCES_DR_AND_GRIJALVA_DR": [37.715006,-122.480098],
"GREEN_ST_AND_STEINER_ST": [37.79599,-122.4368],
"GROVE_ST_AND_GOUGH_ST": [37.777748,-122.423306],
"GROVE_ST_AND_LAGUNA_ST": [37.777382,-122.426324],
"GROVE_ST_AND_OCTAVIA_ST": [37.77756,-122.42495],
"GROVE_ST_AND_VAN_NESS_AVE": [37.778188,-122.419743],
"GRAND_VIEW_AVE_AND_21ST_ST": [37.75504,-122.44043],
"GRAND_VIEW_AVE_AND_22ND_ST": [37.75405,-122.44115],
"GRAND_VIEW_AVE_AND_23RD_ST": [37.75249,-122.44257],
"GRAND_VIEW_AVE_AND_23RD_ST": [37.7523,-122.44246],
"GRAND_VIEW_AVE_AND_24TH_ST": [37.75084,-122.44282],
"GRAND_VIEW_AVE_AND_24TH_ST": [37.7507,-122.44274],
"GRAND_VIEW_AVE_AND_25TH_ST": [37.74926,-122.44261],
"GRAND_VIEW_AVE_AND_25TH_ST": [37.74907,-122.44253],
"GRAND_VIEW_AVE_AND_CLIPPER_ST": [37.74852,-122.44251],
"GRAND_VIEW_AVE_AND_CLIPPER_ST": [37.748229,-122.442635],
"GATEVIEW_AVE_AND_BAYSIDE_DR": [37.829848,-122.375254],
"GATEVIEW_AVE_AND_MASON_CT": [37.828181,-122.377217],
"GATEVIEW_AVE_AND_NORTH_POINT_ST": [37.82982,-122.373477],
"HAHN_ST_AND_SUNNYDALE_AVE": [37.71201,-122.4159],
"HAHN_ST_AND_SUNNYDALE_AVE": [37.712025,-122.416047],
"HAHN_ST_AND_VISITACION_AVE": [37.713399,-122.415222],
"HAIGHT_ST_AND_BAKER_ST": [37.770928,-122.440261],
"HAIGHT_ST_AND_BUCHANAN_ST": [37.772612,-122.427058],
"HAIGHT_ST_AND_BUCHANAN_ST": [37.772434,-122.427321],
"HAIGHT_ST_AND_BUENA_VISTA_EAST_AVE": [37.770749,-122.440548],
"HAIGHT_ST_AND_BUENA_VISTA_WEST_AVE": [37.770437,-122.442954],
"HAIGHT_ST_AND_CENTRAL_AVE": [37.770508,-122.44355],
"HAIGHT_ST_AND_CLAYTON_ST": [37.769893,-122.448467],
"HAIGHT_ST_AND_CLAYTON_ST": [37.769714,-122.448662],
"HAIGHT_ST_AND_COLE_ST": [37.769598,-122.450782],
"HAIGHT_ST_AND_COLE_ST": [37.769438,-122.450794],
"HAIGHT_ST_AND_DIVISADERO_ST": [37.771293,-122.437373],
"HAIGHT_ST_AND_DIVISADERO_ST": [37.771231,-122.436743],
"HAIGHT_ST_AND_FILLMORE_ST": [37.77214,-122.43076],
"HAIGHT_ST_AND_FILLMORE_ST": [37.772095,-122.430347],
"HAIGHT_ST_AND_GOUGH_ST": [37.773183,-122.422553],
"HAIGHT_ST_AND_LAGUNA_ST": [37.772764,-122.425843],
"HAIGHT_ST_AND_MASONIC_AVE": [37.77021,-122.44535],
"HAIGHT_ST_AND_MASONIC_AVE": [37.770232,-122.445476],
"HAIGHT_ST_AND_MASONIC_AVE": [37.770196,-122.445292],
"HAIGHT_ST_AND_OCTAVIA_ST": [37.772969,-122.424192],
"HAIGHT_ST_AND_PIERCE_ST": [37.771775,-122.433637],
"HAIGHT_ST_AND_PIERCE_ST": [37.771605,-122.433854],
"HAIGHT_ST_AND_STANYAN_ST": [37.769331,-122.452845],
"HAIGHT_ST_AND_STANYAN_ST": [37.76917,-122.453075],
"HAMPSHIRE_ST_AND_24TH_ST": [37.752826,-122.407218],
"HARRISON_ST_AND_1ST_ST": [37.786182,-122.392928],
"HARRISON_ST_AND_2ND_ST": [37.784193,-122.395451],
"HARRISON_ST_AND_3RD_ST": [37.782436,-122.397676],
"HARRISON_ST_AND_4TH_ST": [37.780671,-122.399913],
"HARRISON_ST_AND_5TH_ST": [37.778914,-122.402137],
"HARRISON_ST_AND_6TH_ST": [37.777148,-122.404362],
"HARRISON_ST_AND_7TH_ST": [37.775498,-122.406438],
"HARRISON_ST_AND_8TH_ST": [37.773866,-122.408513],
"HARRISON_ST_AND_9TH_ST": [37.772403,-122.410371],
"HARRISON_ST_AND_THE_EMBARCADERO": [37.789454,-122.388776],
"HARRISON_ST_AND_MAIN_ST": [37.78801,-122.390611],
"HAWES_ST_AND_GILMAN_AVE": [37.719198,-122.390012],
"HAYES_ST_AND_ASHBURY_ST": [37.7738,-122.447567],
"HAYES_ST_AND_ASHBURY_ST": [37.773737,-122.447314],
"HAYES_ST_AND_BAKER_ST": [37.774573,-122.441501],
"HAYES_ST_AND_BAKER_ST": [37.774509,-122.441259],
"HAYES_ST_AND_BRODERICK_ST": [37.774783,-122.439837],
"HAYES_ST_AND_BRODERICK_ST": [37.77472,-122.439597],
"HAYES_ST_AND_BUCHANAN_ST": [37.776261,-122.428274],
"HAYES_ST_AND_BUCHANAN_ST": [37.776244,-122.427555],
"HAYES_ST_AND_CENTRAL_AVE": [37.774195,-122.444298],
"HAYES_ST_AND_CENTRAL_AVE": [37.77409,-122.444515],
"HAYES_ST_AND_CLAYTON_ST": [37.773605,-122.449166],
"HAYES_ST_AND_CLAYTON_ST": [37.773417,-122.449464],
"HAYES_ST_AND_COLE_ST": [37.773374,-122.450853],
"HAYES_ST_AND_COLE_ST": [37.773251,-122.451098],
"HAYES_ST_AND_DIVISADERO_ST": [37.775005,-122.437945],
"HAYES_ST_AND_DIVISADERO_ST": [37.774978,-122.437728],
"HAYES_ST_AND_FILLMORE_ST": [37.775838,-122.431561],
"HAYES_ST_AND_FILLMORE_ST": [37.775804,-122.430834],
"HAYES_ST_AND_FRANKLIN_ST": [37.777099,-122.421667],
"HAYES_ST_AND_GOUGH_ST": [37.776893,-122.423326],
"HAYES_ST_AND_LARKIN_ST": [37.777709,-122.416852],
"HAYES_ST_AND_LAGUNA_ST": [37.77653,-122.426146],
"HAYES_ST_AND_LYON_ST": [37.774427,-122.442634],
"HAYES_ST_AND_LYON_ST": [37.77429,-122.442862],
"HAYES_ST_AND_MASONIC_AVE": [37.773953,-122.446221],
"HAYES_ST_AND_MASONIC_AVE": [37.773926,-122.446003],
"HAYES_ST_AND_PIERCE_ST": [37.775472,-122.434443],
"HAYES_ST_AND_PIERCE_ST": [37.775413,-122.434177],
"HAYES_ST_AND_SCOTT_ST": [37.775211,-122.436458],
"HAYES_ST_AND_SCOTT_ST": [37.775146,-122.436253],
"HAYES_ST_AND_SHRADER_ST": [37.77317,-122.452502],
"HAYES_ST_AND_SHRADER_ST": [37.773042,-122.452756],
"HAYES_ST_AND_STANYAN_ST": [37.77296,-122.454148],
"HAYES_ST_AND_STANYAN_ST": [37.772898,-122.453881],
"HAYES_ST_AND_STEINER_ST": [37.775627,-122.433203],
"HAYES_ST_AND_STEINER_ST": [37.775627,-122.432476],
"HAYES_ST_AND_VAN_NESS_AVE": [37.777286,-122.42019],
"HAYES_ST_AND_WEBSTER_ST": [37.776056,-122.429879],
"HAYES_ST_AND_WEBSTER_ST": [37.776035,-122.42919],
"HERBST_RD_AND_SKYLINE_BLVD": [37.731604,-122.499212],
"HERMANN_ST_AND_FILLMORE_ST": [37.770307,-122.429929],
"HERMANN_ST_AND_FILLMORE_ST": [37.770248,-122.429701],
"220_HALLECK_ST": [37.80173,-122.45472],
"HALLECK_ST/ARMY_HEADQUARTERS": [37.801862,-122.45451],
"HALLECK_ST_AND_LINCOLN_BLVD": [37.801077,-122.454899],
"HALLECK_ST_AND_MASON_ST": [37.803763,-122.454349],
"HALLECK_ST_AND_VALLEJO_ST": [37.80369,-122.45453],
"HILLCREST_ST_AND_MACALLA_ST": [37.810505,-122.363371],
"HILLCREST_ST_AND_MACALLA_ST": [37.81038,-122.36339],
"HOLYOKE_ST_AND_BACON_ST": [37.72628,-122.40845],
"HOLYOKE_ST_AND_BACON_ST": [37.72614,-122.4085],
"HOLYOKE_ST_AND_WOOLSEY_ST": [37.72402,-122.40763],
"HOLYOKE_ST_AND_WAYLAND_ST": [37.72522,-122.40812],
"HOLYOKE_ST_AND_WAYLAND_ST": [37.72507,-122.40798],
"HOFFMAN_AVE_AND_22ND_ST": [37.75401,-122.44089],
"HOFFMAN_AVE_AND_23RD_ST": [37.75241,-122.44074],
"HOFFMAN_AVE_AND_24TH_ST": [37.75103,-122.440561],
"HOLLOWAY_AVE_AND_BEVERLY_ST": [37.72161,-122.471797],
"HOLLOWAY_AVE_AND_DENSLOWE_DR": [37.72133,-122.47433],
"HOLLOWAY_AVE_AND_JUNIPERO_SERRA_BLVD": [37.721592,-122.472954],
"HOLLOWAY_AVE_AND_JUNIPERO_SERRA_BLVD": [37.721485,-122.472713],
"HOWTH_ST_AND_GENEVA_AVE": [37.72193,-122.45028],
"HOWTH_ST_AND_MT_VERNON_AVE": [37.71978,-122.45164],
"HOWTH_ST_AND_NIAGRA_AVE": [37.72063,-122.4511],
"HUDSON_AVE_AND_3RD_ST": [37.740336,-122.388724],
"HUDSON_AVE_AND_ARDATH_CT": [37.73469,-122.38305],
"HUDSON_AVE_AND_CASHMERE_ST": [37.73596,-122.38353],
"HUDSON_AVE_AND_INGALLS_ST": [37.732497,-122.37991],
"HUDSON_AVE_AND_INGALLS_ST": [37.73239,-122.379692],
"HUDSON_AVE_AND_KEITH_ST": [37.7377,-122.38412],
"HUDSON_AVE_AND_KEITH_ST": [37.73759,-122.38416],
"HUDSON_AVE_AND_MENDELL_ST": [37.73896,-122.38628],
"HUDSON_AVE_AND_MENDELL_ST": [37.739,-122.38654],
"HUDSON_AVE_AND_WHITNEY_YOUNG_CIR": [37.733319,-122.381845],
"HUDSON_AVE_AND_WHITNEY_YOUNG_CIR": [37.733355,-122.38212],
"HOWARD_ST_AND_2ND_ST": [37.7866,-122.39861],
"HOWARD_ST_AND_3RD_ST": [37.78484,-122.40083],
"HOWARD_ST_AND_THE_EMBARCADERO": [37.792338,-122.391101],
"NOT_A_PUBLIC_STOP_-_USE_HOWARD/SPEAR": [37.792418,-122.391227],
"HOWARD_ST_AND_MAIN_ST": [37.790394,-122.393544],
"HOWARD_ST_AND_SPEAR_ST": [37.791401,-122.392534],
"HOWARD_ST_AND_SPEAR_ST": [37.79117,-122.39256],
"HYDE_ST_AND_BAY_ST": [37.804795,-122.4201],
"HYDE_ST_AND_BAY_ST": [37.804777,-122.420261],
"HYDE_ST_AND_BROADWAY": [37.796496,-122.418578],
"HYDE_ST_AND_BROADWAY": [37.796345,-122.418395],
"HYDE_ST_AND_BEACH_ST": [37.806686,-122.420615],
"HYDE_ST_AND_BEACH_ST": [37.806642,-122.420535],
"HYDE_ST_AND_CALIFORNIA_ST": [37.79111,-122.41747],
"HYDE_ST_AND_CHESTNUT_ST": [37.80284,-122.4197],
"HYDE_ST_AND_CHESTNUT_ST": [37.802912,-122.419883],
"HYDE_ST_AND_CLAY_ST": [37.79287,-122.41784],
"HYDE_ST_AND_FILBERT_ST": [37.800173,-122.419162],
"HYDE_ST_AND_FILBERT_ST": [37.800208,-122.419334],
"HYDE_ST_AND_FULTON_ST": [37.779364,-122.415135],
"HYDE_ST_AND_GREENWICH_ST": [37.801011,-122.419494],
"HYDE_ST_AND_GREENWICH_ST": [37.800993,-122.419322],
"HYDE_ST_AND_GREEN_ST": [37.798308,-122.418784],
"HYDE_ST_AND_GREEN_ST": [37.798343,-122.418956],
"HYDE_ST_AND_JACKSON_ST": [37.794542,-122.418189],
"HYDE_ST_AND_LOMBARD_ST": [37.801912,-122.419562],
"HYDE_ST_AND_LOMBARD_ST": [37.801859,-122.419665],
"HYDE_ST_AND_MCALLISTER_ST": [37.780783,-122.415421],
"HYDE_ST_AND_NORTH_POINT_ST": [37.805633,-122.420272],
"HYDE_ST_AND_NORTH_POINT_ST": [37.805705,-122.420455],
"HYDE_ST_AND_PACIFIC_AVE": [37.7954,-122.4182],
"HYDE_ST_AND_PACIFIC_AVE": [37.795354,-122.418361],
"HYDE_ST_AND_PINE_ST": [37.79017,-122.4173],
"HYDE_ST_AND_SACRAMENTO_ST": [37.79183,-122.41763],
"HYDE_ST_AND_BEACH_ST": [37.80703,-122.42121],
"HYDE_ST_AND_TURK_ST": [37.782648,-122.415799],
"HYDE_ST_AND_UNION_ST": [37.799236,-122.418979],
"HYDE_ST_AND_UNION_ST": [37.799182,-122.419139],
"HYDE_ST_AND_VALLEJO_ST": [37.79744,-122.41863],
"HYDE_ST_AND_VALLEJO_ST": [37.797406,-122.418773],
"INDUSTRIAL_ST_AND_BAY_SHORE_BLVD": [37.738148,-122.406539],
"INDUSTRIAL_ST_AND_BAY_SHORE_BLVD": [37.737943,-122.40678],
"INDUSTRIAL_ST_AND_ELMIRA_ST": [37.73879,-122.40373],
"INDUSTRIAL_ST_AND_PALOU_AVE": [37.73955,-122.40101],
"INDUSTRIAL_ST_AND_REVERE_AVE": [37.73913,-122.40305],
"INNES_AVE_AND_EARL_ST": [37.729878,-122.371871],
"INNES_AVE_AND_EARL_ST": [37.729869,-122.372134],
"INNES_AVE_AND_FITCH_ST": [37.730941,-122.37376],
"INNES_AVE_AND_FITCH_ST": [37.730932,-122.374035],
"INNES_AVE_AND_GRIFFITH_ST": [37.732004,-122.375614],
"INNES_AVE_AND_GRIFFITH_ST": [37.73199,-122.37588],
"INNES_AVE_AND_HUNTERS_POINT_BLVD": [37.732915,-122.377229],
"INNES_AVE_AND_HUNTERS_POINT_BLVD": [37.732709,-122.377172],
"INNES_AVE_AND_MIDDLE_POINT_RD_E": [37.73409,-122.37934],
"INGALLS_ST_AND_BEATRICE_LN": [37.73058,-122.38034],
"INGALLS_ST_AND_HARBOR_RD": [37.73347,-122.380023],
"INGALLS_ST_AND_HARBOR_RD": [37.7333,-122.37984],
"INGALLS_ST_AND_INNES_AVE": [37.73402,-122.37953],
"INGALLS_ST_AND_REVERE_AVE": [37.72837,-122.3846],
"INGALLS_ST_AND_THOMAS_AVE": [37.72735,-122.38563],
"INGALLS_ST_AND_THOMAS_AVE": [37.72711,-122.38572],
"INGALLS_ST_AND_VAN_DYKE_AVE": [37.726041,-122.386685],
"INGALLS_ST_AND_VAN_DYKE_AVE": [37.72611,-122.38677],
"INGERSON_AVE_AND_GRIFFITH_ST": [37.717012,-122.389212],
"INGERSON_AVE_AND_HAWES_ST": [37.718039,-122.390998],
"INNES_ST_AND_DONAHUE_ST": [37.729136,-122.370199],
"IRVING_ST_AND_2ND_AVE": [37.764441,-122.458643],
"IRVING_ST_AND_4TH_AVE": [37.764299,-122.460824],
"IRVING_ST_AND_4TH_AVE": [37.764226,-122.461061],
"IRVING_ST_AND_7TH_AVE": [37.764155,-122.464034],
"IRVING_ST_AND_7TH_AVE": [37.764092,-122.464282],
"IRVING_ST_AND_9TH_AVE": [37.764106,-122.466165],
"IRVING_ST_AND_ARGUELLO_BLVD": [37.764366,-122.458024],
"515_JOHN_MUIR_DR": [37.716241,-122.495342],
"515_JOHN_MUIR_DR": [37.71607,-122.49539],
"555_JOHN_MUIR_DR": [37.71653,-122.49655],
"555_JOHN_MUIR_DR": [37.71643,-122.4965],
"655_JOHN_MUIR_AVE": [37.717007,-122.49777],
"655_JOHN_MUIR_AVE": [37.71677,-122.49766],
"JOHN_MUIR_DR_AND_SKYLINE_BLVD": [37.718996,-122.500028],
"JOHN_MUIR_DR_AND_SKYLINE_BLVD": [37.718738,-122.499913],
"JUNIPERO_SERRA_BLVD_AND_19TH_AVE": [37.71775,-122.47238],
"JUNIPERO_SERRA_BLVD_AND_BROTHERHOOD_WAY": [37.71355,-122.47126],
"JUNIPERO_SERRA_BLVD/S.F._GOLF_CLUB": [37.710707,-122.471324],
"JUNIPERO_SERRA_BLVD_AND_FONT_BLVD": [37.71463,-122.47191],
"JUNIPERO_SERRA_BLVD_AND_GARFIELD_ST": [37.71957,-122.47226],
"JUNIPERO_SERRA_BLVD_AND_OCEAN_AVE": [37.731363,-122.471674],
"JUNIPERO_SERRA_BLVD_AND_OCEAN_AVE": [37.731238,-122.471858],
"JUNIPERO_SERRA_BLVD_AND_PALMETTO_AV": [37.71091,-122.47099],
"JUNIPERO_SERRA_BLVD_AND_SLOAT_BLVD": [37.734307,-122.471675],
"JACKSON_ST_AND_BAKER_ST": [37.791281,-122.444362],
"JACKSON_ST_AND_BAKER_ST": [37.791186,-122.444246],
"JACKSON_ST_AND_BUCHANAN_ST": [37.792965,-122.431202],
"JACKSON_ST_AND_DIVISADERO_ST": [37.791724,-122.440888],
"JACKSON_ST_AND_DIVISADERO_ST": [37.791565,-122.441307],
"JACKSON_ST_AND_FILLMORE_ST": [37.792529,-122.434676],
"JACKSON_ST_AND_FRANKLIN_ST": [37.793812,-122.424598],
"JACKSON_ST_AND_GOUGH_ST": [37.79358,-122.42621],
"JACKSON_ST_AND_HYDE_ST": [37.79464,-122.417994],
"JACKSON_ST_AND_HYDE_ST": [37.794605,-122.418293],
"JACKSON_ST_AND_JONES_ST": [37.795041,-122.414842],
"JACKSON_ST_AND_LARKIN_ST": [37.79441,-122.41963],
"JACKSON_ST_AND_LEAVENWORTH_ST": [37.794854,-122.416366],
"JACKSON_ST_AND_LAGUNA_ST": [37.79315,-122.4295],
"JACKSON_ST_AND_MASON_ST": [37.79545,-122.411712],
"JACKSON_ST_AND_OCTAVIA_ST": [37.79336,-122.42786],
"JACKSON_ST_AND_POLK_ST": [37.79419,-122.42129],
"JACKSON_ST_AND_PRESIDIO_AVE": [37.790902,-122.447365],
"JACKSON_ST_AND_SCOTT_ST": [37.791932,-122.43924],
"JACKSON_ST_AND_SCOTT_ST": [37.791772,-122.439612],
"JACKSON_ST_AND_STEINER_ST": [37.79235,-122.436109],
"JACKSON_ST_AND_STEINER_ST": [37.792201,-122.43632],
"JACKSON_ST_AND_TAYLOR_ST": [37.795255,-122.413202],
"JACKSON_ST_AND_VAN_NESS_AVE": [37.794044,-122.422959],
"JACKSON_ST_AND_VAN_NESS_AVE": [37.793954,-122.423154],
"JACKSON_ST_AND_WEBSTER_ST": [37.792716,-122.433025],
"JACKSON_ST_AND_WEBSTER_ST": [37.79266,-122.43339],
"JUAN_BAUTISTA_CIR_AND_BUCARELI_DR": [37.71796,-122.47874],
"JUAN_BAUTISTA_CIR_AND_FONT_BLVD": [37.718691,-122.478427],
"JUDSON_AVE_AND_GENNESSEE_ST": [37.728421,-122.451285],
"JUDSON_AVE_AND_GENNESSEE_ST": [37.728296,-122.451228],
"JEFFERSON_ST_AND_DIVISADERO_ST": [37.804557,-122.443892],
"JEFFERSON_ST_AND_POWELL_ST": [37.808594,-122.413357],
"JEFFERSON_ST_AND_TAYLOR_ST": [37.80832,-122.415514],
"JERROLD_AVE_AND_PHELPS_ST": [37.739846,-122.391416],
"JERROLD_AVE_AND_QUINT_ST": [37.7409,-122.392973],
"JERROLD_AVE_AND_QUINT_ST": [37.740694,-122.392916],
"JERROLD_AVE_AND_RANKIN_ST": [37.742087,-122.394931],
"JERROLD_AVE_AND_RANKIN_ST": [37.741704,-122.394691],
"JERROLD_AVE_AND_SELBY_ST": [37.743302,-122.396787],
"JERROLD_AVE_AND_SELBY_ST": [37.742775,-122.396936],
"JESSIE_ST_AND_5TH_ST": [37.782645,-122.406479],
"JONES_ST_AND_BEACH_ST": [37.807132,-122.417324],
"JONES_ST_AND_GEARY_BLVD": [37.78686,-122.41325],
"JONES_ST_AND_POST_ST": [37.78781,-122.41344],
"JONES_ST_AND_SUTTER_ST": [37.78869,-122.41361],
"JUNIPERO_SERRA_RAMP_AND_BROTHERHOOD_WAY": [37.71411,-122.47174],
"JUDAH_ST_AND_5TH_AVE": [37.762299,-122.462001],
"JUDAH_ST_AND_6TH_AVE": [37.762397,-122.462849],
"JUDAH_ST_AND_7TH_AVE": [37.762334,-122.46435],
"JUDAH_ST_AND_7TH_AVE": [37.762201,-122.464144],
"JUDAH_ST_AND_9TH_AVE": [37.762227,-122.466688],
"JUDAH_ST_AND_9TH_AVE": [37.762139,-122.466312],
"JUDAH_ST_AND_12TH_AVE": [37.762069,-122.469324],
"JUDAH_ST_AND_12TH_AVE": [37.761988,-122.469526],
"JUDAH_ST_AND_15TH_AVE": [37.761848,-122.472777],
"JUDAH_ST_AND_16TH_AVE": [37.761913,-122.473781],
"JUDAH_ST_AND_19TH_AVE": [37.761743,-122.476921],
"JUDAH_ST_AND_19TH_AVE": [37.761655,-122.477194],
"JUDAH_ST_AND_22ND_AVE": [37.761534,-122.479855],
"JUDAH_ST_AND_23RD_AVE": [37.761547,-122.481164],
"JUDAH_ST_AND_25TH_AVE": [37.761452,-122.4833],
"JUDAH_ST_AND_25TH_AVE": [37.761373,-122.48356],
"JUDAH_ST_AND_28TH_AVE": [37.76131,-122.48651],
"JUDAH_ST_AND_28TH_AVE": [37.761232,-122.486763],
"JUDAH_ST_AND_31ST_AVE": [37.761172,-122.489719],
"JUDAH_ST_AND_31ST_AVE": [37.761105,-122.4895],
"JUDAH_ST_AND_34TH_AVE": [37.761028,-122.49293],
"JUDAH_ST_AND_34TH_AVE": [37.760955,-122.493199],
"JUDAH_ST_AND_40TH_AVE": [37.760743,-122.499359],
"JUDAH_ST_AND_40TH_AVE": [37.760679,-122.499154],
"JUDAH_ST_AND_43RD_AVE": [37.760598,-122.502574],
"JUDAH_ST_AND_43RD_AVE": [37.760518,-122.502839],
"JUDAH_ST_AND_46TH_AVE": [37.760493,-122.505832],
"JUDAH_ST_AND_46TH_AVE": [37.760392,-122.506064],
"JUDAH_ST_AND_48TH_AVE": [37.760357,-122.508459],
"JUDAH_ST_AND_48TH_AVE": [37.760269,-122.508135],
"JUDAH_ST_AND_FUNSTON_AVE": [37.762075,-122.470329],
"JUDAH_ST_AND_FUNSTON_AVE": [37.76195,-122.470572],
"JUDAH/LA_PLAYA/OCEAN_BEACH": [37.760363,-122.509011],
"JUDAH/LA_PLAYA/OCEAN_BEACH": [37.76034,-122.509075],
"JUDAH/LA_PLAYA/OCEAN_BEACH": [37.760304,-122.508181],
"JUDAH_ST_AND_SUNSET_BLVD": [37.760917,-122.495668],
"JUDAH_ST_AND_SUNSET_BLVD": [37.760845,-122.495805],
"KANSAS_ST_AND_17TH_ST": [37.76482,-122.403617],
"KANSAS_ST_AND_23RD_ST": [37.75443,-122.402485],
"KANSAS_ST_AND_25TH_ST": [37.751887,-122.402223],
"KANSAS_ST_AND_26TH_ST": [37.750834,-122.402121],
"KANSAS_ST_AND_MARIPOSA_ST": [37.76356,-122.40346],
"KEITH_ST_AND_EVANS_AVE": [37.73862,-122.38101],
"KEITH_ST_AND_OAKDALE_AVE": [37.732581,-122.386634],
"KEITH_ST_AND_OAKDALE_AVE": [37.732367,-122.386611],
"KING_ST_AND_2ND_ST": [37.77972,-122.389872],
"KING_ST_AND_2ND_ST": [37.7796,-122.38955],
"KING_ST_AND_2ND_ST": [37.7798,-122.38994],
"KING_ST_AND_2ND_ST": [37.779621,-122.389824],
"KING_ST_AND_4TH_ST": [37.776323,-122.394036],
"KING_ST_AND_4TH_ST": [37.776269,-122.394173],
"KING_ST_AND_4TH_ST": [37.776269,-122.394082],
"KING_ST_AND_6TH_ST/NOT_A_PUBLIC_STOP": [37.773318,-122.397774],
"KISKA_RD_AND_INGALLS_ST": [37.73108,-122.37939],
"LAGUNA_HONDA_BLVD_AND_CLARENDON_AVE": [37.75095,-122.461048],
"LAGUNA_HONDA_BLVD_AND_DEWEY_BLVD": [37.747256,-122.459042],
"LAGUNA_HONDA_BLVD/OPP_FOREST_HILL": [37.748327,-122.458836],
"LAGUNA_HONDA_BLVD/FOREST_HILL_STA": [37.748175,-122.458951],
"LAGUNA_HONDA_BLVD/FOREST_HILL_STA": [37.748211,-122.458905],
"FOREST_HILL_STATION": [37.748175,-122.458951],
"LAGUNA_HONDA_BLVD_AND_IDORA_AVE": [37.743999,-122.456407],
"LAGUNA_HONDA_BLVD_AND_IDORA_AVE": [37.74415,-122.45663],
"HOSPITAL_ENTR_RD/LAGUNA_HONDA_BLVD": [37.74711,-122.45867],
"LAGUNA_HONDA_BLVD_AND_NORIEGA_STE": [37.7549,-122.46355],
"1798_LAGUNA_HONDA_BLVD": [37.754652,-122.463798],
"LAGUNA_HONDA_BLVD_AND_PORTOLA_DR": [37.74311,-122.45548],
"LAGUNA_HONDA_BLVD_AND_ULLOA_ST": [37.743473,-122.455776],
"LAGUNA_HONDA_BLVD_AND_VASQUEZ_AVE": [37.74602,-122.45816],
"LAGUNA_ST_AND_CHESTNUT_ST": [37.801513,-122.431418],
"LAGUNA_ST_AND_CHESTNUT_ST": [37.80135,-122.43123],
"LAGUNA_ST_AND_HAIGHT_ST": [37.772933,-122.425465],
"LAGUNA_ST_AND_HAYES_ST": [37.776752,-122.42627],
"LEGION_OF_HONOR_DR_AND_CLEMENT_ST": [37.781653,-122.494615],
"LINCOLN_BLVD_AND_ANZA_ST": [37.80177,-122.45656],
"LINCOLN_BLVD_AND_BOWLEY_ST": [37.788393,-122.482457],
"LINCOLN_BLVD_AND_COWLES_ST": [37.801789,-122.469059],
"LINCOLN_BLVD_AND_GRAHAM_ST": [37.80158,-122.45632],
"957_LINCOLN_BLVD": [37.806928,-122.472237],
"957_LINCOLN_BLVD": [37.806732,-122.472111],
"LINCOLN_BLVD_AND_HALLECK_ST": [37.80101,-122.45473],
"LINCOLN_BLVD_AND_PERSHING_DR": [37.792088,-122.480968],
"LINCOLN_BLVD_AND_PERSHING_DR": [37.792311,-122.480922],
"LINCOLN_BLVD_AND_STOREY_AVE": [37.801022,-122.469277],
"LOMBARD_ST_AND_DIVISADERO_ST": [37.798882,-122.442735],
"LOMBARD_ST_AND_DIVISADERO_ST": [37.799078,-122.442861],
"LOMBARD_ST_AND_FILLMORE_ST": [37.799711,-122.43613],
"LOMBARD_ST_AND_FILLMORE_ST": [37.799881,-122.435958],
"LOMBARD_ST_AND_GRANT_AVE": [37.8035,-122.40807],
"LOMBARD_ST_AND_GRANT_AVE": [37.803381,-122.408039],
"LOMBARD_ST_AND_KEARNY_ST": [37.8037,-122.40651],
"LOMBARD_ST_AND_KEARNY_ST": [37.803559,-122.406525],
"LOMBARD_ST_AND_LAGUNA_ST": [37.80057,-122.43101],
"LOMBARD_ST_AND_LAGUNA_ST": [37.80037,-122.43121],
"LOMBARD_ST_AND_LYON_ST": [37.798543,-122.44716],
"LOMBARD_ST_AND_LYON_ST": [37.798418,-122.447137],
"LOMBARD_ST_AND_PIERCE_ST": [37.799292,-122.439421],
"LOMBARD_ST_AND_PIERCE_ST": [37.799542,-122.439192],
"LOMBARD_ST_AND_STOCKTON_ST": [37.80328,-122.40963],
"LONDON_ST_AND_GENEVA_AVE": [37.71618,-122.4402],
"LA_SALLE_AVE_AND_INGALLS_ST": [37.73077,-122.3814],
"LA_SALLE_AVE_AND_NEWCOMB_AVE": [37.73298,-122.38479],
"LA_SALLE_AVE_AND_OSCEOLA_DR": [37.73137,-122.38172],
"LOUISBURG_ST_AND_GENEVA_AVE": [37.72163,-122.44935],
"LOUISBURG_ST_AND_NIAGRA_AVE": [37.72039,-122.45013],
"LETTERMAN_DR/TIDES_BLDG": [37.799382,-122.451849],
"LETTERMAN_DR_AND_LINCOLN_BLVD": [37.79922,-122.45172],
"LINCOLN_WAY_AND_3RD_AVE": [37.76612,-122.46014],
"LINCOLN_WAY_AND_5TH_AVE": [37.76618,-122.46246],
"LINCOLN_WAY_AND_5TH_AVE": [37.766047,-122.461887],
"LINCOLN_WAY_AND_7TH_AVE": [37.766091,-122.464603],
"LINCOLN_WAY_AND_7TH_AVE": [37.765957,-122.464007],
"LINCOLN_WAY_AND_9TH_AVE": [37.766001,-122.466746],
"LINCOLN_WAY_AND_9TH_AVE": [37.765859,-122.46623],
"LINCOLN_WAY_AND_11TH_AVE": [37.765903,-122.468889],
"LINCOLN_WAY_AND_11TH_AVE": [37.76575,-122.46871],
"LINCOLN_WAY_AND_15TH_AVE": [37.765715,-122.473221],
"LINCOLN_WAY_AND_15TH_AVE": [37.76556,-122.47305],
"LINCOLN_WAY_AND_17TH_AVE": [37.765616,-122.475421],
"LINCOLN_WAY_AND_17TH_AVE": [37.76546,-122.47524],
"LINCOLN_WAY_AND_19TH_AVE": [37.7655,-122.47774],
"LINCOLN_WAY_AND_19TH_AVE": [37.765526,-122.47761],
"LINCOLN_WAY_AND_21ST_AVE": [37.765428,-122.479696],
"LINCOLN_WAY_AND_21ST_AVE": [37.765285,-122.479489],
"LINCOLN_WAY_AND_23RD_AVE": [37.765329,-122.481839],
"LINCOLN_WAY_AND_23RD_AVE": [37.765195,-122.481632],
"LINCOLN_WAY_AND_25TH_AVE": [37.765221,-122.483993],
"LINCOLN_WAY_AND_25TH_AVE": [37.765105,-122.483363],
"LINCOLN_WAY_AND_27TH_AVE": [37.765131,-122.486136],
"LINCOLN_WAY_AND_27TH_AVE": [37.765016,-122.485506],
"LINCOLN_WAY_AND_29TH_AVE": [37.765032,-122.488267],
"LINCOLN_WAY_AND_30TH_AVE": [37.764881,-122.488714],
"LINCOLN_WAY_AND_31ST_AVE": [37.764943,-122.490422],
"LINCOLN_WAY_AND_33RD_AVE": [37.764844,-122.492565],
"LINCOLN_WAY_AND_33RD_AVE": [37.764728,-122.491934],
"LINCOLN_WAY_AND_35TH_AVE": [37.764754,-122.494708],
"LINCOLN_WAY_AND_47TH_AVE": [37.764186,-122.507405],
"LINCOLN_WAY_AND_ARGUELLO_BLVD": [37.765984,-122.457956],
"LINCOLN_WAY_AND_FUNSTON_AVE": [37.765813,-122.471032],
"LINCOLN_WAY_AND_FUNSTON_AVE": [37.76565,-122.47086],
"LINCOLN_WAY_AND_GREAT_HWY": [37.764131,-122.510052],
"LINCOLN_WAY_AND_LA_PLAYA_ST": [37.763926,-122.50957],
"LYELL_ST_AND_ALEMANY_BLVD": [37.730641,-122.431331],
"LYON_ST_AND_GREENWICH_ST": [37.797428,-122.447206],
"LAGUNA_HONDA_HOSPITAL/MAIN_HOSP": [37.74781,-122.45711],
"MAIN_ST_AND_HOWARD_ST": [37.790581,-122.393337],
"MAIN_ST_AND_HOWARD_ST": [37.791116,-122.393956],
"MAIN_ST_AND_MISSION_ST": [37.791982,-122.394964],
"MAIN_ST_AND_MARKET_ST": [37.79253,-122.39567],
"MANSELL_ST_AND_BRUSSELS_ST": [37.721096,-122.403067],
"MANSELL_ST_AND_BRUSSELS_ST": [37.720926,-122.403124],
"MANSELL_ST_AND_DARTMOUTH_ST": [37.719581,-122.408886],
"MANSELL_ST_AND_DARTMOUTH_ST": [37.719376,-122.409058],
"MANSELL_ST_AND_GOETTINGEN_ST": [37.720677,-122.404098],
"MANSELL_ST_AND_GOETTINGEN_ST": [37.720766,-122.404338],
"MANSELL_ST_AND_HAMILTON_ST": [37.720098,-122.406916],
"MANSELL_ST_AND_HAMILTON_ST": [37.719892,-122.407088],
"MANSELL_ST_AND_JOHN_F_SHELLEY_DR": [37.718119,-122.414464],
"MANSELL_ST_AND_JOHN_F_SHELLEY_DR": [37.718039,-122.414258],
"MANSELL_ST_AND_JOHN_F_SHELLEY_DR": [37.718897,-122.418804],
"MANSELL_ST_AND_JOHN_F_SHELLEY_DR": [37.718718,-122.418633],
"MANSELL_ST_AND_SAN_BRUNO_AVE": [37.721443,-122.401154],
"MANSELL_ST_AND_SAN_BRUNO_AVE": [37.721541,-122.401394],
"MANSELL_ST_AND_SOMERSET_ST": [37.720418,-122.405094],
"MANSELL_ST_AND_SOMERSET_ST": [37.720525,-122.405117],
"MANSELL_ST_AND_UNIVERSITY_ST": [37.718957,-122.411257],
"MANSELL_ST_AND_VISITACION_AVE": [37.71877,-122.41136],
"MASON_ST_AND_BROADWAY": [37.797208,-122.411825],
"MASON_ST_AND_BROADWAY": [37.797351,-122.412009],
"MASON_ST_AND_ELLIS_ST": [37.78507,-122.40951],
"MASON_ST_AND_FILBERT_ST": [37.800965,-122.41258],
"MASON_ST_AND_FILBERT_ST": [37.800902,-122.412729],
"MASON_ST_AND_GREENWICH_ST": [37.801929,-122.412775],
"MASON_ST_AND_GREENWICH_ST": [37.80183,-122.412924],
"MASON_ST_AND_GREEN_ST": [37.7991,-122.412203],
"MASON_ST_AND_GREEN_ST": [37.79902,-122.412352],
"MASON_ST_AND_JACKSON_ST": [37.795513,-122.41154],
"MASON_ST_AND_JACKSON_ST": [37.795602,-122.411666],
"MASON_ST_AND_PACIFIC_AVE": [37.7962,-122.411619],
"MASON_ST_AND_PACIFIC_AVE": [37.79612,-122.411769],
"MASON_ST_AND_UNION_ST": [37.800037,-122.412397],
"MASON_ST_AND_UNION_ST": [37.799974,-122.412546],
"MASON_ST_AND_VALLEJO_ST": [37.798199,-122.41202],
"MASON_ST_AND_VALLEJO_ST": [37.798243,-122.412192],
"MASON_ST_AND_WASHINGTON_ST": [37.794504,-122.411059],
"MASON_ST_(PRESIDIO)/BLDG_B639": [37.803048,-122.462238],
"MASON_ST_(PRESIDIO)/BLDG_B639": [37.802905,-122.462226],
"MASON_ST_(PRESIDIO)/BLDG_B650": [37.803592,-122.466595],
"MASON_ST_(PRESIDIO)/BLDG_B650": [37.803476,-122.466801],
"MASON_ST_(PRESIDIO)/PX": [37.803914,-122.456814],
"MASON_ST_(PRESIDIO)/PX": [37.803852,-122.456275],
"MASON_ST_(PRESIDIO)/PRESIDIO_BANK": [37.803807,-122.457995],
"MASON_ST_(PRESIDIO)/PRESIDIO_BANK": [37.803691,-122.457766],
"785_MCALLISTER_ST": [37.779384,-122.42521],
"808_MCALLISTER_ST": [37.77948,-122.42553],
"MCALLISTER_ST_AND_7TH_ST": [37.781077,-122.413083],
"MCALLISTER_ST_AND_BAKER_ST": [37.777397,-122.441659],
"MCALLISTER_ST_AND_BAKER_ST": [37.77731,-122.44185],
"MCALLISTER_ST_AND_BRODERICK_ST": [37.77764,-122.43991],
"MCALLISTER_ST_AND_BRODERICK_ST": [37.77752,-122.44016],
"MCALLISTER_ST_AND_CENTRAL_AVE": [37.77694,-122.44476],
"MCALLISTER_ST_AND_DIVISADERO_ST": [37.777825,-122.438289],
"MCALLISTER_ST_AND_DIVISADERO_ST": [37.77773,-122.43851],
"MCALLISTER_ST_AND_FILLMORE_ST": [37.77864,-122.43207],
"MCALLISTER_ST_AND_FILLMORE_ST": [37.778618,-122.431744],
"MCALLISTER_ST_AND_GOUGH_ST": [37.77969,-122.42386],
"MCALLISTER_ST_AND_GOUGH_ST": [37.77961,-122.42369],
"MCALLISTER_ST_AND_HYDE_ST": [37.78073,-122.41569],
"MCALLISTER_ST_AND_HYDE_ST": [37.78061,-122.41587],
"MCALLISTER_ST_AND_LARKIN_ST": [37.78051,-122.41741],
"MCALLISTER_ST_AND_LAGUNA_ST": [37.77933,-122.42671],
"MCALLISTER_ST_AND_LAGUNA_ST": [37.77919,-122.42695],
"MCALLISTER_ST_AND_PIERCE_ST": [37.778244,-122.435045],
"MCALLISTER_ST_AND_PIERCE_ST": [37.77815,-122.43519],
"MCALLISTER_ST_AND_POLK_ST": [37.78031,-122.41901],
"MCALLISTER_ST_AND_POLK_ST": [37.780168,-122.4187],
"MCALLISTER_ST_AND_VAN_NESS_AVE": [37.78009,-122.42071],
"MCALLISTER_ST_AND_VAN_NESS_AVE": [37.780052,-122.420178],
"MCALLISTER_ST_AND_WEBSTER_ST": [37.77885,-122.4305],
"MCALLISTER_ST_AND_WEBSTER_ST": [37.77886,-122.4296],
"MCDOWELL_AVE_AND_COWLES_ST": [37.80179,-122.467076],
"MCDOWELL_AVE_AND_COWLES_ST": [37.801602,-122.466927],
"MCDOWELL_AVE_AND_LINCOLN_BLVD": [37.799835,-122.467305],
"MERCHANT_ST_AND_LINCOLN_BLVD": [37.803956,-122.475882],
"MERCHANT_ST_AND_LINCOLN_BLVD": [37.80376,-122.476008],
"62_MACALLA_ST": [37.812,-122.36483],
"MACALLA_ST_AND_NIMITZ_DR": [37.812036,-122.369859],
"MACALLA_ST_AND_TREASURE_ISLAND_RD": [37.81324,-122.3709],
"MCCOPPIN_ST_AND_GOUGH_ST": [37.77177,-122.42079],
"METRO_POWELL_STATION/DOWNTOWN": [37.784199,-122.407695],
"BALBOA_PARK_BART/MEZZANINE_LEVEL": [37.721809,-122.447425],
"METRO_VAN_NESS_STATION": [37.775127,-122.419252],
"MONTEREY_BLVD_AND_ACADIA_ST": [37.731668,-122.437768],
"MONTEREY_BLVD_AND_ACADIA_ST": [37.7315,-122.43726],
"MONTEREY_BLVD_AND_BADEN_ST": [37.731668,-122.439635],
"MONTEREY_BLVD_AND_BADEN_ST": [37.731516,-122.439853],
"MONTEREY_BLVD_AND_CONGO_ST": [37.731659,-122.441915],
"MONTEREY_BLVD_AND_CONGO_ST": [37.731508,-122.442133],
"MONTEREY_BLVD_AND_DETROIT_ST": [37.731642,-122.444607],
"MONTEREY_BLVD_AND_DETROIT_ST": [37.731508,-122.443977],
"MONTEREY_BLVD_AND_EDNA_ST": [37.731633,-122.446474],
"MONTEREY_BLVD_AND_EDNA_ST": [37.731481,-122.446692],
"MONTEREY_BLVD_AND_EL_VERANO_WAY": [37.73008,-122.461502],
"MONTEREY_BLVD_AND_FAXON_AVE": [37.730695,-122.459085],
"MONTEREY_BLVD_AND_FOERSTER_ST": [37.731615,-122.449166],
"MONTEREY_BLVD_AND_FOERSTER_ST": [37.731481,-122.448536],
"MONTEREY_BLVD_AND_GENNESSEE_ST": [37.731472,-122.451239],
"MONTEREY_BLVD_AND_GENNESSEE_ST": [37.731615,-122.451445],
"MONTEREY_BLVD_AND_NORTHGATE_DR": [37.729972,-122.461857],
"MONTEREY_BLVD_AND_PLYMOUTH_AVE": [37.731115,-122.457322],
"MONTEREY_BLVD_AND_PLYMOUTH_AVE": [37.730874,-122.457654],
"MONTEREY_BLVD_AND_RIDGEWOOD_AVE": [37.731615,-122.453289],
"MONTEREY_BLVD_AND_RIDGEWOOD_AVE": [37.731472,-122.453083],
"MONTEREY_BLVD_AND_SAINT_ELMO_WAYE": [37.730553,-122.460426],
"MONTEREY_BLVD_AND_SAN_ALESO_AVE": [37.732283,-122.46455],
"MONTEREY_BLVD_AND_SAN_JACINTO_WAY": [37.732033,-122.463965],
"MONTEREY_BLVD_AND_VALDEZ_AVE": [37.731445,-122.455649],
"MONTEREY_BLVD_AND_VALDEZ_AVE": [37.731267,-122.455832],
"MT_VERNON_AVE_AND_HOWTH_ST": [37.71969,-122.45177],
"MT_VERNON_AVE_AND_LOUISBURG_ST": [37.71937,-122.45094],
"BALBOA_PARK_BART/MEZZANINE_LEVEL": [37.721202,-122.446176],
"BALBOA_PARK_BART/MEZZANINE_LEVEL": [37.720845,-122.446657],
"555_MYRA_WAY": [37.738182,-122.450712],
"555_MYRA_WAY": [37.7382,-122.450884],
"MYRA_WAY_AND_DALEWOOD_WAY": [37.736736,-122.453794],
"MYRA_WAY_AND_MOLIMO_DR": [37.737816,-122.451491],
"MYRA_WAY_AND_MOLIMO_DR": [37.737727,-122.451732],
"MYRA_WAY_AND_OMAR_WAY": [37.739244,-122.450357],
"MYRA_WAY_AND_OMAR_WAY": [37.739226,-122.450529],
"NORTH_POINT_ST_AND_DIVISADERO_ST": [37.80285,-122.44329],
"NORTH_POINT_ST_AND_HYDE_ST": [37.805803,-122.420226],
"NORTH_POINT_ST_AND_HYDE_ST": [37.805633,-122.420467],
"NORTH_POINT_ST_AND_JONES_ST": [37.806168,-122.417405],
"NORTH_POINT_ST_AND_JONES_ST": [37.806052,-122.417176],
"NORTH_POINT_ST_AND_KEARNY_ST": [37.80735,-122.4079],
"NORTH_POINT_ST_AND_KEARNY_ST": [37.807254,-122.407612],
"NORTH_POINT_ST_AND_LARKIN_ST": [37.80559,-122.42189],
"NORTH_POINT_ST_AND_LARKIN_ST": [37.805411,-122.422106],
"NORTH_POINT_ST_AND_MASON_ST": [37.80656,-122.41424],
"NORTH_POINT_ST_AND_MASON_ST": [37.806524,-122.41346],
"NORTH_POINT_ST_AND_POLK_ST": [37.805313,-122.423987],
"NORTH_POINT_ST_AND_POLK_ST": [37.805241,-122.423494],
"NORTH_POINT_ST_AND_STOCKTON_ST": [37.80704,-122.41038],
"NORTH_POINT_ST_AND_STOCKTON_ST": [37.80688,-122.410594],
"NORTH_POINT_ST_AND_VAN_NESS_AVE": [37.805063,-122.425237],
"NAPLES_ST_AND_AMAZON_AVE": [37.7155,-122.4352],
"NAPLES_ST_AND_ATHENS_ST": [37.712457,-122.437347],
"NAPLES_ST_AND_BRUNSWICK_ST": [37.711797,-122.437989],
"NAPLES_ST_AND_BRAZIL_AVE": [37.72251,-122.43002],
"NAPLES_ST_AND_CURTIS_ST": [37.711083,-122.438504],
"NAPLES_ST_AND_FRANCE_AVE": [37.71767,-122.43356],
"NAPLES_ST_AND_GENEVA_AVE": [37.71445,-122.43597],
"NAPLES_ST_AND_GENEVA_AVE": [37.714153,-122.436397],
"NAPLES_ST_AND_ITALY_AVE": [37.7161,-122.43476],
"NAPLES_ST_AND_ROLPH_ST": [37.713457,-122.436626],
"NAPLES_ST_AND_ROLPH_ST": [37.713484,-122.436786],
"NAPLES_ST_AND_RUSSIA_AVE": [37.7192,-122.43241],
"NAPLES_ST_AND_SEVILLE_ST": [37.711672,-122.437897],
"NEWCOMB_AVE_AND_KEITH_ST": [37.733152,-122.38598],
"NEWCOMB_AVE_AND_KEITH_ST": [37.733,-122.386049],
"NEWCOMB_AVE_AND_LA_SALLE_AVE": [37.733044,-122.384858],
"NEWCOMB_AVE_AND_LA_SALLE_AVE": [37.733196,-122.385052],
"NEWCOMB_AVE_AND_NEWHALL_ST": [37.736304,-122.391522],
"NEWHALL_ST_AND_OAKDALE_AVE": [37.735796,-122.392175],
"NEWHALL_ST_AND_PALOU_AVE": [37.735171,-122.392737],
"NORTHGATE_RD_AND_MACALLA_ST": [37.811692,-122.363782],
"NIAGRA_AVE_AND_ALEMANY_BLVD": [37.71689,-122.44329],
"NOE_ST_AND_24TH_ST": [37.75133,-122.43181],
"MCCULLOUGH_RD_AND_BUNKER_RD": [37.836443,-122.50214],
"MCCULLOUGH_RD_AND_BUNKER_RD": [37.83612,-122.50241],
"MCCULLOUGH_RD_AND_CONZELMAN_RD": [37.83388,-122.49402],
"MCCULLOUGH_RD_AND_CONZELMAN_RD": [37.83361,-122.49401],
"MIDDLE_POINT_RD_AND_INNES_AVE": [37.734174,-122.379541],
"MIDDLE_POINT_RD_AND_WEST_POINT_RD": [37.737011,-122.379321],
"MIDDLE_POINT_RD_AND_WEST_POINT_RD": [37.736521,-122.379505],
"MIDDLE_POINT_RD_AND_WEST_POINT_RD": [37.735164,-122.379323],
"MIDDLE_POINT_RD_AND_WEST_POINT_RD": [37.73502,-122.37947],
"MENDELL_ST_AND_CARGO_WAY": [37.7437,-122.38317],
"MENDELL_ST_AND_EVANS_AVE": [37.74055,-122.38513],
"MENDELL_ST_AND_NEWHALL_ST": [37.74254,-122.3837],
"MENDELL_ST_AND_NEWHALL_ST": [37.74253,-122.38393],
"MENDELL_ST/US_POST_OFFICE": [37.74106,-122.38444],
"MENDELL_ST/OPPOSITE_US_POST_OFFICE": [37.741056,-122.384679],
"V.A._HOSPITAL": [37.781827,-122.504106],
"V.A._HOSPITAL": [37.782139,-122.505528],
"126_MIRALOMA_DR": [37.737744,-122.461458],
"MIRALOMA_DR_AND_BENGAL_ALY": [37.737869,-122.461309],
"MIRALOMA_DR_AND_JUANITA_WAY": [37.739377,-122.460083],
"MIRALOMA_DR_AND_JUANITA_WAY": [37.739199,-122.460026],
"MIRALOMA_DR_AND_MARNE_AVE": [37.740082,-122.459224],
"MIRALOMA_DR_AND_MARNE_AVE": [37.740207,-122.45927],
"MIRALOMA_DR_AND_YERBA_BUENA_AVE": [37.735505,-122.460804],
"MISSOURI_ST_AND_19TH_ST": [37.76141,-122.39646],
"MISSOURI_ST_AND_20TH_ST": [37.76013,-122.39633],
"MISSOURI_ST_AND_SIERRA_ST": [37.758398,-122.395997],
"MISSOURI_ST_AND_SIERRA_ST": [37.75812,-122.39612],
"MISSOURI_ST_AND_TURNER_TER": [37.75727,-122.39575],
"MISSOURI_ST_AND_TURNER_TER": [37.75683,-122.3957],
"MISSOURI_ST_AND_WATCHMAN_WAY": [37.75551,-122.39574],
"MISSOURI_ST_AND_WATCHMAN_WAY": [37.75546,-122.3958],
"MISSION_ST_AND_1ST_ST": [37.78992,-122.39749],
"MISSION_ST_AND_2ND_ST": [37.78775,-122.40024],
"MISSION_ST_AND_2ND_ST": [37.78787,-122.39985],
"MISSION_ST_AND_3RD_ST": [37.78651,-122.40157],
"MISSION_ST_AND_3RD_ST": [37.78597,-122.40249],
"MISSION_ST_AND_4TH_ST": [37.78464,-122.40393],
"MISSION_ST_AND_4TH_ST": [37.78436,-122.40452],
"MISSION_ST_AND_5TH_ST": [37.782716,-122.406525],
"MISSION_ST_AND_5TH_ST": [37.782725,-122.40664],
"MISSION_ST_AND_6TH_ST": [37.78119,-122.40831],
"MISSION_ST_AND_6TH_ST": [37.78075,-122.4091],
"MISSION_ST_AND_7TH_ST": [37.77897,-122.41135],
"MISSION_ST_AND_8TH_ST": [37.77723,-122.41355],
"MISSION_ST_AND_8TH_ST": [37.7777,-122.41273],
"MISSION_ST_AND_9TH_ST": [37.77645,-122.41431],
"MISSION_ST_AND_9TH_ST": [37.77594,-122.41518],
"MISSION_ST_AND_11TH_ST": [37.774323,-122.41712],
"MISSION_ST_AND_11TH_ST": [37.774306,-122.417292],
"MISSION_ST_AND_13TH_ST": [37.77047,-122.41978],
"MISSION_ST_AND_14TH_ST": [37.76862,-122.41993],
"MISSION_ST_AND_14TH_ST": [37.7678,-122.42002],
"MISSION_ST_AND_15TH_ST": [37.76714,-122.41979],
"MISSION_ST_AND_15TH_ST": [37.7662,-122.41986],
"MISSION_ST_AND_16TH_ST": [37.765125,-122.419668],
"MISSION_ST_AND_16TH_ST": [37.765036,-122.419726],
"MISSION_ST_AND_18TH_ST": [37.762635,-122.419348],
"MISSION_ST_AND_18TH_ST": [37.761761,-122.419463],
"MISSION_ST_AND_19TH_ST": [37.76066,-122.41917],
"MISSION_ST_AND_19TH_ST": [37.7598,-122.41925],
"MISSION_ST_AND_20TH_ST": [37.75911,-122.41902],
"MISSION_ST_AND_20TH_ST": [37.75817,-122.41909],
"MISSION_ST_AND_21ST_ST": [37.75751,-122.41887],
"MISSION_ST_AND_21ST_ST": [37.75659,-122.41895],
"MISSION_ST_AND_22ND_ST": [37.75582,-122.41871],
"MISSION_ST_AND_22ND_ST": [37.75517,-122.4188],
"MISSION_ST_AND_23RD_ST": [37.75428,-122.41856],
"MISSION_ST_AND_23RD_ST": [37.75343,-122.41863],
"MISSION_ST_AND_24TH_ST": [37.752356,-122.418401],
"MISSION_ST_AND_24TH_ST": [37.751964,-122.418528],
"MISSION_ST_AND_26TH_ST": [37.74951,-122.4181],
"MISSION_ST_AND_26TH_ST": [37.74857,-122.41818],
"MISSION_ST_AND_29TH_ST": [37.74429,-122.42064],
"MISSION_ST_AND_29TH_ST": [37.74381,-122.42113],
"MISSION_ST_AND_30TH_ST": [37.742408,-122.421945],
"MISSION_ST_AND_30TH_ST": [37.742417,-122.421991],
"4080_MISSION_ST": [37.73217,-122.428],
"MISSION_ST_AND_ACTON_ST": [37.708808,-122.452578],
"MISSION_ST_AND_ALLISON_ST": [37.71448,-122.44264],
"MISSION_ST_AND_AMAZON_AVE": [37.71715,-122.4404],
"MISSION_ST_AND_APPLETON_AVE": [37.738867,-122.423871],
"MISSION_ST_AND_APPLETON_AVE": [37.73899,-122.42404],
"MISSION_ST_AND_BEALE_ST": [37.791144,-122.395916],
"MISSION_ST_AND_BOSWORTH_ST": [37.73334,-122.42682],
"MISSION_ST_AND_BOSWORTH_ST": [37.73334,-122.42683],
"MISSION_ST_AND_BRAZIL_AVE": [37.72454,-122.43481],
"MISSION_ST_AND_CORTLAND_AVE": [37.741052,-122.422759],
"MISSION_ST_AND_CORTLAND_AVE": [37.741079,-122.422874],
"MISSION_ST_AND_EVERGREEN_ST": [37.70741,-122.45653],
"MISSION_ST_AND_EXCELSIOR_AVE": [37.726355,-122.43351],
"MISSION_ST_AND_FAIR_AVE": [37.74592,-122.41959],
"MISSION_ST_AND_FLOURNOY_ST": [37.70682,-122.45906],
"MISSION_ST_AND_FOOTE_AVE": [37.71285,-122.44462],
"MISSION_ST_AND_FRANCIS_ST": [37.72635,-122.43365],
"MISSION_ST_AND_FREMONT_ST": [37.79015,-122.39695],
"MISSION_ST_AND_GENEVA_AVE": [37.716455,-122.441149],
"MISSION_ST_AND_GENEVA_AVE": [37.716642,-122.440782],
"MISSION_ST_AND_GOETHE_ST": [37.70736,-122.45708],
"MISSION_ST_AND_GUTTENBERG_ST": [37.71251,-122.44475],
"MISSION_ST_AND_HIGHLAND_AVE": [37.737448,-122.423963],
"MISSION_ST_AND_HIGHLAND_AVE": [37.73706,-122.4242],
"MISSION_ST_AND_ITALY_AVE": [37.71915,-122.439087],
"MISSION_ST_AND_ITALY_AVE": [37.71865,-122.439259],
"MISSION_ST_AND_LAWRENCE_AVE": [37.7095,-122.45087],
"MISSION_ST_AND_LOWELL_ST": [37.711468,-122.446291],
"MISSION_ST_AND_LOWELL_ST": [37.711432,-122.446486],
"MISSION_ST_AND_MAIN_ST": [37.791965,-122.39493],
"MISSION_ST_AND_MT_VERNON_AVE": [37.7147,-122.44265],
"MISSION_ST_AND_MURRAY_ST": [37.73404,-122.42592],
"MISSION_ST_AND_NORTON_ST": [37.72431,-122.43519],
"MISSION_ST_AND_OLIVER_ST": [37.70962,-122.45006],
"MISSION_ST_AND_ONONDAGA_AVE": [37.721282,-122.437483],
"MISSION_ST_AND_PERSIA_AVE": [37.72338,-122.43568],
"MISSION_ST_AND_PRECITA_AVE": [37.74711,-122.41882],
"MISSION_ST_AND_PRECITA_AVE": [37.74694,-122.4191],
"MISSION_ST_AND_RICHLAND_AVE": [37.73591,-122.42442],
"MISSION_ST_AND_RICHLAND_AVE": [37.73562,-122.4247],
"MISSION_ST_AND_RUSSIA_AVE": [37.721469,-122.437117],
"MISSION_ST_AND_RUTH_ST": [37.72281,-122.43633],
"MISSION_ST_AND_SAN_JOSE_AVE": [37.706113,-122.461166],
"MISSION_ST_AND_SAN_JOSE_AVE": [37.70636,-122.4599],
"MISSION_ST_AND_SICKLES_AVE": [37.70866,-122.45332],
"MISSION_ST_AND_SILVER_AVE": [37.728723,-122.43132],
"MISSION_ST_AND_SILVER_AVE": [37.728723,-122.431354],
"SOUTH_VAN_NESS_AVE_AND_MISSION_ST": [37.773324,-122.418599],
"MISSION_ST_AND_SPEAR_ST": [37.79239,-122.39435],
"MISSION_ST_AND_TRUMBULL_ST": [37.73066,-122.42927],
"MISSION_ST_AND_TRUMBULL_ST": [37.73045,-122.42971],
"MISSION_ST_AND_VALENCIA_ST": [37.74508,-122.4203],
"MISSION_ST_AND_WHITTIER_ST": [37.71048,-122.44834],
"MISSION_ST_AND_WHITTIER_ST": [37.71022,-122.44845],
"TUNNEL_ENTRY-NOT_A_STOP-USE_FOLSOM_STN": [37.792712,-122.391467],
"MUNICH_ST_AND_CORDOVA_AVE": [37.71094,-122.435435],
"MUNICH_ST_AND_GENEVA_AVE": [37.71293,-122.43295],
"MUNICH_ST_AND_NAPLES_ST": [37.711155,-122.438241],
"GALVEZ_AVE_AND_HORNE_AVE": [37.728795,-122.367027],
"33_MOFFITT_ST": [37.736834,-122.432189],
"MORAGA_AVE_AND_GRAHAM_ST": [37.79794,-122.45923],
"MORAGA_AVE_AND_GRAHAM_ST": [37.79773,-122.45897],
"MORAGA_AVE_AND_MONTGOMERY_ST": [37.79843,-122.46024],
"MARKET_ST_AND_1ST_ST": [37.790896,-122.399138],
"MARKET_ST_AND_2ND_ST": [37.789353,-122.401306],
"MARKET_ST_AND_3RD_ST": [37.787525,-122.403519],
"MARKET_ST_AND_3RD_ST": [37.787667,-122.403359],
"MARKET_ST_AND_4TH_ST": [37.786597,-122.404586],
"MARKET_ST_AND_4TH_ST": [37.785705,-122.405847],
"MARKET_ST_AND_4TH_ST": [37.78484,-122.406834],
"MARKET_ST_AND_5TH_ST": [37.783886,-122.408141],
"MARKET_ST_AND_5TH_ST": [37.783395,-122.408657],
"MARKET_ST_AND_6TH_ST": [37.782102,-122.4104],
"MARKET_ST_AND_6TH_ST": [37.78129,-122.411329],
"MARKET_ST_AND_7TH_ST": [37.77981,-122.413186],
"MARKET_ST_AND_7TH_ST": [37.780363,-122.412613],
"MARKET_ST_AND_8TH_ST": [37.778606,-122.414826],
"MARKET_ST_AND_9TH_ST": [37.77741,-122.41634],
"MARKET_ST_AND_15TH_ST": [37.76569,-122.4314],
"MARKET_ST_AND_16TH_ST": [37.76391,-122.43366],
"MARKET_ST_AND_5TH_ST": [37.784082,-122.407992],
"MARKET_ST_AND_7TH_ST": [37.780568,-122.412441],
"MARKET_ST_AND_BATTERY_ST": [37.79111,-122.399069],
"MARKET_ST_AND_BEALE_ST": [37.792572,-122.397016],
"MARKET_ST_AND_BUCHANAN_ST": [37.769786,-122.426149],
"MARKET_ST_AND_CHURCH_ST": [37.767348,-122.429042],
"MARKET_ST_AND_CHURCH_ST": [37.767661,-122.428824],
"MARKET_ST_AND_CHURCH_ST": [37.767589,-122.428801],
"MARKET_ST_AND_CLAYTON_ST": [37.758409,-122.444055],
"MARKET_ST_AND_CASTRO_ST": [37.762299,-122.435781],
"MARKET_ST_AND_CASTRO_ST": [37.76246,-122.435449],
"MARKET_ST_AND_CASTRO_ST": [37.76246,-122.43539],
"MARKET_ST_AND_17TH_ST": [37.76262,-122.43538],
"MARKET_ST_AND_DOLORES_ST": [37.76888,-122.427103],
"MARKET_ST_AND_DRUMM_ST": [37.793473,-122.396178],
"MARKET_ST_AND_DRUMM_ST": [37.793494,-122.396127],
"MARKET_ST_AND_FRONT_ST": [37.79192,-122.39815],
"MARKET_ST_AND_GOUGH_ST": [37.773269,-122.421768],
"MARKET_ST_AND_GOUGH_ST": [37.772875,-122.421991],
"MARKET_ST_AND_GRANT_AVE": [37.78639,-122.40516],
"MARKET_ST_AND_GUERRERO_ST": [37.77057,-122.424971],
"MARKET_ST_AND_HYDE_ST": [37.779105,-122.414379],
"MARKET_ST_AND_KEARNY_ST": [37.78764,-122.40342],
"MARKET_ST_AND_KEARNY_ST": [37.78773,-122.40337],
"MARKET_ST_AND_LARKIN_ST": [37.777589,-122.416213],
"MARKET_ST_AND_LARKIN_ST": [37.777598,-122.416236],
"MARKET_ST_AND_LAGUNA_ST": [37.770953,-122.424666],
"MARKET_ST_AND_MAIN_ST": [37.792984,-122.396627],
"MARKET_ST_AND_MASON_ST": [37.78285,-122.40964],
"MARKET_ST_AND_MONTGOMERY_ST": [37.78849,-122.40248],
"MARKET_ST_AND_NEW_MONTGOMERY_ST": [37.788613,-122.402163],
"MARKET_ST_AND_NOE_ST": [37.764489,-122.432812],
"MARKET_ST_AND_NOE_ST": [37.763958,-122.433323],
"MARKET_ST_AND_POWELL_ST": [37.784474,-122.407544],
"MARKET_ST_AND_SANSOME_ST": [37.790013,-122.400491],
"MARKET_ST_AND_SANCHEZ_ST": [37.766185,-122.430707],
"MARKET_ST_AND_SANCHEZ_ST": [37.765689,-122.43114],
"MARKET_ST_AND_SOUTH_VAN_NESS_AVE": [37.775056,-122.419321],
"MARKET_ST_AND_STEUART_ST": [37.79426,-122.39491],
"MARKET_ST_AND_STOCKTON_ST": [37.785777,-122.405859],
"MARKET_ST_AND_TAYLOR_ST": [37.782316,-122.410228],
"MARKET_ST_AND_VAN_NESS_AVE": [37.775198,-122.419252],
"MARVIEW_WAY_AND_PANORAMA_DR": [37.753618,-122.450541],
"MOSCOW_ST_AND_BRAZIL_AVE": [37.72136,-122.42762],
"MOSCOW_ST_AND_EXCELSIOR_AVE": [37.7229,-122.42647],
"MOSCOW_ST_AND_FRANCE_AVE": [37.71669,-122.43113],
"MOSCOW_ST_AND_GENEVA_AVE": [37.71331,-122.43366],
"MOSCOW_ST_AND_ITALY_AVE": [37.71513,-122.4323],
"MOSCOW_ST_AND_PERSIA_AVE": [37.719823,-122.42876],
"MASONIC_AVE_AND_FREDERICK_ST": [37.767511,-122.444846],
"MASONIC_AVE_AND_FULTON_ST": [37.7759,-122.44658],
"MASONIC_AVE_AND_FULTON_ST": [37.77571,-122.44636],
"MASONIC_AVE_AND_GOLDEN_GATE_AVE": [37.77757,-122.44674],
"MASONIC_AVE_AND_GOLDEN_GATE_AVE": [37.77754,-122.446908],
"MASONIC_AVE_AND_GEARY_BLVD": [37.78213,-122.44728],
"MASONIC_AVE_AND_GEARY_BLVD": [37.782144,-122.447573],
"MASONIC_AVE_AND_HAIGHT_ST": [37.770152,-122.445384],
"MASONIC_AVE_AND_HAIGHT_ST": [37.77031,-122.44542],
"MASONIC_AVE_AND_HAIGHT_ST": [37.770348,-122.445304],
"MASONIC_AVE_AND_HAYES_ST": [37.77406,-122.446049],
"MASONIC_AVE_AND_HAYES_ST": [37.77402,-122.44624],
"MASONIC_AVE_AND_OAK_ST": [37.771963,-122.445625],
"MASONIC_AVE_AND_OAK_ST": [37.77173,-122.44573],
"MASONIC_AVE_AND_TURK_ST": [37.778771,-122.447],
"MASONIC_AVE_AND_TURK_ST": [37.77876,-122.44716],
"MITCHELL_RD_AND_BUNKER_RD": [37.83183,-122.53238],
"MITCHELL_RD_AND_BUNKER_RD": [37.831876,-122.530858],
"MITCHELL_RD/VISITOR'S_CENTER": [37.83178,-122.53626],
"MONTGOMERY_ST_(PRESIDIO)/BLDG_102": [37.8002,-122.45899],
"MONTGOMERY_ST_(PRESIDIO)/BLDG_102": [37.80013,-122.45913],
"MONTGOMERY_ST_AND_MORAGA_AVE": [37.79853,-122.46036],
"METRO_CHURCH_STATION/DOWNTOWN": [37.767194,-122.429168],
"METRO_CIVIC_CENTER_STATION/DOWNTN": [37.778542,-122.414813],
"METRO_CASTRO_STATION/DOWNTOWN": [37.76262,-122.435231],
"METRO_EMBARCADERO_STATION/DOWNTOWN": [37.793003,-122.396549],
"METRO_FOREST_HILL_STATION/DOWNTOWN": [37.748351,-122.458623],
"METRO_MONTGOMERY_STATION/DOWNTOWN": [37.788702,-122.401925],
"NOE_ST_AND_27TH_ST": [37.74668,-122.43148],
"NOE_ST_AND_27TH_ST": [37.74654,-122.43132],
"NOE_ST_AND_28TH_ST": [37.74519,-122.43134],
"NOE_ST_AND_28TH_ST": [37.74493,-122.43117],
"NOE_ST_AND_29TH_ST": [37.74354,-122.43117],
"NOE_ST_AND_29TH_ST": [37.7433,-122.43104],
"NOE_ST_AND_30TH_ST": [37.74201,-122.43101],
"NORIEGA_ST_AND_16TH_AVE": [37.75526,-122.47312],
"NORIEGA_ST_AND_23RD_AVE": [37.75397,-122.48088],
"NORIEGA_ST_AND_24TH_AVE": [37.754042,-122.482773],
"NORIEGA_ST_AND_25TH_AVE": [37.753881,-122.483014],
"NORIEGA_ST_AND_26TH_AVE": [37.75398,-122.48385],
"NORIEGA_ST_AND_27TH_AVE": [37.753782,-122.485168],
"NORIEGA_ST_AND_28TH_AVE": [37.753898,-122.485993],
"NORIEGA_ST_AND_29TH_AVE": [37.753692,-122.48731],
"NORIEGA_ST_AND_30TH_AVE": [37.753754,-122.489201],
"NORIEGA_ST_AND_31ST_AVE": [37.753593,-122.489453],
"NORIEGA_ST_AND_32ND_AVE": [37.75375,-122.49028],
"NORIEGA_ST_AND_33RD_AVE": [37.75348,-122.49161],
"NORIEGA_ST_AND_34TH_AVE": [37.753619,-122.492432],
"NORIEGA_ST_AND_34TH_AVE": [37.753458,-122.49265],
"NORIEGA_ST_AND_38TH_AVE": [37.75343,-122.496717],
"NORIEGA_ST_AND_39TH_AVE": [37.753215,-122.498012],
"NORIEGA_ST_AND_40TH_AVE": [37.753331,-122.498848],
"NORIEGA_ST_AND_41ST_AVE": [37.753125,-122.500166],
"NORIEGA_ST_AND_42ND_AVE": [37.753241,-122.501002],
"NORIEGA_ST_AND_43RD_AVE": [37.753026,-122.502309],
"NORIEGA_ST_AND_44TH_AVE": [37.753124,-122.503569],
"NORIEGA_ST_AND_45TH_AVE": [37.752936,-122.504451],
"NORIEGA_ST_AND_46TH_AVE": [37.753034,-122.505712],
"NORIEGA_ST_AND_46TH_AVE": [37.752891,-122.505574],
"NORIEGA_ST_AND_48TH_AVE": [37.752934,-122.507854],
"NORIEGA_ST_AND_SUNSET_BLVD": [37.753493,-122.495056],
"NORIEGA_ST_AND_SUNSET_BLVD": [37.753395,-122.495274],
"NORTHRIDGE_RD_AND_DORMITORY_RD": [37.73025,-122.37448],
"NORTHRIDGE_RD_AND_HARBOR_RD": [37.730978,-122.377013],
"NORTHRIDGE_RD_AND_INGALLS_ST": [37.73163,-122.37896],
"NEVADA_ST_AND_CORTLAND_AVE": [37.74007,-122.41131],
"NEVADA_ST_AND_CORTLAND_AVE": [37.73992,-122.41141],
"NEVADA_ST_AND_POWHATTAN_AVE": [37.74123,-122.4113],
"OAK_ST_AND_FRANKLIN_ST": [37.775063,-122.42195],
"OAKDALE_AVE_AND_BARNEVELD_AVE": [37.7419,-122.40307],
"OAKDALE_AVE_AND_BARNEVELD_AVE": [37.741885,-122.403341],
"OAKDALE_AVE_AND_BALDWIN_CT": [37.729384,-122.381367],
"OAKDALE_AVE_AND_GRIFFITH_ST": [37.728223,-122.379318],
"OAKDALE_AVE_AND_INGALLS_ST": [37.730152,-122.382684],
"OCEAN_AVE_AND_LEE_ST": [37.723431,-122.454212],
"OCEAN_AVE_AND_APTOS_AVE": [37.728285,-122.467561],
"OCEAN_AVE_AND_APTOS_AVE": [37.728383,-122.467871],
"OCEAN_AVE/BALBOA_PARK_BART_STATION": [37.722951,-122.446749],
"OCEAN_AVE_AND_CAYUGA_AVE": [37.72367,-122.43867],
"OCEAN_AVE_AND_CAYUGA_AVE": [37.72357,-122.43853],
"OCEAN_AVE/CCSF_PEDESTRIAN_BRIDGE": [37.72304,-122.451448],
"OCEAN_AVE/CCSF_PEDESTRIAN_BRIDGE": [37.722947,-122.450866],
"OCEAN_AVE_AND_CERRITOS_AVE": [37.727252,-122.46676],
"OCEAN_AVE_AND_DORADO_TER": [37.724957,-122.461059],
"OCEAN_AVE_AND_FAIRFIELD_WAY": [37.726008,-122.464072],
"OCEAN_AVE_AND_HAROLD_AVE": [37.7232,-122.45321],
"OCEAN_AVE_AND_HOWTH_ST": [37.723022,-122.449784],
"OCEAN_AVE_AND_HOWTH_ST": [37.72286,-122.44929],
"OCEAN_AVE_AND_JUNIPERO_SERRA_BLVD": [37.730952,-122.471686],
"OCEAN_AVE_AND_JULES_AVE": [37.724955,-122.46139],
"OCEAN_AVE_AND_LEE_ST": [37.723459,-122.453999],
"OCEAN_AVE_AND_LEE_ST": [37.723451,-122.454217],
"OCEAN_AVE_AND_MISSION_ST": [37.723941,-122.435731],
"OCEAN_AVE_AND_MIRAMAR_AVE": [37.724387,-122.458077],
"OCEAN_AVE_AND_MIRAMAR_AVE": [37.724262,-122.458306],
"OCEAN_AVE_AND_OTSEGO_AVE": [37.72336,-122.44132],
"OCEAN_AVE_AND_OTSEGO_AVE": [37.72326,-122.44124],
"OCEAN_AVE_AND_PERSIA_AVE": [37.72382,-122.43589],
"OCEAN_AVE_AND_PHELAN_AVE": [37.723085,-122.45243],
"OCEAN_AVE_AND_SAN_JOSE_AVE": [37.722857,-122.444971],
"OCEAN_AVE_AND_SAN_JOSE_AVE": [37.723004,-122.444951],
"OCEAN_AVE_AND_SAN_JOSE_ST": [37.7229,-122.4444],
"OCEAN_AVE_AND_SAN_LEANDRO_WAY": [37.729989,-122.469097],
"OCEAN_AVE_AND_SAN_LEANDRO_WAY": [37.729945,-122.469475],
"OCEAN_AVE_AND_VICTORIA_ST": [37.726029,-122.464337],
"OCEAN_AVE_AND_WESTGATE_DR": [37.727199,-122.46648],
"O'FARRELL_ST_AND_GRANT_AVE": [37.786642,-122.405629],
"O'FARRELL_ST_AND_HYDE_ST": [37.785369,-122.415774],
"O'FARRELL_ST_AND_JONES_ST": [37.7858,-122.41252],
"O'FARRELL_ST_AND_LARKIN_ST": [37.785093,-122.417998],
"O'FARRELL_ST_AND_LEAVENWORTH_ST": [37.785538,-122.414445],
"O'FARRELL_ST_AND_MASON_ST": [37.78604,-122.41065],
"O'FARRELL_ST_AND_POLK_ST": [37.78496,-122.41916],
"O'FARRELL_ST_AND_POWELL_ST": [37.786331,-122.408128],
"O'FARRELL_ST_AND_VAN_NESS_AVE": [37.784657,-122.421415],
"US101_OFFRAMP/SAUSALITO_LATERAL_RD": [37.83592,-122.48383],
"OAKPARK_DR_AND_FOREST_KNOLLS_DR": [37.755304,-122.455411],
"OLYMPIA_WAY_AND_CLARENDON_AVE": [37.751494,-122.456224],
"OLYMPIA_WAY_AND_DELLBROOK_AVE": [37.751343,-122.454391],
"OLYMPIA_WAY_AND_DELLBROOK_AVE": [37.75128,-122.453073],
"OLYMPIA_WAY_AND_PANORAMA_DR": [37.751298,-122.452271],
"ORIZABA_AVE_AND_BROAD_ST": [37.713328,-122.462585],
"ORTEGA_ST_AND_9TH_AVE": [37.752778,-122.465631],
"ORTEGA_ST_AND_10TH_AVE": [37.752885,-122.466479],
"ORTEGA_ST_AND_48TH_AVE": [37.750981,-122.507497],
"100_O'SHAUGHNESSY_BLVD": [37.744481,-122.450678],
"O'SHAUGHNESSY_BLVD_AND_DEL_VALE_AVE": [37.741385,-122.446027],
"O'SHAUGHNESSY_BLVD_AND_DEL_VALE_AVE": [37.741082,-122.44597],
"O'SHAUGHNESSY_BLVD_AND_MALTA_DR": [37.736611,-122.443301],
"O'SHAUGHNESSY_BLVD_AND_MALTA_DR": [37.736478,-122.443782],
"O'SHAUGHNESSY_BLVD_AND_PORTOLA_DR": [37.744999,-122.451308],
"150_OTIS_ST": [37.77073,-122.42031],
"OTIS_ST_AND_12TH_ST": [37.77281,-122.41917],
"PACIFIC_AVE_AND_GRANT_AVE": [37.796984,-122.406735],
"PACIFIC_AVE_AND_HYDE_ST": [37.79555,-122.4182],
"PACIFIC_AVE_AND_HYDE_ST": [37.795381,-122.418395],
"PACIFIC_AVE_AND_JONES_ST": [37.79596,-122.41491],
"PACIFIC_AVE_AND_JONES_ST": [37.795791,-122.415105],
"PACIFIC_AVE_AND_KEARNY_ST": [37.79717,-122.405222],
"PACIFIC_AVE_AND_LARKIN_ST": [37.795328,-122.419863],
"PACIFIC_AVE_AND_LARKIN_ST": [37.795149,-122.420035],
"PACIFIC_AVE_AND_LEAVENWORTH_ST": [37.795755,-122.416549],
"PACIFIC_AVE_AND_LEAVENWORTH_ST": [37.795586,-122.416744],
"PACIFIC_AVE_AND_MASON_ST": [37.796378,-122.411619],
"PACIFIC_AVE_AND_MASON_ST": [37.796209,-122.411814],
"PACIFIC_AVE_AND_MONTGOMERY_ST": [37.797393,-122.403582],
"PACIFIC_AVE_AND_POLK_ST": [37.795114,-122.42148],
"PACIFIC_AVE_AND_POLK_ST": [37.794998,-122.42125],
"PACIFIC_AVE_AND_POWELL_ST": [37.796556,-122.409991],
"PACIFIC_AVE_AND_POWELL_ST": [37.796405,-122.410175],
"PACIFIC_AVE_AND_SANSOME_ST": [37.797544,-122.402367],
"PACIFIC_AVE_AND_STOCKTON_ST": [37.796788,-122.408329],
"PACIFIC_AVE_AND_TAYLOR_ST": [37.796165,-122.41327],
"PACIFIC_AVE_AND_TAYLOR_ST": [37.795995,-122.413465],
"PACIFIC_AVE_AND_VAN_NESS_AVE": [37.794891,-122.423096],
"PACIFIC_AVE_AND_VAN_NESS_AVE": [37.794784,-122.422901],
"PAGE_ST_AND_FRANKLIN_ST": [37.77419,-122.42096],
"PAGE_ST_AND_GOUGH_ST": [37.77403,-122.422524],
"PAGE_ST_AND_OCTAVIA_ST": [37.773811,-122.42417],
"PALOU_AVE_AND_3RD_ST": [37.734019,-122.390825],
"PALOU_AVE_AND_3RD_ST": [37.73385,-122.390859],
"PALOU_AVE_AND_CRESPI_DR": [37.727982,-122.380189],
"PALOU_AVE_AND_HAWES_ST": [37.728679,-122.381425],
"PALOU_AVE_AND_INDUSTRIAL_ST": [37.739529,-122.400547],
"PALOU_AVE_AND_INGALLS_ST": [37.72942,-122.38273],
"PALOU_AVE_AND_INGALLS_ST": [37.729733,-122.383578],
"PALOU_AVE_AND_JENNINGS_ST": [37.730795,-122.385146],
"PALOU_AVE_AND_JENNINGS_ST": [37.73082,-122.38542],
"PALOU_AVE_AND_KEITH_ST": [37.731858,-122.387046],
"PALOU_AVE_AND_KEITH_ST": [37.732055,-122.387367],
"PALOU_AVE_AND_KEITH_ST": [37.731849,-122.38731],
"PALOU_AVE_AND_LANE_ST": [37.732921,-122.38889],
"PALOU_AVE_AND_LANE_ST": [37.732912,-122.389176],
"PALOU_AVE_AND_NEWHALL_ST": [37.735029,-122.39292],
"PALOU_AVE_AND_NEWHALL_ST": [37.735028,-122.392657],
"PALOU_AVE_AND_PHELPS_ST": [37.7361,-122.394535],
"PALOU_AVE_AND_PHELPS_ST": [37.7361,-122.39481],
"PALOU_AVE_AND_QUINT_ST": [37.737163,-122.396367],
"PALOU_AVE_AND_QUINT_ST": [37.737216,-122.396722],
"PALOU_AVE_AND_RANKIN_ST": [37.73821,-122.39824],
"PALOU_AVE_AND_RANKIN_ST": [37.73825,-122.39853],
"PARNASSUS_AVE_AND_4TH_AVE": [37.762727,-122.46074],
"PARNASSUS_AVE_AND_4TH_AVE": [37.762656,-122.460511],
"500_PARNASSUS_AVE": [37.763308,-122.458746],
"513_PARNASSUS_AVE": [37.763308,-122.458173],
"PARNASSUS_AVE_AND_COLE_ST": [37.764905,-122.450083],
"PARNASSUS_AVE_AND_COLE_ST": [37.764789,-122.449854],
"PARNASSUS_AVE_AND_HILLWAY_AVE": [37.763807,-122.45697],
"PARNASSUS_AVE_AND_HILLWAY_AVE": [37.763718,-122.456741],
"PARNASSUS_AVE_AND_SHRADER_ST": [37.764771,-122.451103],
"PARNASSUS_AVE_AND_SHRADER_ST": [37.764602,-122.451298],
"PARNASSUS_AVE_AND_STANYAN_ST": [37.764548,-122.452879],
"PARNASSUS_AVE_AND_STANYAN_ST": [37.764432,-122.45265],
"PARNASSUS_AVE_AND_WILLARD_ST": [37.764352,-122.454529],
"PARNASSUS_AVE_AND_WILLARD_ST": [37.764236,-122.4543],
"PAUL_AVE_AND_BAY_SHORE_BLVD": [37.723647,-122.400591],
"PAUL_AVE_AND_CARR_ST": [37.722485,-122.396343],
"PAUL_AVE_AND_CRANE_ST": [37.723289,-122.39908],
"PAUL_AVE_AND_GOULD_ST": [37.723012,-122.397946],
"PAUL_AVE_AND_GOULD_ST": [37.722726,-122.397385],
"PAUL_AVE_AND_SAN_BRUNO_AVE": [37.723879,-122.401576],
"PAUL_AVE_AND_WHEAT_ST": [37.723397,-122.400202],
"PERSIA_AVE_AND_ATHENS_ST": [37.720139,-122.429501],
"PERSIA_AVE_AND_ATHENS_ST": [37.720112,-122.429467],
"PERSIA_AVE_AND_BRAZIL_AVE": [37.717782,-122.422504],
"PERSIA_AVE_AND_BRAZIL_AVE": [37.717791,-122.422779],
"PERSIA_AVE_AND_MADRID_ST": [37.721638,-122.432673],
"PERSIA_AVE_AND_MADRID_ST": [37.721612,-122.432959],
"PERSIA_AVE_AND_MISSION_ST": [37.723147,-122.435845],
"PERSIA_AVE_AND_MISSION_ST": [37.722941,-122.435765],
"PERSIA_AVE_AND_MOSCOW_ST": [37.719728,-122.428676],
"PERSIA_AVE_AND_MOSCOW_ST": [37.719702,-122.428963],
"PERSIA_AVE_AND_NAPLES_ST": [37.72088,-122.43107],
"PERSIA_AVE_AND_NAPLES_ST": [37.720853,-122.431356],
"PERSIA_AVE_AND_PARIS_ST": [37.722406,-122.434276],
"PERSIA_AVE_AND_PARIS_ST": [37.722379,-122.434563],
"PERSIA_AVE_AND_PRAGUE_ST": [37.718961,-122.427062],
"PERSIA_AVE_AND_PRAGUE_ST": [37.718934,-122.427348],
"PHELAN_AVE/CCSF_(SOUTH_ENTRANCE)": [37.7241,-122.45226],
"PHELAN_AVE/CCSF_(SOUTH_ENTRANCE)": [37.72385,-122.45243],
"PHELAN_AVE_AND_JUDSON_AVE": [37.72762,-122.45229],
"PHELAN_AVE_AND_JUDSON_AVE": [37.727867,-122.452453],
"PHELAN_LOOP": [37.723629,-122.45267],
"PHELAN_LOOP": [37.72354,-122.452648],
"PHELAN_AVE/CCSF_(NORTH_ENTRANCE)": [37.726038,-122.45227],
"PHELAN_AVE/CCSF_(NORTH_ENTRANCE)": [37.725539,-122.45243],
"PHELPS_ST_AND_CARROLL_AVE": [37.7291,-122.40088],
"PHELPS_ST_AND_CARROLL_AVE": [37.72912,-122.40101],
"PHELPS_ST_AND_DONNER_AVE": [37.72847,-122.40144],
"PHELPS_ST_AND_EGBERT_AVE": [37.72808,-122.40193],
"PHELPS_ST_AND_JERROLD_AVE": [37.739757,-122.391267],
"PHELPS_ST_AND_MCKINNON_AVE": [37.73808,-122.392987],
"PHELPS_ST_AND_MCKINNON_AVE": [37.737866,-122.392964],
"PHELPS_ST_AND_OAKDALE_AVE": [37.73684,-122.394099],
"PHELPS_ST_AND_OAKDALE_AVE": [37.736635,-122.394088],
"PHELPS_ST_AND_PALOU_AVE": [37.736216,-122.394672],
"PHELPS_ST_AND_WILLIAMS_AVE": [37.73019,-122.39988],
"PINE_ST_AND_BATTERY_ST": [37.792288,-122.400088],
"PINE_ST_AND_DAVIS_ST": [37.79254,-122.39772],
"PINE_ST_AND_FRONT_ST": [37.792484,-122.398518],
"PINE_ST_AND_MONTGOMERY_ST": [37.791941,-122.402542],
"PARK_HILL_AVE_AND_BUENA_VISTA_EAST": [37.76805,-122.43927],
"PARK_PRESIDIO_BLVD_AND_BALBOA_ST": [37.776948,-122.471975],
"PARK_PRESIDIO_BLVD_AND_BALBOA_ST": [37.77648,-122.47214],
"PARK_PRESIDIO_AND_CALIFORNIA_STREET": [37.784336,-122.472642],
"PARK_PRESIDIO_BLVD_AND_CALIFORNIA_ST": [37.784497,-122.472528],
"PARK_PRESIDIO_BLVD_AND_FULTON_ST": [37.773219,-122.471653],
"PARK_PRESIDIO_BLVD_AND_FULTON_ST": [37.77327,-122.47191],
"PARK_PRESIDIO_BLVD_AND_GEARY_BLVD": [37.780571,-122.472412],
"PARK_PRESIDIO_BLVD_AND_GEARY_BLVD": [37.780776,-122.472217],
"PLYMOUTH_AVE_AND_BROAD_ST": [37.71334,-122.45601],
"GILMAN_AVE_AND_BILL_WALSH_WAY": [37.717502,-122.38699],
"PLYMOUTH_AVE_AND_FARALLONES_ST": [37.71416,-122.45612],
"PLYMOUTH_AVE_AND_FARALLONES_ST": [37.71397,-122.45605],
"PLYMOUTH_AVE_AND_GRAFTON_AVE": [37.719881,-122.456015],
"PLYMOUTH_AVE_AND_GRAFTON_AVE": [37.720113,-122.456221],
"PLYMOUTH_AVE_AND_HOLLOWAY_AVE": [37.721934,-122.456232],
"PLYMOUTH_AVE_AND_HOLLOWAY_AVE": [37.721764,-122.456038],
"PLYMOUTH_AVE_AND_LAKEVIEW_AVE": [37.71817,-122.45606],
"PLYMOUTH_AVE_AND_LAKEVIEW_AVE": [37.718454,-122.456209],
"PLYMOUTH_AVE_AND_LOBOS_ST": [37.71501,-122.45613],
"PLYMOUTH_AVE_AND_LOBOS_ST": [37.71484,-122.45605],
"PLYMOUTH_AVE_AND_MANGELS_AVE": [37.73209,-122.45765],
"PLYMOUTH_AVE_AND_MANGELS_AVE": [37.732239,-122.457768],
"PLYMOUTH_AVE_AND_MINERVA_ST": [37.71598,-122.45605],
"PLYMOUTH_AVE_AND_MINERVA_ST": [37.71586,-122.45612],
"PLYMOUTH_AVE_AND_MONTANA_ST": [37.71655,-122.45605],
"PLYMOUTH_AVE_AND_MONTANA_ST": [37.71643,-122.45613],
"PLYMOUTH_AVE_AND_MONTEREY_BLVD": [37.73111,-122.45753],
"PLYMOUTH_AVE_AND_OCEAN_AVE": [37.723772,-122.456049],
"PLYMOUTH_AVE_AND_OCEAN_AVE": [37.723638,-122.456233],
"PLYMOUTH_AVE_AND_SAGAMORE_ST": [37.7117,-122.45599],
"PLYMOUTH_AVE_AND_SAGAMORE_ST": [37.71155,-122.45608],
"PLYMOUTH_AVE_AND_THRIFT_ST": [37.71757,-122.45614],
"PLYMOUTH_AVE_AND_THRIFT_ST": [37.71773,-122.45607],
"PLYMOUTH_AVE_AND_YERBA_BUENA_AVE": [37.73261,-122.45851],
"PANORAMA_DR_AND_DELLBROOK_AVE": [37.753457,-122.452626],
"PANORAMA_DR_AND_STARVIEW_WAY": [37.749264,-122.45203],
"POLK_ST_AND_BROADWAY": [37.796185,-122.421731],
"POLK_ST_AND_BROADWAY": [37.795676,-122.421812],
"POLK_ST_AND_CALIFORNIA_ST": [37.790822,-122.420644],
"POLK_ST_AND_CALIFORNIA_ST": [37.790644,-122.420793],
"POLK_ST_AND_FRANCISCO_ST": [37.803653,-122.423231],
"POLK_ST_AND_FRANCISCO_ST": [37.803475,-122.42338],
"POLK_ST_AND_GREEN_ST": [37.797737,-122.42204],
"POLK_ST_AND_LOMBARD_ST": [37.801628,-122.423014],
"POLK_ST_AND_LOMBARD_ST": [37.801476,-122.422796],
"POLK_ST_AND_NORTH_POINT_ST": [37.805018,-122.4237],
"POLK_ST_AND_O'FARRELL_ST": [37.785022,-122.419661],
"POLK_ST_AND_PACIFIC_AVE": [37.795275,-122.421537],
"POLK_ST_AND_PINE_ST": [37.789537,-122.420381],
"POLK_ST_AND_PINE_ST": [37.789359,-122.42053],
"POLK_ST_AND_POST_ST": [37.786914,-122.419889],
"POLK_ST_AND_POST_ST": [37.786566,-122.419969],
"POLK_ST_AND_SACRAMENTO_ST": [37.791741,-122.420827],
"POLK_ST_AND_SACRAMENTO_ST": [37.791929,-122.421057],
"POLK_ST_AND_SUTTER_ST": [37.788002,-122.420072],
"POLK_ST_AND_SUTTER_ST": [37.787824,-122.420221],
"POLK_ST_AND_UNION_ST": [37.799004,-122.422292],
"POLK_ST_AND_UNION_ST": [37.798826,-122.422441],
"POLK_ST_AND_VALLEJO_ST": [37.796961,-122.422075],
"POLK_ST_AND_WASHINGTON_ST": [37.793499,-122.421193],
"POLK_ST_AND_WASHINGTON_ST": [37.793695,-122.421411],
"6_PORTOLA_DR": [37.749951,-122.443483],
"120_PORTOLA_DR": [37.74897,-122.44396],
"PORTOLA_DR_AND_BURNETT_AVE": [37.747033,-122.44487],
"PORTOLA_DR_AND_CLARENDON_AVE": [37.73955,-122.46527],
"PORTOLA_DR_AND_CLIPPER_ST": [37.74715,-122.4442],
"PORTOLA_DR_AND_DEL_SUR_AVE": [37.741974,-122.455776],
"PORTOLA_DR_AND_DORCHESTER_WAY": [37.7401,-122.46344],
"PORTOLA_DR_AND_GLENVIEW_DR": [37.746462,-122.447917],
"POST_ST_AND_LARKIN_ST": [37.78705,-122.41772],
"POST_ST_AND_LEAVENWORTH_ST": [37.78745,-122.41459],
"POST_ST_AND_LAGUNA_ST": [37.785774,-122.427675],
"POST_ST_AND_MONTGOMERY_ST": [37.78901,-122.40238],
"POST_ST_AND_OCTAVIA_ST": [37.785906,-122.426654],
"POST_ST_AND_POLK_ST": [37.7868,-122.41956],
"POST_ST_AND_POWELL_ST": [37.7883,-122.40793],
"POST_ST_AND_TAYLOR_ST": [37.78788,-122.41132],
"POST_ST_AND_VAN_NESS_AVE": [37.786575,-122.421448],
"POTRERO_AVE_AND_16TH_ST": [37.766343,-122.4082],
"POTRERO_AVE_AND_16TH_ST": [37.766031,-122.407474],
"POTRERO_AVE_AND_16TH_ST": [37.765701,-122.407646],
"POTRERO_AVE_AND_17TH_ST": [37.764622,-122.407418],
"POTRERO_AVE_AND_17TH_ST": [37.764434,-122.407475],
"POTRERO_AVE_AND_18TH_ST": [37.76185,-122.40705],
"POTRERO_AVE_AND_18TH_ST": [37.76164,-122.40729],
"POTRERO_AVE_AND_20TH_ST": [37.75962,-122.40684],
"POTRERO_AVE_AND_20TH_ST": [37.75908,-122.40705],
"POTRERO_AVE_AND_21ST_ST": [37.75749,-122.4069],
"POTRERO_AVE_AND_22ND_ST": [37.75719,-122.4066],
"POTRERO_AVE_AND_22ND_ST": [37.75588,-122.40675],
"POTRERO_AVE_AND_23RD_ST": [37.75399,-122.40657],
"POTRERO_AVE_AND_24TH_ST": [37.753111,-122.406336],
"POTRERO_AVE_AND_24TH_ST": [37.752942,-122.406393],
"POTRERO_AVE_AND_25TH_ST": [37.75164,-122.40608],
"POTRERO_AVE_AND_25TH_ST": [37.751264,-122.406337],
"POTRERO_AVE_AND_ALAMEDA_ST": [37.768256,-122.407667],
"POTRERO_AVE_AND_ALAMEDA_ST": [37.76844,-122.40792],
"POTRERO_AVE_AND_ALAMEDA_ST": [37.76826,-122.40766],
"POWELL_ST_AND_BAY_ST": [37.805738,-122.411833],
"POWELL_ST_AND_BEACH_ST": [37.808031,-122.412508],
"POWELL_ST_AND_BUSH_ST": [37.790158,-122.408711],
"POWELL_ST_AND_BUSH_ST": [37.790141,-122.408871],
"POWELL_ST_AND_CALIFORNIA_ST": [37.7923,-122.409145],
"POWELL_ST_AND_CALIFORNIA_ST": [37.792211,-122.409294],
"POWELL_ST_AND_CLAY_ST": [37.793755,-122.409465],
"POWELL_ST_AND_CLAY_ST": [37.793835,-122.409626],
"POWELL_ST_AND_ELLIS_ST": [37.785376,-122.407899],
"POWELL_ST_AND_FILBERT_ST": [37.801232,-122.411124],
"POWELL_ST_AND_FRANCISCO_ST": [37.804962,-122.411879],
"POWELL_ST_AND_FRANCISCO_ST": [37.80481,-122.41165],
"POWELL_ST_AND_GEARY_BLVD": [37.787464,-122.408322],
"POWELL_ST_AND_GEARY_BLVD": [37.787267,-122.408128],
"POWELL_ST_AND_JACKSON_ST": [37.79512,-122.409763],
"POWELL_ST_AND_LOMBARD_ST": [37.802945,-122.411272],
"POWELL_ST_AND_LOMBARD_ST": [37.802767,-122.411433],
"POWELL/MARKET": [37.784457,-122.407636],
"POWELL_ST_AND_MARKET_ST": [37.784698,-122.407682],
"POWELL_ST_AND_MARKET_ST": [37.784635,-122.407785],
"POWELL_ST_AND_NORTH_POINT_ST": [37.806666,-122.412038],
"POWELL_ST_AND_NORTH_POINT_ST": [37.806497,-122.412176],
"POWELL_ST_AND_O'FARRELL_ST": [37.786509,-122.408139],
"POWELL_ST_AND_O'FARRELL_ST": [37.786322,-122.407933],
"POWELL_ST_AND_PINE_ST": [37.791095,-122.408905],
"POWELL_ST_AND_PINE_ST": [37.791078,-122.409066],
"POWELL_ST_AND_POST_ST": [37.788392,-122.408505],
"POWELL_ST_AND_POST_ST": [37.788195,-122.408299],
"POWELL_ST_AND_SACRAMENTO_ST": [37.79288,-122.409259],
"POWELL_ST_AND_SACRAMENTO_ST": [37.79296,-122.409443],
"POWELL_ST_AND_SUTTER_ST": [37.789132,-122.408493],
"POWELL_ST_AND_SUTTER_ST": [37.789061,-122.408642],
"POWELL_ST_AND_WASHINGTON_ST": [37.794638,-122.409637],
"PRAGUE_ST_AND_BRAZIL_AVE": [37.7204,-122.42605],
"PRAGUE_ST_AND_BRAZIL_AVE": [37.72041,-122.42617],
"PRAGUE_ST_AND_CORDOVA_AVE": [37.710164,-122.435069],
"PRAGUE_ST_AND_DRAKE_ST": [37.709968,-122.436798],
"PRAGUE_ST_AND_PERSIA_AVE": [37.71903,-122.42718],
"PRAGUE_ST_AND_PERSIA_AVE": [37.71884,-122.42722],
"PRAGUE_ST_AND_RUSSIA_AVE": [37.71756,-122.4282],
"PRAGUE_ST_AND_RUSSIA_AVE": [37.71748,-122.42835],
"PARKRIDGE_DR_AND_BURNETT_AVE": [37.75041,-122.44578],
"PARKRIDGE_DR_AND_CRESTLINE_DR": [37.752351,-122.446084],
"PRESIDIO_AVE_AND_CALIFORNIA_ST": [37.787381,-122.446736],
"PRESIDIO_AVE_AND_CALIFORNIA_ST": [37.787319,-122.446851],
"PRESIDIO_AVE_AND_CLAY_ST": [37.78918,-122.44726],
"PRESIDIO_AVE_AND_CLAY_ST": [37.78897,-122.44704],
"PRESIDIO_AVE_AND_GEARY_BLVD": [37.782706,-122.445796],
"PRESIDIO_AVE_AND_GEARY_BLVD": [37.78267,-122.44593],
"PRESIDIO_AVE_AND_JACKSON_ST": [37.790905,-122.447607],
"PRESIDIO_AVE_AND_JACKSON_ST": [37.79071,-122.4474],
"PRESIDIO_AVE_AND_PINE_ST": [37.786239,-122.44653],
"PRESIDIO_AVE_AND_PINE_ST": [37.786328,-122.446759],
"PRESIDIO_AVE_AND_SUTTER_ST": [37.784535,-122.446197],
"PRESIDIO_AVE_AND_SUTTER_ST": [37.784392,-122.446289],
"PRESIDIO_BLVD_AND_BARNARD_RD": [37.79817,-122.45499],
"PRESIDIO_BLVD_AND_BARNARD_RD": [37.798249,-122.455094],
"PRESIDIO_BLVD_AND_FUNSTON_AVE": [37.7984,-122.456298],
"PRESIDIO_BLVD_AND_LINCOLN_BLVD": [37.79907,-122.452652],
"PRESIDIO_BLVD_AND_LETTERMAN_DR": [37.799043,-122.452537],
"PRESIDIO_BLVD_AND_LETTERMAN_DR": [37.799105,-122.452904],
"PRESIDIO_BLVD_AND_SIMONDS_LOOP": [37.796482,-122.451517],
"PRESIDIO_BLVD_AND_SUMNER_AVE": [37.796705,-122.4517],
"902_POINT_LOBOS_AVE": [37.779102,-122.512976],
"POINT_LOBOS_AVE_AND_42ND_AVE": [37.779651,-122.502855],
"POINT_LOBOS_AVE_AND_42ND_AVE": [37.779553,-122.503073],
"POINT_LOBOS_AVE_AND_44TH_AVE": [37.779837,-122.50501],
"PORTOLA_DR_AND_GLENVIEW_DR": [37.74636,-122.44764],
"PORTOLA_DR_AND_LAGUNA_HONDA_BLVD": [37.74324,-122.4552],
"PORTOLA_DR_AND_LAGUNA_HONDA_BLVD": [37.74287,-122.45524],
"PORTOLA_DR/MCATEER_HIGH_SCHOOL": [37.74593,-122.44957],
"PORTOLA_DR_AND_SAN_PABLO_AVE": [37.7404,-122.46107],
"PORTOLA_DR_AND_SAN_PABLO_AVE": [37.74023,-122.46083],
"PORTOLA_DR_AND_REX_AVE": [37.740885,-122.457517],
"POTRERO_AVE/SF_GENERAL_HOSPITAL": [37.755413,-122.406472],
"PORTOLA_DR_AND_SAN_LORENZO_AVE": [37.73993,-122.46368],
"PORTOLA_DR_AND_TERESITA_BLVD": [37.74532,-122.4519],
"PORTOLA_DR_AND_WAITHMAN_WAY": [37.741626,-122.456521],
"PORTOLA_DR_AND_WOODSIDE_AVE": [37.74533,-122.45238],
"POST_ST_AND_GOUGH_ST": [37.786174,-122.424761],
"POST_ST_AND_GRANT_AVE": [37.78855,-122.40599],
"POST_ST_AND_HYDE_ST": [37.78724,-122.41626],
"POST_ST_AND_JONES_ST": [37.78765,-122.41295],
"POINT_LOBOS_AVE_AND_44TH_AVE": [37.779739,-122.505228],
"POINT_LOBOS_AVE_AND_46TH_AVE": [37.780041,-122.50744],
"POINT_LOBOS_AVE_AND_46TH_AVE": [37.779916,-122.507394],
"POINT_LOBOS_AVE_AND_47TH_AVE": [37.77999,-122.50847],
"POINT_LOBOS_AVE_AND_48TH_AVE": [37.779773,-122.509595],
"POINT_LOBOS_AVE_AND_EL_CAMINO_DEL_MAR": [37.779888,-122.509905],
"POINT_LOBOS_AVE_AND_MERRIE_WAY": [37.779031,-122.512047],
"QUINTARA_ST_AND_12TH_AVE": [37.749039,-122.468369],
"QUINTARA_ST_AND_12TH_AVE": [37.74887,-122.468563],
"QUINTARA_ST_AND_16TH_AVE": [37.74872,-122.47298],
"QUINTARA_ST_AND_17TH_AVE": [37.748806,-122.474086],
"QUINTARA_ST_AND_17TH_AVE": [37.74867,-122.47408],
"QUINTARA_ST_AND_19TH_AVE": [37.74871,-122.47584],
"QUINTARA_ST_AND_19TH_AVE": [37.74858,-122.47622],
"QUINTARA_ST_AND_22ND_AVE": [37.74855,-122.47917],
"QUINTARA_ST_AND_22ND_AVE": [37.74845,-122.47943],
"QUINTARA_ST_AND_24TH_AVE": [37.74846,-122.48131],
"QUINTARA_ST_AND_24TH_AVE": [37.74836,-122.48157],
"QUINTARA_ST_AND_26TH_AVE": [37.74838,-122.48345],
"QUINTARA_ST_AND_26TH_AVE": [37.748277,-122.483469],
"QUINTARA_ST_AND_27TH_AVE": [37.74832,-122.48458],
"QUINTARA_ST_AND_27TH_AVE": [37.74822,-122.48477],
"QUINTARA_ST_AND_28TH_AVE": [37.74827,-122.4856],
"QUINTARA_ST_AND_28TH_AVE": [37.74816,-122.48586],
"QUINTARA_ST_AND_29TH_AVE": [37.74822,-122.48666],
"QUINTARA_ST_AND_29TH_AVE": [37.74812,-122.48692],
"QUINTARA_ST_AND_31ST_AVE": [37.74814,-122.48881],
"QUINTARA_ST_AND_31ST_AVE": [37.748,-122.48905],
"QUINTARA_ST_AND_33RD_AVE": [37.74805,-122.49095],
"QUINTARA_ST_AND_33RD_AVE": [37.74791,-122.49121],
"QUINTARA_ST_AND_35TH_AVE": [37.74796,-122.4931],
"QUINTARA_ST_AND_35TH_AVE": [37.74783,-122.49334],
"QUINTARA_ST_AND_36TH_AVE": [37.747765,-122.494399],
"QUINTARA_ST_AND_39TH_AVE": [37.74763,-122.49763],
"QUINTARA_ST_AND_41ST_AVE": [37.74768,-122.49952],
"QUINTARA_ST_AND_41ST_AVE": [37.74754,-122.49981],
"QUINTARA_ST_AND_43RD_AVE": [37.747575,-122.501938],
"QUINTARA_ST_AND_44TH_AVE": [37.74742,-122.50304],
"QUINTARA_ST_AND_46TH_AVE": [37.74743,-122.50487],
"QUINTARA_ST_AND_48TH_AVE": [37.74734,-122.507],
"QUINTARA_ST_AND_CRAGMONT_AVE": [37.749093,-122.467681],
"QUINTARA_ST_AND_CRAGMONT_AVE": [37.748977,-122.467051],
"QUINTARA_ST_AND_FUNSTON_AVE": [37.748985,-122.469423],
"QUINTARA_ST_AND_FUNSTON_AVE": [37.748834,-122.46964],
"RANDOLPH_ST_AND_ARCH_ST": [37.714342,-122.466982],
"RANDOLPH_ST_AND_ARCH_ST": [37.714201,-122.467218],
"RANDOLPH_ST_AND_BRIGHT_ST": [37.714348,-122.463392],
"RANDOLPH_ST_AND_BRIGHT_ST": [37.71424,-122.46361],
"RANDOLPH_ST_AND_BYXBEE_ST": [37.714761,-122.470248],
"RANDALL_ST_AND_WHITNEY_ST": [37.7397,-122.42757],
"RAYMOND_AVE_AND_ALPHA_ST": [37.71257,-122.40515],
"ROBINSON_ST/BLDG_152": [37.72859,-122.36519],
"ROBINSON_ST/BLDG_152": [37.72876,-122.36559],
"RICHARDSON_AVE_AND_FRANCISCO_ST": [37.800408,-122.447447],
"RICHARDSON_AVE_AND_FRANCISCO_ST": [37.800328,-122.446954],
"LAGUNA_HONDA_HOSPITAL/E_PARKNG_LOT": [37.7478,-122.45466],
"REDDY_ST_AND_THORNTON_AVE": [37.73098,-122.39504],
"REDDY_ST_AND_WILLIAMS_AVE": [37.72979,-122.3954],
"176_RHODE_ISLAND_ST": [37.75617,-122.401842],
"RHODE_ISLAND_ST_AND_15TH_ST": [37.767466,-122.402912],
"RHODE_ISLAND_ST_AND_15TH_ST": [37.767315,-122.402729],
"RHODE_ISLAND_ST_AND_16TH_ST": [37.766324,-122.402627],
"RHODE_ISLAND_ST_AND_16TH_ST": [37.766164,-122.402799],
"RHODE_ISLAND_ST_AND_17TH_ST": [37.76487,-122.402673],
"RHODE_ISLAND_ST_AND_18TH_ST": [37.761988,-122.4024],
"RHODE_ISLAND_ST_AND_19TH_ST": [37.760953,-122.402298],
"RHODE_ISLAND_ST_AND_20TH_ST": [37.75959,-122.40201],
"RHODE_ISLAND_ST_AND_20TH_ST": [37.759436,-122.402161],
"RHODE_ISLAND_ST_AND_22ND_ST": [37.756884,-122.401911],
"RHODE_ISLAND_ST_AND_23RD_ST": [37.754332,-122.401672],
"RHODE_ISLAND_ST_AND_24TH_ST": [37.753386,-122.401569],
"RHODE_ISLAND_ST_AND_25TH_ST": [37.75211,-122.401467],
"RHODE_ISLAND_ST_AND_26TH_ST": [37.750727,-122.401342],
"RHODE_ISLAND_ST_AND_ALAMEDA_ST": [37.768742,-122.403038],
"RHODE_ISLAND_ST_AND_ALAMEDA_ST": [37.768573,-122.402843],
"RHODE_ISLAND_ST_AND_MARIPOSA_ST": [37.763264,-122.402525],
"RHODE_ISLAND_ST_AND_SOUTHERN_HEIGHTS_AVE": [37.758499,-122.40207],
"RICHLAND_AVE_AND_ANDOVER_ST": [37.73564,-122.41701],
"RICHLAND_AVE_AND_MISSION_ST": [37.73621,-122.42433],
"RICHLAND_AVE_AND_MURRAY_ST": [37.73579,-122.42006],
"RIPLEY_ST_AND_ALABAMA_ST": [37.744368,-122.410465],
"RIPLEY_ST_AND_ALABAMA_ST": [37.74428,-122.41051],
"RIPLEY_ST_AND_FOLSOM_ST": [37.74418,-122.41315],
"RIPLEY_ST_AND_FOLSOM_ST": [37.74414,-122.41301],
"ROUSSEAU_ST_AND_CAYUGA_AVE": [37.731399,-122.429647],
"RIGHT_OF_WAY/18TH_ST": [37.761192,-122.428184],
"RIGHT_OF_WAY/20TH_ST": [37.758264,-122.427924],
"RIGHT_OF_WAY/20TH_ST": [37.758229,-122.427795],
"RIGHT_OF_WAY/21ST_ST": [37.756643,-122.426922],
"RIGHT_OF_WAY/21ST_ST": [37.756436,-122.426822],
"RIGHT_OF_WAY/22ND_ST": [37.754607,-122.42775],
"RIGHT_OF_WAY/EUCALYPTUS_DR": [37.73119,-122.47435],
"RIGHT_OF_WAY/EUCALYPTUS_DR": [37.730987,-122.474366],
"RIGHT_OF_WAY/LIBERTY_ST": [37.757451,-122.426999],
"RIGHT_OF_WAY/LIBERTY_ST": [37.757239,-122.426867],
"RIGHT_OF_WAY/OCEAN_AVE": [37.732022,-122.473719],
"RIGHT_OF_WAY/OCEAN_AVE": [37.731808,-122.473815],
"WEST_PORTAL_AVE_AND_SLOAT_BLVD": [37.734298,-122.47189],
"WEST_PORTAL_AVE_AND_SLOAT_BLVD": [37.734299,-122.471956],
"REPOSA_WAY_AND_MYRA_WAY": [37.74018,-122.45048],
"REPOSA_WAY_AND_MYRA_WAY": [37.740198,-122.450609],
"REPOSA_WAY_AND_TERESITA_BLVD": [37.740823,-122.449361],
"414_ROOSEVELT_WAY": [37.764495,-122.443299],
"415_ROOSEVELT_WAY": [37.764495,-122.443138],
"ROOSEVELT_WAY_AND_14TH_ST": [37.767162,-122.437225],
"ROOSEVELT_WAY_AND_15TH_ST": [37.766493,-122.439505],
"ROOSEVELT_WAY_AND_17TH_ST": [37.76197,-122.445373],
"ROOSEVELT_WAY_AND_17TH_ST": [37.761952,-122.445213],
"ROOSEVELT_WAY_AND_CLIFFORD_TER": [37.76373,-122.44291],
"ROOSEVELT_WAY_AND_CLIFFORD_TER": [37.76373,-122.44301],
"ROOSEVELT_WAY_AND_LOWER_TER": [37.76342,-122.4437],
"ROOSEVELT_WAY_AND_LOWER_TER": [37.763237,-122.443792],
"ROOSEVELT_WAY_AND_MUSEUM_WAY": [37.76536,-122.44102],
"RUSSIA_AVE_AND_MOSCOW_ST": [37.71814,-122.42985],
"RUSSIA_AVE_AND_MOSCOW_ST": [37.71817,-122.43012],
"RUTLAND_ST_AND_LELAND_AVE": [37.712451,-122.407389],
"RUTLAND_ST_AND_SUNNYDALE_AVE": [37.709944,-122.408696],
"RIVERA_ST_AND_37TH_AVE": [37.74585,-122.49536],
"RIVERA_ST_AND_46TH_AVE": [37.74543,-122.50504],
"RIVERA_ST_AND_48TH_AVE": [37.74535,-122.5067],
"REVERE_AVE_AND_3RD_ST": [37.73241,-122.39135],
"REVERE_AVE_AND_3RD_ST": [37.7322,-122.39123],
"REVERE_AVE_AND_INGALLS_ST": [37.7285,-122.38469],
"REVERE_AVE_AND_JENNINGS_ST": [37.72953,-122.3863],
"REVERE_AVE_AND_JENNINGS_ST": [37.72956,-122.38656],
"REVERE_AVE_AND_LANE_ST": [37.73165,-122.39004],
"REVERE_AVE_AND_LANE_ST": [37.73169,-122.39029],
"SAN_JOSE_AVE_AND_BROAD_ST": [37.71331,-122.45344],
"SAN_JOSE_AVE_AND_BROAD_ST": [37.7133,-122.45315],
"SAN_JOSE_AVE_AND_FARALLONES_ST": [37.714153,-122.452148],
"SAN_JOSE_AVE_AND_FARALLONES_ST": [37.713952,-122.452279],
"SAN_JOSE_AVE_AND_FARALLONES_ST": [37.71407,-122.45208],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720827,-122.446474],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720467,-122.446695],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720007,-122.447184],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720685,-122.446772],
"SAN_JOSE_AVE_AND_HAVELOCK_ST": [37.72683,-122.44163],
"SAN_JOSE_AVE_AND_LAKEVIEW_AVE": [37.71626,-122.450334],
"SAN_JOSE_AVE_AND_LAKEVIEW_AVE": [37.716083,-122.450435],
"SAN_JOSE_AVE_AND_MT_VERNON_AVE": [37.718516,-122.448662],
"SAN_JOSE_AVE_AND_MT_VERNON_AVE": [37.718284,-122.448593],
"SAN_JOSE_AVE_AND_NIAGRA_AVE": [37.719507,-122.447459],
"SAN_JOSE_AVE_AND_NIAGRA_AVE": [37.71969,-122.44754],
"SAN_JOSE_AVE_AND_NIAGRA_AVE": [37.719395,-122.447611],
"SAN_JOSE_AVE_AND_NANTUCKET_AVE": [37.72774,-122.44101],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.72322,-122.44441],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.723085,-122.444699],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.722862,-122.44479],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.722933,-122.444894],
"SAN_JOSE_AVE_AND_RANDALL_ST": [37.739741,-122.424157],
"SAN_JOSE_AVE_AND_RANDOLPH_ST": [37.73973,-122.42402],
"SAN_JOSE_AVE_AND_RANDOLPH_ST": [37.73956,-122.42442],
"SAN_JOSE_AVE_AND_RANDALL_ST": [37.739385,-122.42432],
"SAN_JOSE_AVE_AND_SAN_JUAN_AVE": [37.72715,-122.4412],
"SAN_JOSE_AVE_AND_SADOWA_ST": [37.71322,-122.45593],
"SAN_JOSE_AVE_AND_SICKLES_AVE": [37.7112,-122.455945],
"SAN_JOSE_AVE_AND_SANTA_ROSA_AVE": [37.728991,-122.439922],
"SAN_JOSE_AVE_AND_SANTA_ROSA_AVE": [37.728996,-122.440016],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.72597,-122.44211],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.725877,-122.442359],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.725681,-122.442442],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.72575,-122.44252],
"SACRAMENTO_ST_AND_BATTERY_ST": [37.79418,-122.400282],
"SACRAMENTO_ST_AND_BUCHANAN_ST": [37.790316,-122.430617],
"SACRAMENTO_ST_AND_BUCHANAN_ST": [37.790194,-122.430855],
"SACRAMENTO_ST_AND_CHERRY_ST": [37.786908,-122.45656],
"SACRAMENTO_ST_AND_DAVIS_ST": [37.7945,-122.39761],
"SACRAMENTO_ST_AND_FILLMORE_ST": [37.789861,-122.434114],
"SACRAMENTO_ST_AND_FILLMORE_ST": [37.789816,-122.433988],
"SACRAMENTO_ST_AND_FRANKLIN_ST": [37.79115,-122.424037],
"SACRAMENTO_ST_AND_GOUGH_ST": [37.790887,-122.426132],
"SACRAMENTO_ST_AND_GRANT_AVE": [37.793411,-122.406306],
"SACRAMENTO_ST_AND_HYDE_ST": [37.79197,-122.417445],
"SACRAMENTO_ST_AND_JONES_ST": [37.792396,-122.414161],
"SACRAMENTO_ST_AND_KEARNY_ST": [37.793575,-122.404846],
"SACRAMENTO_ST_AND_LARKIN_ST": [37.791721,-122.419531],
"SACRAMENTO_ST_AND_LEAVENWORTH_ST": [37.792183,-122.415755],
"SACRAMENTO_ST_AND_LAGUNA_ST": [37.790526,-122.42896],
"SACRAMENTO_ST_AND_LAGUNA_ST": [37.79036,-122.429185],
"SACRAMENTO_ST_AND_MONTGOMERY_ST": [37.793842,-122.403068],
"SACRAMENTO_ST_AND_MONTGOMERY_ST": [37.793779,-122.403221],
"SACRAMENTO_ST_AND_OCTAVIA_ST": [37.790709,-122.427502],
"SACRAMENTO_ST_AND_OCTAVIA_ST": [37.79068,-122.427138],
"SACRAMENTO_ST_AND_POLK_ST": [37.791516,-122.421146],
"SACRAMENTO_ST_AND_POWELL_ST": [37.793043,-122.409116],
"SACRAMENTO_ST_AND_PRESIDIO_AVE": [37.788095,-122.447011],
"SACRAMENTO_ST_AND_SANSOME_ST": [37.79403,-122.401551],
"SACRAMENTO_ST_AND_SPROULE_LN": [37.792673,-122.411864],
"SACRAMENTO_ST_AND_STOCKTON_ST": [37.793236,-122.407591],
"SACRAMENTO_ST_AND_VAN_NESS_AVE": [37.791378,-122.422286],
"SACRAMENTO_ST_AND_WALNUT_ST": [37.788026,-122.447979],
"SACRAMENTO_ST_AND_WEBSTER_ST": [37.790107,-122.432226],
"SACRAMENTO_ST_AND_WEBSTER_ST": [37.789987,-122.4325],
"274_SAGAMORE_ST": [37.71144,-122.46156],
"SAGAMORE_ST_AND_CAPITOL_AVE": [37.71149,-122.45888],
"SAGAMORE_ST_AND_CAPITOL_AVE": [37.71129,-122.45913],
"SAGAMORE_ST_AND_ORIZABA_AVE": [37.71128,-122.46198],
"SAGAMORE_ST_AND_PLYMOUTH_AVE": [37.71155,-122.45608],
"SANSOME_ST_AND_CALIFORNIA_ST": [37.793305,-122.401085],
"SANSOME_ST_AND_CALIFORNIA_ST": [37.79318,-122.40122],
"SANSOME_ST_AND_CLAY_ST": [37.79447,-122.40149],
"SANSOME_ST_AND_FILBERT_ST": [37.80234,-122.40294],
"SANSOME_ST_AND_LOMBARD_ST": [37.80393,-122.40325],
"SANSOME_ST_AND_PACIFIC_AVE": [37.79778,-122.40202],
"SANSOME_ST_AND_PINE_ST": [37.79202,-122.40086],
"SANSOME_ST_AND_SACRAMENTO_ST": [37.794055,-122.401314],
"SANSOME_ST_AND_SUTTER_ST": [37.79034,-122.40061],
"SANSOME_ST_AND_UNION_ST": [37.80142,-122.40276],
"SANSOME_ST_AND_VALLEJO_ST": [37.79967,-122.4024],
"SANSOME_ST_AND_WASHINGTON_ST": [37.79606,-122.40166],
"SANTOS_ST_AND_BLYTHDALE_AVE": [37.71062,-122.41878],
"SANTOS_ST_AND_BROOKDALE_AVE": [37.711696,-122.418864],
"SANTOS_ST_AND_BROOKDALE_AVE": [37.711857,-122.418681],
"SANTOS_ST_AND_BROOKDALE_AVE": [37.711714,-122.418876],
"SANTOS_ST_AND_BROOKDALE_AVE": [37.71171,-122.41885],
"SANTOS_ST_AND_GENEVA_AVE": [37.70864,-122.41987],
"SANTOS_ST_AND_GENEVA_AVE": [37.7085,-122.42008],
"SANTOS_ST_AND_VELASCO_AVE": [37.709867,-122.4193],
"SANTOS_ST_AND_VELASCO_AVE": [37.710028,-122.419426],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720524,-122.446657],
"3800_SAN_BRUNO_AVE": [37.71479,-122.40057],
"3800_SAN_BRUNO_AVE": [37.71479,-122.40057],
"3801_SAN_BRUNO_AVE": [37.71467,-122.40046],
"3947_SAN_BRUNO_AVE": [37.71424,-122.4019],
"SAN_BRUNO_AVE_AND_ARLETA_AVE": [37.712289,-122.402419],
"SAN_BRUNO_AVE_AND_ARLETA_AVE": [37.71245,-122.40259],
"SAN_BRUNO_AVE_AND_BACON_ST": [37.727975,-122.40368],
"SAN_BRUNO_AVE_AND_BACON_ST": [37.72797,-122.40367],
"SAN_BRUNO_AVE_AND_BACON_ST": [37.72733,-122.40355],
"SAN_BRUNO_AVE_AND_BACON_ST": [37.72752,-122.403647],
"SAN_BRUNO_AVE_AND_DWIGHT_ST": [37.72408,-122.4022],
"SAN_BRUNO_AVE_AND_FELTON_ST": [37.73011,-122.4047],
"SAN_BRUNO_AVE_AND_MANSELL_ST": [37.721478,-122.400948],
"SAN_BRUNO_AVE_AND_MANSELL_ST": [37.721604,-122.401223],
"SAN_BRUNO_AVE_AND_PAUL_AVE": [37.72418,-122.4021],
"SAN_BRUNO_AVE_AND_PAUL_AVE": [37.723647,-122.401863],
"SAN_BRUNO_AVE_AND_SILVER_AVE": [37.732384,-122.405523],
"SAN_BRUNO_AVE_AND_SILVER_AVE": [37.73217,-122.40556],
"SAN_BRUNO_AVE_AND_SOMERSET_ST": [37.71384,-122.40213],
"SAN_BRUNO_AVE_AND_THORNTON_AVE": [37.73026,-122.40462],
"SAN_BRUNO_AVE_AND_WARD_ST": [37.71938,-122.40042],
"SAN_BRUNO_AVE_AND_WARD_ST": [37.71905,-122.40049],
"SAN_BRUNO_AVE_AND_WILDE_AVE": [37.717,-122.39984],
"SAN_BRUNO_AVE_AND_WILDE_AVE": [37.71672,-122.39993],
"SAN_BRUNO_AVE_AND_WOOLSEY_ST": [37.72531,-122.40271],
"SAN_BRUNO_AVE_AND_WAYLAND_ST": [37.72637,-122.40301],
"SANTA_CLARA_AVE_AND_MONTEREY_BLVD": [37.733202,-122.465798],
"SANTA_CLARA_AVE_AND_SAINT_FRANCIS_BLVD": [37.734861,-122.466154],
"SCOTT_ST_AND_NORTH_POINT_ST": [37.80308,-122.44183],
"SOUTHERN_HEIGHTS_AVE_AND_DE_HARO_ST": [37.7581,-122.4008],
"SOUTHERN_HEIGHTS_AVE_AND_RHODE_ISLAND_ST": [37.75839,-122.40177],
"SOUTHERN_HEIGHTS_AVE_AND_DE_HARO_ST": [37.75814,-122.40112],
"SHRADER_ST_AND_GROVE_ST": [37.77403,-122.45285],
"SHRADER_ST_AND_HAIGHT_ST": [37.769313,-122.451756],
"SCHWERIN_ST_AND_GARRISON_AVE": [37.70931,-122.412],
"SCHWERIN_ST_AND_GARRISON_AVE": [37.70906,-122.41198],
"SCHWERIN_ST_AND_GENEVA_AVE": [37.706528,-122.413359],
"SCHWERIN_ST_AND_MACDONALD_AVE": [37.70709,-122.41293],
"SCHWERIN_ST_AND_SUNNYDALE_AVE": [37.71049,-122.41136],
"SCHWERIN_ST_AND_SUNNYDALE_AVE": [37.71036,-122.41151],
"SCHWERIN_ST_AND_VELASCO_AVE": [37.70826,-122.41234],
"SCHWERIN_ST_AND_VELASCO_AVE": [37.70813,-122.41254],
"SICKLES_AVE_AND_ALEMANY_BLVD": [37.71038,-122.45466],
"SICKLES_AVE_AND_ALEMANY_BLVD": [37.71029,-122.45478],
"WEST_PORTAL_STATION_INBOUND": [37.741156,-122.465523],
"SILVER_AVE_AND_ALEMANY_BLVD": [37.729794,-122.433256],
"SILVER_AVE_AND_ALEMANY_BLVD": [37.729589,-122.433175],
"SILVER_AVE_AND_AUGUSTA_ST": [37.734586,-122.402188],
"SILVER_AVE_AND_BOYLSTON_ST": [37.730913,-122.410839],
"SILVER_AVE_AND_BAY_SHORE_BLVD": [37.733052,-122.404365],
"SILVER_AVE_AND_CAMBRIDGE_ST": [37.729131,-122.419396],
"SILVER_AVE_AND_CAMBRIDGE_ST": [37.729015,-122.419167],
"SILVER_AVE_AND_CHARTER_OAK_AVE": [37.733275,-122.404297],
"SILVER_AVE_AND_CONGDON_ST": [37.728713,-122.425868],
"SILVER_AVE_AND_CONGDON_ST": [37.728561,-122.426085],
"SILVER_AVE_AND_CRAUT_ST": [37.72857,-122.42812],
"SILVER_AVE_AND_DARTMOUTH_ST": [37.729932,-122.412981],
"SILVER_AVE_AND_DARTMOUTH_ST": [37.729843,-122.413611],
"SILVER_AVE_AND_GAMBIER_ST": [37.7289,-122.422569],
"SILVER_AVE_AND_GAMBIER_ST": [37.728748,-122.422786],
"SILVER_AVE_AND_HOLYOKE_ST": [37.730967,-122.410197],
"SILVER_AVE_AND_LEDYARD_ST": [37.734167,-122.402566],
"SILVER_AVE_AND_LISBON_ST": [37.728473,-122.428789],
"SILVER_AVE_AND_MERRILL_ST": [37.7315,-122.40885],
"SILVER_AVE_AND_MERRILL_ST": [37.731332,-122.408994],
"SILVER_AVE_AND_MISSION_ST": [37.728901,-122.4314],
"SILVER_AVE_AND_MISSION_ST": [37.728776,-122.431114],
"SILVER_AVE_AND_MISSION_ST": [37.72866,-122.431217],
"SILVER_AVE_AND_PALOU_AVE": [37.7371,-122.39663],
"SILVER_AVE_AND_PRINCETON_ST": [37.729014,-122.416109],
"SILVER_AVE_AND_PRINCETON_ST": [37.728827,-122.416269],
"SILVER_AVE_AND_REVERE_AVE": [37.736316,-122.398624],
"SILVER_AVE_AND_REVERE_AVE": [37.736361,-122.398888],
"SILVER_AVE_AND_SAN_BRUNO_AVE": [37.73241,-122.405672],
"SILVER_AVE_AND_SAN_BRUNO_AVE": [37.732446,-122.405683],
"SILVER_AVE_AND_TOPEKA_AVE": [37.735335,-122.400664],
"SILVER_AVE_AND_TOPEKA_AVE": [37.735273,-122.401065],
"STARR_KING_WAY_AND_GOUGH_ST": [37.78505,-122.424085],
"SKYVIEW_WAY_AND_AQUAVISTA_WAY": [37.751218,-122.450094],
"SKYVIEW_WAY_AND_CITY_VIEW_WAY": [37.748925,-122.450449],
"SKYVIEW_WAY_AND_GLENVIEW_DR": [37.749942,-122.450335],
"SKYLINE_BLVD_AND_ZOO_RD": [37.728222,-122.501695],
"SKYLINE_BLVD_AND_HARDING_RD": [37.726758,-122.50253],
"SKYLINE_BLVD_AND_HARDING_RD": [37.726392,-122.502449],
"SKYLINE_BLVD_AND_LAKE_MERCED_BLVD": [37.731149,-122.499223],
"SKYLINE_BLVD_AND_SLOAT_BLVD": [37.733542,-122.496636],
"SKYLINE_BLVD_AND_SLOAT_BLVD": [37.733595,-122.496842],
"SLOAT_BLVD_AND_19TH_AVE": [37.73478,-122.474493],
"SLOAT_BLVD_AND_19TH_AVE": [37.734494,-122.475272],
"SLOAT_BLVD_AND_21ST_AVE": [37.734752,-122.47738],
"SLOAT_BLVD_AND_21ST_AVE": [37.734485,-122.477242],
"SLOAT_BLVD_AND_23RD_AVE": [37.734404,-122.479625],
"SLOAT_BLVD_AND_26TH_AVE": [37.734287,-122.48218],
"SLOAT_BLVD_AND_34TH_AVE": [37.734141,-122.491607],
"SLOAT_BLVD_AND_36TH_AVE": [37.734042,-122.493646],
"SLOAT_BLVD_AND_36TH_AVE": [37.73378,-122.49345],
"SLOAT_BLVD_AND_37TH_AVE": [37.73373,-122.494597],
"SLOAT_BLVD_AND_39TH_AVE": [37.733907,-122.496773],
"SLOAT_BLVD_AND_41ST_AVE": [37.734567,-122.499294],
"SLOAT_BLVD_AND_41ST_AVE": [37.73413,-122.498961],
"SLOAT_BLVD_AND_43RD_AVE": [37.735387,-122.501345],
"SLOAT_BLVD_AND_43RD_AVE": [37.735012,-122.500749],
"SLOAT_BLVD_AND_45TH_AVE": [37.7356,-122.503407],
"SLOAT_BLVD_AND_45TH_AVE": [37.735368,-122.502777],
"SLOAT_BLVD_AND_47TH_AVE": [37.735563,-122.505366],
"SLOAT_BLVD_AND_47TH_AVE": [37.735528,-122.505354],
"SLOAT_BLVD_AND_CLEARFIELD_DR": [37.733847,-122.491595],
"SLOAT_BLVD_AND_CONSTANSO_WAY": [37.73424,-122.489259],
"SLOAT_BLVD_AND_CRESTLAKE_DR": [37.734653,-122.480061],
"SLOAT_BLVD_AND_EL_MIRASOL_PL": [37.734375,-122.486235],
"SLOAT_BLVD_AND_EVERGLADE_DR": [37.733955,-122.489683],
"SLOAT_BLVD_AND_FOREST_VIEW_DR": [37.734215,-122.483944],
"SLOAT_BLVD_AND_PARAISO_PL": [37.734555,-122.482237],
"SLOAT_BLVD_AND_SKYLINE_BLVD": [37.733702,-122.496819],
"SLOAT_BLVD_AND_SYLVAN_DR": [37.734125,-122.485834],
"SLOAT_BLVD_AND_VALE_AVE": [37.734483,-122.483955],
"SLOAT_BLVD_AND_WEST_PORTAL_AVE": [37.73478,-122.47187],
"SLOAT_BLVD_AND_WEST_PORTAL_AVE": [37.734575,-122.471881],
"SANCHEZ_ST_AND_15TH_ST": [37.76628,-122.43101],
"SANTIAGO_ST_AND_14TH_AVE": [37.74508,-122.47049],
"SANTIAGO_ST_AND_17TH_AVE": [37.74507,-122.4735],
"SOUTH_HILL_BLVD_AND_CHICAGO_WAY": [37.710708,-122.431507],
"SOUTH_HILL_BLVD_AND_PRAGUE_ST": [37.712153,-122.432183],
"SOUTH_HILL_BLVD_AND_ROLPH_ST": [37.711234,-122.431771],
"SOUTH_HILL_BLVD_AND_ROLPH_ST": [37.711698,-122.432103],
"SOUTH_VAN_NESS_AVE_AND_MISSION_ST": [37.773316,-122.418622],
"SPEAR_AVE_AND_COCHRANE_ST": [37.72533,-122.36793],
"SPEAR_ST_AND_MARKET_ST": [37.793589,-122.395548],
"STANYAN_ST_AND_CARL_ST": [37.76554,-122.45284],
"STANYAN_ST_AND_CARL_ST": [37.76533,-122.45269],
"STANYAN_ST_AND_FREDERICK_ST": [37.766449,-122.452914],
"STANYAN_ST_AND_FULTON_ST": [37.774604,-122.454714],
"STANYAN_ST_AND_HAYES_ST": [37.772819,-122.454186],
"STANYAN_ST_AND_HAYES_ST": [37.772766,-122.454335],
"STANYAN_ST_AND_OAK_ST": [37.770856,-122.453785],
"STANYAN_ST_AND_WALLER_ST": [37.768331,-122.453464],
"ST_CHARLES_AVE_AND_ALEMANY_BLVD": [37.71028,-122.46933],
"ST_CHARLES_AVE_AND_BELLE_AVE": [37.70874,-122.46932],
"STEINER_ST_AND_CALIFORNIA_ST": [37.788844,-122.435568],
"STEINER_ST_AND_GREEN_ST": [37.795859,-122.436863],
"STEINER_ST_AND_GREEN_ST": [37.795937,-122.437037],
"STEINER_ST_AND_SACRAMENTO_ST": [37.789329,-122.435556],
"STEINER_ST_AND_UNION_ST": [37.796785,-122.437054],
"STEINER_ST_AND_UNION_ST": [37.796627,-122.437137],
"STEINER_ST_AND_VALLEJO_ST": [37.794911,-122.436669],
"STEINER_ST_AND_VALLEJO_ST": [37.794887,-122.436789],
"STEINER_ST_AND_WASHINGTON_ST": [37.791449,-122.436132],
"STEUART_ST_AND_MISSION_ST": [37.793463,-122.393404],
"STEUART_ST_AND_MISSION_ST": [37.793704,-122.393702],
"STEUART_ST_AND_MISSION_ST": [37.794141,-122.394252],
"STEUART_ST_AND_MISSION_ST": [37.793249,-122.393278],
"STEUART_ST_AND_MISSION_ST": [37.793356,-122.393255],
"STEUART_ST_AND_MISSION_ST": [37.79336,-122.39349],
"STEUART_ST_AND_MARKET_ST": [37.794427,-122.39455],
"WEST_PORTAL/SLOAT/ST_FRANCIS_CIRCLE": [37.735021,-122.471252],
"WEST_PORTAL/SLOAT/ST_FRANCIS_CIRCLE": [37.734807,-122.471618],
"SAINT_FRANCIS_BLVD_AND_SANTA_CLARA_AVE": [37.734861,-122.46636],
"SAINT_FRANCIS_BLVD_AND_SANTA_ANA_AVE": [37.734941,-122.467849],
"SAINT_FRANCIS_BLVD_AND_SANTA_ANA_AVE": [37.73479,-122.468067],
"SAINT_FRANCIS_BLVD_AND_SAN_FERNANDO_WAY": [37.734861,-122.469579],
"SAINT_FRANCIS_BLVD_AND_SAN_FERNANDO_WAY": [37.734709,-122.469797],
"STILL_ST_AND_LYELL_ST": [37.731837,-122.431319],
"STOCKTON_ST_AND_BEACH_ST": [37.8078,-122.41061],
"STOCKTON_ST_AND_CLAY_ST": [37.793736,-122.407757],
"STOCKTON_ST_AND_COLUMBUS_AVE": [37.799215,-122.408878],
"STOCKTON_ST_AND_COLUMBUS_AVE": [37.799277,-122.40905],
"STOCKTON_ST_AND_ELLIS_ST": [37.78576,-122.40624],
"STOCKTON_ST_AND_FILBERT_ST": [37.801419,-122.409461],
"STOCKTON_ST_AND_GEARY_BLVD": [37.78774,-122.406706],
"STOCKTON_ST_AND_GREENWICH_ST": [37.802347,-122.409656],
"STOCKTON_ST_AND_GREENWICH_ST": [37.80221,-122.4095],
"STOCKTON_ST_AND_LOMBARD_ST": [37.80313,-122.40969],
"STOCKTON_ST_AND_PACIFIC_AVE": [37.796244,-122.40826],
"STOCKTON_ST_AND_PACIFIC_AVE": [37.797189,-122.408604],
"STOCKTON_ST_AND_SACRAMENTO_ST": [37.793433,-122.407861],
"STOCKTON_ST_AND_SUTTER_ST": [37.789471,-122.406946],
"STOCKTON_ST_AND_SUTTER_ST": [37.789489,-122.40706],
"STOCKTON_ST_AND_UNION_ST": [37.80054,-122.40928],
"STOCKTON_ST_AND_WASHINGTON_ST": [37.795369,-122.408249],
"SUNSET_BLVD_AND_IRVING_ST": [37.762621,-122.495784],
"SUNSET_BLVD_AND_IRVING_ST": [37.762496,-122.495955],
"SUNSET_BLVD_AND_JUDAH_ST": [37.761006,-122.495851],
"SUNSET_BLVD_AND_JUDAH_ST": [37.760765,-122.495656],
"SUNSET_BLVD_AND_KIRKHAM_ST": [37.759132,-122.495713],
"SUNSET_BLVD_AND_KIRKHAM_ST": [37.758891,-122.495518],
"SUNSET_BLVD_AND_LAKE_MERCED_BLVD": [37.73034,-122.493518],
"SUNSET_BLVD_AND_LAKE_MERCED_BLVD": [37.729804,-122.493655],
"SUNSET_BLVD_AND_LAWTON_ST": [37.757267,-122.495585],
"SUNSET_BLVD_AND_LAWTON_ST": [37.757026,-122.49539],
"SUNSET_BLVD_AND_MORAGA_ST": [37.755402,-122.495458],
"SUNSET_BLVD_AND_MORAGA_ST": [37.755162,-122.495263],
"SUNSET_BLVD_AND_NORIEGA_ST": [37.753538,-122.495319],
"SUNSET_BLVD_AND_NORIEGA_ST": [37.753297,-122.495124],
"SUNSET_BLVD_AND_OCEAN_AVE": [37.732026,-122.493862],
"SUNSET_BLVD_AND_OCEAN_AVE": [37.73183,-122.493622],
"SUNSET_BLVD_AND_ORTEGA_ST": [37.751798,-122.49502],
"SUNSET_BLVD_AND_ORTEGA_ST": [37.751307,-122.495169],
"SUNSET_BLVD_AND_PACHECO_ST": [37.749808,-122.495065],
"SUNSET_BLVD_AND_PACHECO_ST": [37.749567,-122.49487],
"SUNSET_BLVD_AND_QUINTARA_ST": [37.748068,-122.494766],
"SUNSET_BLVD_AND_QUINTARA_ST": [37.747578,-122.494915],
"SUNSET_BLVD_AND_RIVERA_ST": [37.746079,-122.494799],
"SUNSET_BLVD_AND_RIVERA_ST": [37.745838,-122.494604],
"SUNSET_BLVD_AND_SLOAT_BLVD": [37.733364,-122.49368],
"SUNSET_BLVD_AND_SLOAT_BLVD": [37.732945,-122.49392],
"SUNSET_BLVD_AND_SANTIAGO_ST": [37.744223,-122.494672],
"SUNSET_BLVD_AND_SANTIAGO_ST": [37.743982,-122.494477],
"SUNSET_BLVD_AND_TARAVAL_ST": [37.742349,-122.494545],
"SUNSET_BLVD_AND_TARAVAL_ST": [37.742108,-122.49435],
"SUNSET_BLVD_AND_ULLOA_ST": [37.740243,-122.494211],
"SUNSET_BLVD_AND_ULLOA_ST": [37.740118,-122.494383],
"SUNSET_BLVD_AND_VICENTE_ST": [37.738619,-122.494279],
"SUNSET_BLVD_AND_VICENTE_ST": [37.738379,-122.494084],
"SUNSET_BLVD_AND_WAWONA_ST": [37.736764,-122.494152],
"SUNSET_BLVD_AND_WAWONA_ST": [37.736541,-122.493911],
"SUNSET_BLVD_AND_YORBA_ST": [37.734854,-122.493784],
"SUNSET_BLVD_AND_YORBA_ST": [37.734783,-122.494059],
"1725_SUNNYDALE_AVE": [37.71279,-122.41954],
"1800_SUNNYDALE_AVE": [37.712972,-122.419952],
"1900_SUNNYDALE_AVE": [37.7134,-122.42138],
"1901_SUNNYDALE_AVE": [37.71322,-122.42115],
"SUNNYDALE_AVE_AND_BAY_SHORE_BLVD": [37.708944,-122.405204],
"SUNNYDALE_AVE_AND_CORA_ST": [37.710007,-122.409521],
"SUNNYDALE_AVE_AND_CORA_ST": [37.710203,-122.409612],
"SUNNYDALE_AVE_AND_GARRISON_AVE": [37.71106,-122.41278],
"SUNNYDALE_AVE_AND_GARRISON_AVE": [37.710981,-122.413024],
"SUNNYDALE_AVE/MCLAREN_SCHOOL": [37.713704,-122.422116],
"SUNNYDALE_AVE/MCLAREN_SCHOOL": [37.713553,-122.422219],
"SUNNYDALE_AVE_AND_RUTLAND_ST": [37.70986,-122.40851],
"SUNNYDALE_AVE_AND_SANTOS_ST": [37.712419,-122.418177],
"SUNNYDALE_AVE_AND_SANTOS_ST": [37.712231,-122.417536],
"SUNNYDALE_AVE_AND_SAWYER_ST": [37.71167,-122.41495],
"SUNNYDALE_AVE_AND_SAWYER_ST": [37.71163,-122.41521],
"SUNNYDALE_AVE_AND_SCHWERIN_ST": [37.71074,-122.41162],
"SUNNYDALE_AVE_AND_SCHWERIN_ST": [37.71059,-122.4115],
"SUNNYDALE_AVE_AND_TALBERT_ST": [37.70935,-122.40669],
"SUNNYDALE_AVE_AND_TALBERT_ST": [37.70935,-122.407],
"SUTTER_ST_AND_BAKER_ST": [37.784889,-122.443067],
"SUTTER_ST_AND_BAKER_ST": [37.784766,-122.443306],
"SUTTER_ST_AND_BUCHANAN_ST": [37.786577,-122.429863],
"SUTTER_ST_AND_BUCHANAN_ST": [37.786502,-122.429608],
"SUTTER_ST_AND_DIVISADERO_ST": [37.78531,-122.439732],
"SUTTER_ST_AND_DIVISADERO_ST": [37.785259,-122.43943],
"SUTTER_ST_AND_FILLMORE_ST": [37.786158,-122.433151],
"SUTTER_ST_AND_FILLMORE_ST": [37.786086,-122.432828],
"SUTTER_ST_AND_GOUGH_ST": [37.787207,-122.424924],
"SUTTER_ST_AND_HYDE_ST": [37.788216,-122.416908],
"SUTTER_ST_AND_JONES_ST": [37.788643,-122.413618],
"SUTTER_ST_AND_KEARNY_ST": [37.789818,-122.404378],
"SUTTER_ST_AND_LARKIN_ST": [37.788011,-122.418536],
"SUTTER_ST_AND_LEAVENWORTH_ST": [37.788429,-122.415269],
"SUTTER_ST_AND_LAGUNA_ST": [37.786724,-122.428706],
"SUTTER_ST_AND_LAGUNA_ST": [37.786647,-122.428457],
"SUTTER_ST_AND_MASON_ST": [37.789062,-122.410316],
"SUTTER_ST_AND_OCTAVIA_ST": [37.786933,-122.427062],
"SUTTER_ST_AND_POLK_ST": [37.787797,-122.420198],
"SUTTER_ST_AND_POWELL_ST": [37.789266,-122.408677],
"SUTTER_ST_AND_PRESIDIO_AVE": [37.784383,-122.446175],
"SUTTER_ST_AND_SANSOME_ST": [37.790298,-122.400674],
"SUTTER_ST_AND_SCOTT_ST": [37.78552,-122.438078],
"SUTTER_ST_AND_SCOTT_ST": [37.785402,-122.438322],
"SUTTER_ST_AND_STEINER_ST": [37.785942,-122.434793],
"SUTTER_ST_AND_STEINER_ST": [37.785794,-122.435028],
"SUTTER_ST_AND_STOCKTON_ST": [37.78948,-122.407026],
"SUTTER_ST_AND_TAYLOR_ST": [37.788857,-122.411956],
"SUTTER_ST_AND_VAN_NESS_AVE": [37.78763,-122.42154],
"TARAVAL_ST_AND_17TH_AVE": [37.743204,-122.473429],
"TARAVAL_ST_AND_17TH_AVE": [37.743069,-122.47366],
"TARAVAL_ST_AND_19TH_AVE": [37.74311,-122.475444],
"TARAVAL_ST_AND_19TH_AVE": [37.742971,-122.475821],
"TARAVAL_ST_AND_22ND_AVE": [37.742967,-122.478791],
"TARAVAL_ST_AND_22ND_AVE": [37.74289,-122.478426],
"TARAVAL_ST_AND_23RD_AVE": [37.742872,-122.48045],
"TARAVAL_ST_AND_24TH_AVE": [37.742735,-122.481199],
"TARAVAL_ST_AND_26TH_AVE": [37.74278,-122.483068],
"TARAVAL_ST_AND_26TH_AVE": [37.742653,-122.483324],
"TARAVAL_ST_AND_28TH_AVE": [37.742684,-122.485212],
"TARAVAL_ST_AND_28TH_AVE": [37.74254,-122.485467],
"TARAVAL_ST_AND_30TH_AVE": [37.74259,-122.487338],
"TARAVAL_ST_AND_30TH_AVE": [37.742461,-122.487615],
"TARAVAL_ST_AND_32ND_AVE": [37.74249,-122.489489],
"TARAVAL_ST_AND_32ND_AVE": [37.742355,-122.489749],
"TARAVAL_ST_AND_35TH_AVE": [37.742354,-122.492708],
"TARAVAL_ST_AND_35TH_AVE": [37.742235,-122.492961],
"TARAVAL_ST_AND_40TH_AVE": [37.742124,-122.498055],
"TARAVAL_ST_AND_40TH_AVE": [37.74199,-122.498316],
"TARAVAL_ST_AND_42ND_AVE": [37.742021,-122.500202],
"TARAVAL_ST_AND_42ND_AVE": [37.7419,-122.500461],
"TARAVAL_ST_AND_44TH_AVE": [37.741924,-122.502346],
"TARAVAL_ST_AND_44TH_AVE": [37.741804,-122.502606],
"TARAVAL_ST_AND_46TH_AVE": [37.741823,-122.50449],
"TARAVAL_ST_AND_46TH_AVE": [37.741766,-122.504341],
"TARAVAL_ST_AND_SUNSET_BLVD": [37.742287,-122.494361],
"TARAVAL_ST_AND_SUNSET_BLVD": [37.742188,-122.49451],
"TAYLOR_ST_AND_BAY_ST": [37.805231,-122.415192],
"TAYLOR_ST_AND_BAY_ST": [37.805329,-122.415238],
"TAYLOR_ST_AND_BAY_ST": [37.805257,-122.415307],
"TAYLOR_ST_AND_COLUMBUS_AVE": [37.803758,-122.414998],
"TAYLOR_ST_AND_FRANCISCO_ST": [37.804383,-122.414952],
"TRANSBAY_TERMINAL": [37.789485,-122.396365],
"TRANSBAY_TEMPORARY_TERMINAL": [37.790759,-122.393395],
"TRANS_BAY_TERMINAL/TERMINAL_W": [37.788937,-122.40058],
"TRANS_BAY_TERMINAL/RAMP_S": [37.78965,-122.39633],
"115_TELEGRAPH_HILL_BLVD": [37.801766,-122.405677],
"225_TELEGRAPH_HILL_BLVD": [37.803006,-122.406789],
"225_TELEGRAPH_HILL_BLVD": [37.802988,-122.40664],
"TELEGRAPH_HILL_BLVD_AND_FILBERT_ST": [37.801846,-122.405735],
"TELEGRAPH_HILL_BLVD_AND_GREENWICH_ST": [37.802721,-122.406617],
"TELEGRAPH_HILL_BLVD_AND_GREENWICH_ST": [37.802605,-122.406457],
"TENNESSEE_ST_AND_18TH_ST": [37.7629,-122.389664],
"636_TERESITA_BLVD": [37.73679,-122.445672],
"636_TERESITA_BLVD": [37.736835,-122.445867],
"900_TERESITA_BLVD": [37.733953,-122.446359],
"900_TERESITA_BLVD": [37.73399,-122.44664],
"TERESITA_BLVD_AND_BELLA_VISTA_WAY": [37.7377,-122.446634],
"TERESITA_BLVD_AND_EL_SERENO_CT": [37.738931,-122.44605],
"TERESITA_BLVD_AND_EL_SERENO_CT": [37.738967,-122.446245],
"TERESITA_BLVD_AND_EVELYN_WAY": [37.743063,-122.451182],
"TERESITA_BLVD_AND_FOERSTER_ST": [37.735693,-122.446462],
"TERESITA_BLVD_AND_FOERSTER_ST": [37.734345,-122.448776],
"TERESITA_BLVD_AND_FOERSTER_ST": [37.735523,-122.446325],
"TERESITA_BLVD_AND_FOWLER_AVE": [37.743491,-122.451388],
"TERESITA_BLVD_AND_GAVIOTA_WAY": [37.739895,-122.447734],
"TERESITA_BLVD_AND_GAVIOTA_WAY": [37.73985,-122.448009],
"TERESITA_BLVD_AND_ISOLA_WAY": [37.74184,-122.450472],
"TERESITA_BLVD_AND_ISOLA_WAY": [37.741733,-122.450529],
"TERESITA_BLVD_AND_MELROSE_AVE": [37.734,-122.44558],
"TERESITA_BLVD_AND_MARIETTA_DR": [37.737477,-122.446336],
"TERESITA_BLVD_AND_MARIETTA_DR": [37.742599,-122.450655],
"TERESITA_BLVD_AND_PORTOLA_DR": [37.745079,-122.452099],
"TERESITA_BLVD_AND_REPOSA_WAY": [37.740975,-122.449223],
"TERESITA_BLVD_AND_REPOSA_WAY": [37.740707,-122.449177],
"TERESITA_BLVD_AND_STILLINGS_AVE": [37.73447,-122.445283],
"TERESITA_BLVD_AND_STILLINGS_AVE": [37.734568,-122.4455],
"TEXAS_ST_AND_SIERRA_ST": [37.75838,-122.39513],
"TEXAS_ST_AND_SIERRA_ST": [37.75826,-122.39519],
"TREASURE_ISLAND_RD/GUARD_STATION": [37.81622,-122.37144],
"TREASURE_ISLAND_RD/GUARD_STATION": [37.81602,-122.3718],
"TOLAND_ST_AND_JERROLD_AVE": [37.7439,-122.398814],
"TOLAND_ST_AND_JERROLD_AVE": [37.743936,-122.399009],
"TOLAND_ST_AND_MCKINNON_AVE": [37.742313,-122.400442],
"TOLAND_ST_AND_NEWCOMB_AVE": [37.741492,-122.400992],
"TOLAND_ST_AND_OAKDALE_AVE": [37.741073,-122.401565],
"TOWNSEND_ST_AND_3RD_ST": [37.778981,-122.392452],
"TOWNSEND_ST_AND_3RD_ST": [37.778723,-122.393037],
"TOWNSEND_ST_AND_4TH_ST": [37.77742,-122.39443],
"TOWNSEND_ST_AND_4TH_ST": [37.777189,-122.394975],
"TOWNSEND_ST_AND_4TH_ST": [37.777028,-122.395032],
"TOWNSEND_ST_AND_5TH_ST": [37.775432,-122.3972],
"TOWNSEND_ST_AND_5TH_ST": [37.775227,-122.397211],
"TOWNSEND_ST_AND_6TH_ST": [37.773675,-122.399424],
"TOWNSEND_ST_AND_6TH_ST": [37.77347,-122.399436],
"TOWNSEND_ST_AND_7TH_ST": [37.771758,-122.401695],
"TOWNSEND_ST_AND_7TH_ST": [37.771695,-122.401947],
"TOPEKA_AVE_AND_BRIDGE_VIEW_DR": [37.7333,-122.39762],
"TOPEKA_AVE_AND_NEWHALL_ST": [37.7318,-122.39555],
"TOPEKA_AVE_AND_THORNTON_AVE": [37.73117,-122.39527],
"TOPEKA_AVE_AND_VENUS_ST": [37.73201,-122.39592],
"TRUMBULL_ST_AND_CONGDON_ST": [37.73097,-122.42639],
"TRUMBULL_ST_AND_CONGDON_ST": [37.73084,-122.42624],
"TRUMBULL_ST_AND_STONEYBROOK_AVE": [37.73095,-122.42192],
"TURK_ST_AND_ARGUELLO_BLVD": [37.77715,-122.45818],
"TURK_ST_AND_BAKER_ST": [37.779288,-122.442174],
"TURK_ST_AND_BAKER_ST": [37.779163,-122.442151],
"TURK_ST_AND_BRODERICK_ST": [37.779511,-122.440295],
"TURK_ST_AND_BRODERICK_ST": [37.779359,-122.440489],
"TURK_ST_AND_CHABOT_TER": [37.778093,-122.451699],
"TURK_ST_AND_CHABOT_TER": [37.778012,-122.451367],
"TURK_ST_AND_CENTRAL_AVE": [37.778914,-122.445246],
"TURK_ST_AND_CENTRAL_AVE": [37.778762,-122.445441],
"TURK_ST_AND_HYDE_ST": [37.782621,-122.415856],
"TURK_ST_AND_JONES_ST": [37.783039,-122.412577],
"TURK_ST_AND_LARKIN_ST": [37.782461,-122.417197],
"TURK_ST_AND_LEAVENWORTH_ST": [37.782835,-122.414217],
"TURK_ST_AND_LYON_ST": [37.77911,-122.443596],
"TURK_ST_AND_LYON_ST": [37.778958,-122.443791],
"TURK_ST_AND_MASONIC_AVE": [37.778664,-122.447206],
"TURK_ST_AND_MASONIC_AVE": [37.778548,-122.447138],
"TURK_ST_AND_POLK_ST": [37.78218,-122.41926],
"TURK_ST_AND_PARKER_AVE": [37.777905,-122.453281],
"TURK_ST_AND_PARKER_AVE": [37.777754,-122.453476],
"TURK_ST_AND_ROSELYN_TER": [37.778235,-122.44959],
"TURK_ST_AND_ROSELYN_TER": [37.778351,-122.449659],
"TURK_ST_AND_STANYAN_ST": [37.777637,-122.455367],
"TURK_ST_AND_STANYAN_ST": [37.777557,-122.455035],
"TURK_ST_AND_TAYLOR_ST": [37.783387,-122.409895],
"TURK_ST_AND_VAN_NESS_AVE": [37.78195,-122.42107],
"ULLOA_ST_AND_30TH_AVE": [37.74072,-122.48722],
"ULLOA_ST_AND_FOREST_SIDE_AVE": [37.741535,-122.46847],
"ULLOA_ST_AND_FOREST_SIDE_AVE": [37.741435,-122.4688],
"ULLOA_ST_AND_LENOX_WAY": [37.741125,-122.466155],
"WEST_PORTAL_STATION": [37.740947,-122.4658],
"WEST_PORTAL_STATION": [37.740947,-122.465754],
"WEST_PORTAL_STATION": [37.741464,-122.465411],
"WEST_PORTAL_STATION": [37.740884,-122.465938],
"WEST_PORTAL_STATION": [37.740795,-122.465777],
"ULLOA_ST_AND_WEST_PORTAL_AVE": [37.74092,-122.466006],
"UNION_ST_AND_BAKER_ST": [37.795902,-122.445314],
"UNION_ST_AND_BAKER_ST": [37.79575,-122.445509],
"UNION_ST_AND_BUCHANAN_ST": [37.797513,-122.432585],
"UNION_ST_AND_BUCHANAN_ST": [37.797427,-122.432302],
"UNION_ST_AND_COLUMBUS_AVE": [37.80038,-122.41004],
"UNION_ST_AND_COLUMBUS_AVE": [37.800348,-122.410173],
"UNION_ST_AND_COLUMBUS_AVE": [37.800277,-122.41031],
"UNION_ST_AND_DIVISADERO_ST": [37.796321,-122.44199],
"UNION_ST_AND_DIVISADERO_ST": [37.79617,-122.442184],
"UNION_ST_AND_FILLMORE_ST": [37.797124,-122.435661],
"UNION_ST_AND_FILLMORE_ST": [37.797043,-122.435328],
"UNION_ST_AND_GOUGH_ST": [37.798211,-122.427177],
"UNION_ST_AND_GOUGH_ST": [37.79806,-122.427371],
"UNION_ST_AND_GRANT_AVE": [37.80068,-122.4075],
"UNION_ST_AND_GRANT_AVE": [37.8006,-122.40769],
"UNION_ST_AND_HYDE_ST": [37.799271,-122.418956],
"UNION_ST_AND_HYDE_ST": [37.79912,-122.419151],
"UNION_ST_AND_JONES_ST": [37.79969,-122.415665],
"UNION_ST_AND_JONES_ST": [37.799538,-122.41586],
"UNION_ST_AND_KEARNY_ST": [37.800909,-122.405965],
"UNION_ST_AND_KEARNY_ST": [37.800758,-122.406102],
"UNION_ST_AND_LARKIN_ST": [37.799066,-122.420607],
"UNION_ST_AND_LARKIN_ST": [37.79895,-122.420527],
"UNION_ST_AND_LEAVENWORTH_ST": [37.799449,-122.417545],
"UNION_ST_AND_LEAVENWORTH_ST": [37.799324,-122.417511],
"UNION_ST_AND_LAGUNA_ST": [37.797792,-122.430456],
"UNION_ST_AND_LAGUNA_ST": [37.797641,-122.430651],
"UNION_ST_AND_LYON_ST": [37.795599,-122.446702],
"UNION_ST_AND_MASON_ST": [37.800108,-122.412374],
"UNION_ST_AND_MASON_ST": [37.799957,-122.412569],
"UNION_ST_AND_MONTGOMERY_ST": [37.801087,-122.404474],
"UNION_ST_AND_MONTGOMERY_ST": [37.800962,-122.404508],
"UNION_ST_AND_PIERCE_ST": [37.79674,-122.438688],
"UNION_ST_AND_PIERCE_ST": [37.796589,-122.438883],
"UNION_ST_AND_POLK_ST": [37.798799,-122.422499],
"UNION_ST_AND_POLK_ST": [37.798683,-122.42243],
"UNION_ST_AND_STEINER_ST": [37.79687,-122.43714],
"UNION_ST_AND_STOCKTON_ST": [37.800366,-122.409267],
"UNION_ST_AND_TAYLOR_ST": [37.799895,-122.414025],
"UNION_ST_AND_TAYLOR_ST": [37.799743,-122.41422],
"UNION_ST_AND_VAN_NESS_AVE": [37.798585,-122.424241],
"UNION_ST_AND_VAN_NESS_AVE": [37.798469,-122.42415],
"UNIVERSITY_ST_AND_BACON_ST": [37.72514,-122.41354],
"UNIVERSITY_ST_AND_BACON_ST": [37.72499,-122.41339],
"UNIVERSITY_ST_AND_BURROWS_ST": [37.72659,-122.41414],
"UNIVERSITY_ST_AND_BURROWS_ST": [37.72647,-122.41401],
"UNIVERSITY_ST_AND_FELTON_ST": [37.72739,-122.41439],
"UNIVERSITY_ST_AND_WOOLSEY_ST": [37.72273,-122.41253],
"UNIVERSITY_ST_AND_WAYLAND_ST": [37.72393,-122.41307],
"UNIVERSITY_ST_AND_WAYLAND_ST": [37.72381,-122.4129],
"UPPER_TER_AND_BUENA_VISTA_AVE_WEST": [37.76582,-122.4428],
"UPPER_TER_AND_MASONIC_AVE": [37.76545,-122.44338],
"VAN_NESS_AVE_AND_BROADWAY": [37.79608,-122.423331],
"VAN_NESS_AVE_AND_CALIFORNIA_ST": [37.790439,-122.422261],
"VAN_NESS_AVE_AND_CHESTNUT_ST": [37.80258,-122.42464],
"VAN_NESS_AVE_AND_CHESTNUT_ST": [37.802431,-122.424905],
"VAN_NESS_AVE_AND_CHESTNUT_ST": [37.802351,-122.424848],
"VAN_NESS_AVE_AND_CLAY_ST": [37.79245,-122.4226],
"VAN_NESS_AVE_AND_EDDY_ST": [37.7832,-122.42073],
"VAN_NESS_AVE_AND_EDDY_ST": [37.7825,-122.42089],
"VAN_NESS_AVE_AND_BAY_ST": [37.804287,-122.424996],
"VAN_NESS_AVE_AND_GEARY_BLVD": [37.785683,-122.421403],
"VAN_NESS_AVE_AND_GEARY_BLVD": [37.78578,-122.42155],
"VAN_NESS_AVE_AND_GREENWICH_ST": [37.800477,-122.424298],
"VAN_NESS_AVE_AND_GREENWICH_ST": [37.800334,-122.424424],
"VAN_NESS_AVE_AND_GROVE_ST": [37.77869,-122.41982],
"VAN_NESS_AVE_AND_GROVE_ST": [37.77787,-122.41992],
"VAN_NESS_AVE_AND_JACKSON_ST": [37.794177,-122.423005],
"VAN_NESS_AVE_AND_JACKSON_ST": [37.793829,-122.423131],
"VAN_NESS_AVE_AND_MCALLISTER_ST": [37.780008,-122.42019],
"VAN_NESS_AVE_AND_MCALLISTER_ST": [37.779687,-122.420324],
"VAN_NESS_AVE_AND_MARKET_ST": [37.775216,-122.419252],
"VAN_NESS_AVE_AND_NORTH_POINT_ST": [37.805161,-122.425248],
"VAN_NESS_AVE_AND_NORTH_POINT_ST": [37.805063,-122.425351],
"VAN_NESS_AVE_AND_NORTH_POINT_ST": [37.805108,-122.425409],
"VAN_NESS_AVE_AND_OAK_ST": [37.775475,-122.419412],
"VAN_NESS_AVE_AND_OAK_ST": [37.77553,-122.41948],
"VAN_NESS_AVE_AND_O'FARRELL_ST": [37.784817,-122.421128],
"VAN_NESS_AVE_AND_O'FARRELL_ST": [37.784683,-122.421254],
"VAN_NESS_AVE_AND_PACIFIC_AVE": [37.79489,-122.4234],
"VAN_NESS_AVE_AND_PINE_ST": [37.789509,-122.422304],
"VAN_NESS_AVE_AND_POST_ST": [37.78611,-122.42133],
"VAN_NESS_AVE_AND_SACRAMENTO_ST": [37.791349,-122.422593],
"VAN_NESS_AVE_AND_SUTTER_ST": [37.78783,-122.42166],
"VAN_NESS_AVE_AND_SUTTER_ST": [37.787396,-122.421838],
"VAN_NESS_AVE_AND_TURK_ST": [37.782051,-122.420567],
"VAN_NESS_AVE_AND_UNION_ST": [37.798603,-122.424046],
"VAN_NESS_AVE_AND_UNION_ST": [37.798487,-122.423932],
"VAN_NESS_AVE_AND_VALLEJO_ST": [37.79641,-122.4237],
"VICENTE_ST_AND_30TH_AVE": [37.738765,-122.487131],
"VICENTE_ST_AND_47TH_AVE": [37.738079,-122.50531],
"VICENTE_ST_AND_WEST_PORTAL_AVE": [37.73968,-122.46677],
"VICENTE_ST_AND_WEST_PORTAL_AVE": [37.73946,-122.46659],
"VAN_DYKE_AVE_AND_JENNINGS_ST": [37.72703,-122.38854],
"VAN_DYKE_AVE_AND_JENNINGS_ST": [37.72707,-122.38883],
"VAN_DYKE_AVE_AND_KEITH_ST": [37.72808,-122.39042],
"VAN_DYKE_AVE_AND_KEITH_ST": [37.72789,-122.39027],
"VAN_DYKE_AVE_AND_LANE_ST": [37.729202,-122.392238],
"VESTA_ST_AND_PHELPS_ST": [37.73037,-122.39991],
"VISITACION_AVE_AND_BRITTON_ST": [37.712765,-122.412371],
"VISITACION_AVE_AND_BRITTON_ST": [37.71273,-122.41263],
"VISITACION_AVE_AND_BAY_SHORE_BLVD": [37.710567,-122.404493],
"VISITACION_AVE_AND_CORA_ST": [37.7117,-122.40896],
"VISITACION_AVE_AND_HAHN_ST": [37.71353,-122.41518],
"VISITACION_AVE_AND_RUTLAND_ST": [37.711488,-122.407791],
"VISITACION_AVE_AND_RUTLAND_ST": [37.71144,-122.40807],
"VISITACION_AVE_AND_SAWYER_ST": [37.713283,-122.414237],
"VISITACION_AVE_AND_SAWYER_ST": [37.71324,-122.41453],
"VISITACION_AVE_AND_SCHWERIN_ST": [37.712247,-122.410504],
"VISITACION_AVE_AND_SCHWERIN_ST": [37.71219,-122.41078],
"VALENCIA_ST_AND_14TH_ST": [37.76839,-122.42212],
"VALENCIA_ST_AND_14TH_ST": [37.76786,-122.42227],
"VALENCIA_ST_AND_15TH_ST": [37.76678,-122.42197],
"VALENCIA_ST_AND_15TH_ST": [37.76626,-122.42212],
"VALENCIA_ST_AND_16TH_ST": [37.76523,-122.42182],
"VALENCIA_ST_AND_16TH_ST": [37.76463,-122.42196],
"VALENCIA_ST_AND_17TH_ST": [37.76341,-122.42165],
"VALENCIA_ST_AND_17TH_ST": [37.76309,-122.42178],
"VALENCIA_ST_AND_18TH_ST": [37.76201,-122.42152],
"VALENCIA_ST_AND_18TH_ST": [37.76142,-122.42165],
"VALENCIA_ST_AND_19TH_ST": [37.76035,-122.42135],
"VALENCIA_ST_AND_19TH_ST": [37.75986,-122.4215],
"VALENCIA_ST_AND_20TH_ST": [37.75874,-122.4212],
"VALENCIA_ST_AND_20TH_ST": [37.75826,-122.42135],
"VALENCIA_ST_AND_21ST_ST": [37.75715,-122.42104],
"VALENCIA_ST_AND_21ST_ST": [37.75661,-122.4212],
"VALENCIA_ST_AND_22ND_ST": [37.75555,-122.42089],
"VALENCIA_ST_AND_22ND_ST": [37.75506,-122.42104],
"VALENCIA_ST_AND_23RD_ST": [37.75361,-122.42071],
"VALENCIA_ST_AND_23RD_ST": [37.7534,-122.42088],
"VALENCIA_ST_AND_24TH_ST": [37.75236,-122.42059],
"VALENCIA_ST_AND_24TH_ST": [37.75186,-122.42074],
"VALENCIA_ST_AND_25TH_ST": [37.75075,-122.42044],
"VALENCIA_ST_AND_25TH_ST": [37.75028,-122.42059],
"VALENCIA_ST_AND_26TH_ST": [37.74866,-122.42043],
"VALENCIA_ST_AND_CESAR_CHAVEZ_ST": [37.748217,-122.420213],
"VALENCIA_ST_AND_CESAR_CHAVEZ_ST": [37.747994,-122.420351],
"VALENCIA_ST_AND_DUBOCE_AVE": [37.77015,-122.4223],
"VALENCIA_ST_AND_DUBOCE_AVE": [37.769801,-122.422451],
"VALENCIA_ST_AND_DUNCAN_ST": [37.746655,-122.420076],
"VALENCIA_ST_AND_DUNCAN_ST": [37.74674,-122.42024],
"VALENCIA_ST_AND_MCCOPPIN_ST": [37.77133,-122.4226],
"VERMONT_ST_AND_17TH_ST": [37.76456,-122.40444],
"VERMONT_ST_AND_18TH_ST": [37.76221,-122.40433],
"VERMONT_ST_AND_18TH_ST": [37.76202,-122.40418],
"VERMONT_ST_AND_19TH_ST": [37.76095,-122.4042],
"VERMONT_ST_AND_19TH_ST": [37.76074,-122.40406],
"VERMONT_ST_AND_20TH_ST": [37.75966,-122.40406],
"VERMONT_ST_AND_MARIPOSA_ST": [37.7633,-122.40429],
"VERMONT_ST_AND_MARIPOSA_ST": [37.76324,-122.40443],
"WEST_PORTAL_AVE_AND_14TH_AVE": [37.737868,-122.469053],
"WEST_PORTAL_AVE_AND_14TH_AVE": [37.7381,-122.469053],
"WEST_PORTAL_AVE_AND_14TH_AVE": [37.737859,-122.469042],
"WEST_PORTAL_AVE_AND_15TH_AVE": [37.736485,-122.470519],
"WEST_PORTAL/SLOAT/ST_FRANCIS_CIRCLE": [37.73548,-122.47112],
"WEST_PORTAL_STATION": [37.74093,-122.46565],
"WEST_PORTAL_AVE_AND_ULLOA_ST": [37.74084,-122.465743],
"WEST_PORTAL_AVE_AND_ULLOA_ST": [37.741009,-122.465858],
"WEST_PORTAL_AVE_AND_VICENTE_ST": [37.73984,-122.46698],
"WEST_PORTAL_AVE_AND_VICENTE_ST": [37.739617,-122.46698],
"WALNUT_ST_AND_CALIFORNIA_ST": [37.787492,-122.44852],
"117_WARREN_DR": [37.75368,-122.457977],
"345_WARREN_DR_E": [37.755402,-122.461312],
"400_WARREN_DR_E": [37.75691,-122.461484],
"455_WARREN_DR": [37.757722,-122.461897],
"WARREN_DR_AND_CHRISTOPHER_DR": [37.75376,-122.459971],
"WARREN_DR_AND_DEVONSHIRE_WAY": [37.754474,-122.461083],
"WARREN_DR_AND_LOCKSLEY_AVE": [37.758694,-122.463135],
"WARREN_DR_AND_OAKPARK_DR": [37.75534,-122.45635],
"WASHINGTON_ST_AND_BUCHANAN_ST": [37.791921,-122.431191],
"WASHINGTON_ST_AND_FILLMORE_ST": [37.791503,-122.434481],
"WASHINGTON_ST_AND_FRANKLIN_ST": [37.792759,-122.42461],
"WASHINGTON_ST_AND_GOUGH_ST": [37.792545,-122.42625],
"WASHINGTON_ST_AND_HYDE_ST": [37.79363,-122.41804],
"WASHINGTON_ST_AND_JONES_ST": [37.794042,-122.414693],
"WASHINGTON_ST_AND_LARKIN_ST": [37.79341,-122.4198],
"WASHINGTON_ST_AND_LEAVENWORTH_ST": [37.793828,-122.416287],
"WASHINGTON_ST_AND_LAGUNA_ST": [37.79218,-122.429116],
"WASHINGTON_ST_AND_MASON_ST": [37.79453,-122.41136],
"WASHINGTON_ST_AND_MASON_ST": [37.794442,-122.411529],
"WASHINGTON_ST_AND_POLK_ST": [37.793187,-122.421274],
"WASHINGTON_ST_AND_POWELL_ST": [37.794629,-122.410038],
"WASHINGTON_ST_AND_SANSOME_ST": [37.795733,-122.402064],
"WASHINGTON_ST_AND_TAYLOR_ST": [37.794255,-122.413008],
"WASHINGTON_ST_AND_VAN_NESS_AVE": [37.79308,-122.42243],
"WASHINGTON_ST_AND_WEBSTER_ST": [37.791716,-122.432842],
"WAWONA/46TH_AVE_/SF_ZOO": [37.736125,-122.504351],
"WOODSIDE_AVE_AND_BALCETA_AVE": [37.746489,-122.456441],
"WOODSIDE_AVE_AND_HERNANDEZ_AVE": [37.74638,-122.45535],
"WOODSIDE_AVE_AND_HERNANDEZ_AVE": [37.746283,-122.455593],
"WOODSIDE_AVE_AND_HERNANDEZ_AVE": [37.746283,-122.455548],
"WOODSIDE_AVE_AND_PORTOLA_DR": [37.745766,-122.452431],
"WOODSIDE_AVE_AND_PORTOLA_DR": [37.745623,-122.452225],
"WOODSIDE_AVE_AND_ULLOA_ST": [37.745766,-122.453829],
"WOODSIDE_AVE_AND_ULLOA_ST": [37.745695,-122.454058],
"WEBSTER_ST_AND_CHESTNUT_ST": [37.800943,-122.434502],
"356_WILDE_AVE": [37.71705,-122.40438],
"367_WILDE_AVE": [37.71687,-122.40413],
"WILDE_AVE_AND_BRUSSELS_ST": [37.716357,-122.401237],
"WILDE_AVE_AND_DELTA_ST": [37.71782,-122.40718],
"WILDE_AVE_AND_GIRARD_ST": [37.716615,-122.400252],
"WILDE_AVE_AND_GIRARD_ST": [37.716473,-122.400195],
"WILDE_AVE_AND_GOETTINGEN_ST": [37.716099,-122.4022],
"WILDE_AVE_AND_GOETTINGEN_ST": [37.716286,-122.402302],
"WINSTON_DR_AND_20TH_AVE": [37.727017,-122.475922],
"WINSTON_DR_AND_20TH_AVE": [37.726883,-122.475739],
"WINSTON_DR_AND_BUCKINGHAM_WAY": [37.72806,-122.478488],
"WINSTON_DR_AND_BUCKINGHAM_WAY": [37.727997,-122.478672],
"WINSTON_DR_AND_LAKE_MERCED_BLVD": [37.727122,-122.483299],
"WINSTON_DR_AND_LAKE_MERCED_BLVD": [37.726979,-122.48331],
"WISCONSIN_ST_AND_20TH_ST": [37.75973,-122.39911],
"WISCONSIN_ST_AND_22ND_ST": [37.75719,-122.39886],
"WISCONSIN_ST_AND_23RD_ST": [37.75485,-122.39876],
"WISCONSIN_ST_AND_23RD_ST": [37.75468,-122.39863],
"WISCONSIN_ST_AND_25TH_ST": [37.75238,-122.39841],
"WISCONSIN_ST_AND_25TH_ST": [37.752287,-122.398556],
"WISCONSIN_ST_AND_26TH_ST": [37.751279,-122.398282],
"WISCONSIN_ST_AND_CONNECTICUT_ST": [37.75355,-122.39853],
"WISCONSIN_ST_AND_CONNECTICUT_ST": [37.753447,-122.39867],
"WISCONSIN_ST_AND_CORAL_RD": [37.75346,-122.39864],
"WISCONSIN_ST_AND_MADERA_ST": [37.75577,-122.39872],
"WISCONSIN_ST_AND_MADERA_ST": [37.75591,-122.39884],
"WILLIAMS_AVE_AND_3RD_ST": [37.72938,-122.39295],
"WILLIAMS_AVE_AND_3RD_ST": [37.72925,-122.39285],
"WILLIAMS_AVE_AND_REDDY_ST": [37.72973,-122.39525],
"WOOLSEY_ST_AND_BOWDOIN_ST": [37.72349,-122.40941],
"WOOLSEY_ST_AND_BOWDOIN_ST": [37.72338,-122.40961],
"WOOLSEY_ST_AND_COLBY_ST": [37.72294,-122.41145],
"WOOLSEY_ST_AND_COLBY_ST": [37.72284,-122.41157],
"WOOLSEY_ST_AND_DARTMOUTH_ST": [37.72324,-122.41043],
"WOOLSEY_ST_AND_DARTMOUTH_ST": [37.72312,-122.4106],
"WOOLSEY_ST_AND_HOLYOKE_ST": [37.72388,-122.40763],
"WOOLSEY_ST_AND_HAMILTON_ST": [37.72374,-122.40841],
"WOOLSEY_ST_AND_HAMILTON_ST": [37.72362,-122.40864],
"WOOLSEY_ST_AND_UNIVERSITY_ST": [37.72271,-122.41238],
"WHITNEY_ST_AND_FAIRMOUNT_STREET": [37.738903,-122.427491],
"WHITNEY_YOUNG_CIR_AND_PROGRESS_ST": [37.733337,-122.383322],
"WHITNEY_YOUNG_CIR_AND_PROGRESS_ST": [37.733248,-122.383082],
"CROSS_OVER_DR_AND_FULTON_ST": [37.77235,-122.484077],
"YERBA_BUENA_AVE_AND_BRENTWOOD_AVE": [37.733604,-122.45896],
"YERBA_BUENA_AVE_AND_BRENTWOOD_AVE": [37.733702,-122.459189],
"YERBA_BUENA_AVE_AND_HAZELWOOD_AVE": [37.734559,-122.459659],
"YERBA_BUENA_AVE_AND_HAZELWOOD_AVE": [37.734389,-122.459705],
"YERBA_BUENA_AVE_AND_RAVENWOOD_DR": [37.73531,-122.46055],
"YERBA_BUENA_AVE_AND_SAINT_ELMO_WAY": [37.732623,-122.458719],
"METRO_CASTRO_STATION/OUTBOUND": [37.762683,-122.435289],
"METRO_EMBARCADERO_STATION": [37.793134,-122.396431],
"FOREST_HILL_STATION_OUTBOUND": [37.74817,-122.459192],
"METRO_MONTGOMERY_STATION/OUTBOUND": [37.788791,-122.402127],
"METRO_POWELL_STATION/OUTBOUND": [37.7843,-122.407822],
"VAN_NESS_STATION_OUTBOUND": [37.775234,-122.41934],
"METRO_CIVIC_CENTER_STATION/OUTBD": [37.778675,-122.414995],
"METRO_CHURCH_STATION/OUTBOUND": [37.767327,-122.429321],
"7TH_ST_AND_BRYANT_ST": [37.774587,-122.405005],
"4TH_ST_AND_TOWNSEND_ST": [37.77709,-122.39498],
"19TH_AVE_AND_JUNIPERO_SERRA_BLVD": [37.717371,-122.472813],
"30TH_ST_AND_CHURCH_ST": [37.7421,-122.426511],
"CYRIL_MAGNIN_ST_AND_MARKET_ST": [37.783992,-122.408066],
"AVENUE_B_AND_9TH_AVE": [37.823245,-122.374986],
"BROADWAY_AND_SANSOME_ST": [37.798401,-122.401907],
"BLANKEN_AVE_AND_GILLETTE_AVE": [37.71097,-122.39661],
"BLANKEN_AVE_AND_GILLETTE_AVE": [37.711,-122.39636],
"BLANKEN_AVE_AND_NUEVA_AVE": [37.71121,-122.39723],
"BLANKEN_AVE_AND_NUEVA_AVE": [37.71119,-122.39747],
"BLANKEN_AVE_AND_PENINSULA_AVE": [37.71159,-122.39919],
"BLANKEN_AVE_AND_PENINSULA_AVE": [37.71162,-122.39896],
"BLANKEN_AVE_AND_TUNNEL_AVE": [37.71201,-122.40092],
"CALIFORNIA_ST_AND_8TH_AVE": [37.784749,-122.46704],
"CENTRAL_AVE_AND_MCALLISTER_ST": [37.77677,-122.44496],
"CHURCH_ST_AND_19TH_ST": [37.75978,-122.42829],
"CHURCH_ST_AND_LIBERTY_ST": [37.75738,-122.42807],
"CLEMENT_ST_AND_8TH_AVE": [37.782893,-122.466422],
"CRESTLINE_DR_AND_BURNETT_AVE": [37.7493,-122.44508],
"DELTA_ST_AND_WILDE_AVE": [37.71777,-122.40745],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.795033,-122.393563],
"831_ELLSWORTH_ST": [37.73327,-122.41526],
"FOLSOM_ST_AND_2ND_ST": [37.78574,-122.39652],
"FREDERICK_ST_AND_MASONIC_ST": [37.76735,-122.444823],
"HAHN_ST_AND_VISITACION_AVE": [37.713301,-122.415486],
"LINCOLN_BLVD_AND_GIRARD_RD": [37.800604,-122.454016],
"LOMBARD_AND_RICHARDSON_AVE": [37.798668,-122.445108],
"MARIPOSA_AND_3RD_ST": [37.76436,-122.38918],
"MARKET_ST_AND_VAN_NESS_AVE": [37.775216,-122.419378],
"OAKDALE_AVE_AND_BAYSHORE_BLVD": [37.742854,-122.405051],
"OAKDALE_AVE_AND_LOOMIS_ST": [37.742528,-122.404165],
"OAKDALE_AVE_AND_MENDELL_ST": [37.734495,-122.390278],
"OAKDALE_AVE_AND_NEWHALL_ST": [37.735666,-122.392079],
"OAKDALE_AVE_AND_NEWHALL_ST": [37.735682,-122.392358],
"OCEAN_AVE_AND_GENEVA_AVE": [37.723031,-122.452453],
"POLK_ST_AND_LECH_WALESA_ST": [37.778039,-122.418214],
"POWELL_ST_AND_BEACH_ST": [37.807604,-122.412248],
"RUTLAND_ST_AND_ARLETA_AVE": [37.713852,-122.406724],
"RUTLAND_ST_AND_ARLETA_AVE": [37.7138,-122.40679],
"RUTLAND_ST_AND_CAMPBELL_AVE": [37.71534,-122.40619],
"RUTLAND_ST_AND_CAMPBELL_AVE": [37.71516,-122.40621],
"RUTLAND_ST_AND_LELAND_AVE": [37.71264,-122.40735],
"RUTLAND_ST_AND_SUNNYDALE_AVE": [37.7099,-122.408536],
"RUTLAND_ST_AND_VISITACION_AVE": [37.71156,-122.40792],
"RUTLAND_ST_AND_VISITACION_AVE": [37.71135,-122.40793],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.72307,-122.44478],
"SAN_JOSE_AVE_AND_OCEAN_AVE": [37.72282,-122.44474],
"SAN_JOSE_AVE_AND_SANTA_ROSA_AVE": [37.72904,-122.44003],
"SAN_JOSE_AVE_AND_SANTA_ROSA_AVE": [37.72881,-122.44007],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.72567,-122.44237],
"SAN_JOSE_AVE_AND_SANTA_YNEZ_AVE": [37.7259,-122.4424],
"STANYAN_ST_AND_WALLER_ST": [37.76824,-122.45334],
"TIOGA_AVE_AND_DELTA_ST": [37.71716,-122.40763],
"TIOGA_AVE_AND_RUTLAND_ST": [37.71666,-122.4058],
"UNION_ST_AND_BUCHANAN_ST": [37.797578,-122.432107],
"VISITACION_VALLEY_MIDDLE_SCHOOL": [37.71621,-122.413938],
"WEST_PORTAL_AVE_AND_ULLOA_ST": [37.740893,-122.465846],
"WILDE_AVE_AND_BRUSSELS_ST": [37.716268,-122.400974],
"WILDE_AVE_AND_RUTLAND_ST": [37.717224,-122.405451],
"WILDE_AVE_AND_RUTLAND_ST": [37.717349,-122.405211],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.721172,-122.475302],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.721244,-122.475096],
"7TH_ST_AND_16TH_ST": [37.766657,-122.395329],
"CAYUGA_AVE_AND_ONONDAGA_AVE": [37.72205,-122.43975],
"CHURCH_ST_AND_16TH_ST": [37.76439,-122.42856],
"CHURCH_ST_AND_29TH_ST": [37.7436,-122.42658],
"CHURCH_ST_AND_DAY_ST": [37.74264,-122.42662],
"CHURCH_ST_AND_MARKET_ST": [37.767509,-122.428927],
"CHURCH_ST_AND_DUBOCE_AVE": [37.76932,-122.42903],
"DUBOCE_AVE_AND_NOE_ST": [37.76922,-122.43365],
"THE_EMBARCADERO_AND_BAY_ST": [37.806788,-122.406198],
"EVANS_AVE_AND_MENDELL_ST": [37.740905,-122.384564],
"JUAN_BAUTISTA_CIR_AND_FONT_BLVD": [37.71749,-122.47744],
"JUDAH_ST_AND_9TH_AVE": [37.7621,-122.46631],
"JUDAH_ST_AND_12TH_AVE": [37.76195,-122.46952],
"JUDAH_ST_AND_15TH_AVE": [37.7618,-122.47278],
"JUDAH_ST_AND_16TH_AVE": [37.76192,-122.47367],
"JUDAH_ST_AND_19TH_AVE": [37.76161,-122.47718],
"JUDAH_ST_AND_19TH_AVE": [37.76178,-122.47684],
"JUDAH_ST_AND_23RD_AVE": [37.76158,-122.48118],
"JUDAH_ST_AND_28TH_AVE": [37.76135,-122.48652],
"JUDAH_ST_AND_28TH_AVE": [37.76118,-122.48676],
"JUDAH_ST_AND_25TH_AVE": [37.76134,-122.48355],
"JUDAH_ST_AND_31ST_AVE": [37.76121,-122.48973],
"JUDAH_ST_AND_31ST_AVE": [37.76107,-122.48949],
"JUDAH_ST_AND_34TH_AVE": [37.76107,-122.49295],
"JUDAH_ST_AND_34TH_AVE": [37.7609,-122.49318],
"JUDAH_ST_AND_SUNSET_BLVD": [37.76078,-122.49595],
"LINCOLN_BLVD_AND_STILLWELL_RD": [37.793569,-122.480487],
"MISSION_ST_AND_16TH_ST": [37.764945,-122.419583],
"MISSION_ST_AND_SAN_JOSE_AVE": [37.705997,-122.461372],
"JUDAH_ST_AND_43RD_AVE": [37.76048,-122.50284],
"OCEAN_AVE_AND_JULES_AVE": [37.72491,-122.4614],
"OCEAN_AVE_AND_MIRAMAR_AVE": [37.72426,-122.45834],
"OCEAN_AVE_AND_CERRITOS_AVE": [37.72722,-122.46678],
"OCEAN_AVE_AND_APTOS_AVE": [37.72839,-122.46788],
"OCEAN_AVE_AND_SAN_LEANDRO_WAY": [37.72994,-122.46947],
"OCEAN_AVE_AND_VICTORIA_ST": [37.72598,-122.46436],
"SAN_JOSE_AVE_AND_FARALLONES_ST": [37.71417,-122.45223],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.72044,-122.44697],
"WEST_PORTAL/SLOAT/ST_FRANCIS_CIRCLE": [37.734825,-122.471446],
"TARAVAL_ST_AND_SUNSET_BLVD": [37.74231,-122.49423],
"SAN_JOSE_AVE_AND_MT_VERNON_AVE": [37.71847,-122.44864],
"WEST_PORTAL_AVE_AND_ULLOA_ST": [37.740767,-122.465911],
"JUNIPERO_SERRA_BLVD_AND_OCEAN_AVE": [37.731628,-122.471707],
"JUNIPERO_SERRA_BLVD_AND_OCEAN_AVE": [37.731271,-122.471818],
"SAN_JOSE_AVE_AND_LAKEVIEW_AVE": [37.71629,-122.45039],
"SAN_JOSE_AVE_AND_LAKEVIEW_AVE": [37.71606,-122.45036],
"JUDAH_ST_AND_46TH_AVE": [37.76035,-122.50605],
"JUDAH_ST_AND_46TH_AVE": [37.76049,-122.50581],
"JUDAH_ST_AND_43RD_AVE": [37.76064,-122.50258],
"JUDAH_ST_AND_40TH_AVE": [37.76064,-122.49914],
"JUDAH_ST_AND_40TH_AVE": [37.76077,-122.49937],
"JUDAH_ST_AND_22ND_AVE": [37.76149,-122.47983],
"MARKET_ST_AND_SANCHEZ_ST": [37.765632,-122.431216],
"TARAVAL_ST_AND_SUNSET_BLVD": [37.74213,-122.49463],
"WEST_PORTAL_AVE_AND_14TH_AVE": [37.738064,-122.468984],
"22ND_ST_AND_IOWA_ST": [37.7577,-122.39176],
"GENEVA_AVE_AND_RIO_VERDE_ST": [37.707136,-122.415706],
"TIOGA_AVE_AND_RUTLAND_ST": [37.7166,-122.40572],
"MISSION_ST_AND_7TH_ST": [37.779354,-122.410505],
"7TH_ST_AND_BRYANT_ST": [37.7747,-122.40517],
"BAY_SHORE_BLVD_AND_JERROLD_AVE": [37.74641,-122.40369],
"CALIFORNIA_ST_AND_VAN_NESS_AVE": [37.790412,-122.422238],
"CLEMENT_ST_AND_8TH_AVE": [37.7829,-122.46687],
"THE_EMBARCADERO_AND_BRANNAN_ST": [37.784627,-122.387977],
"THE_EMBARCADERO_AND_FOLSOM_ST": [37.78957,-122.388489],
"KING_ST_AND_6TH_ST": [37.773168,-122.39784],
"LETTERMAN_DR_AND_LOMBARD_ST": [37.798052,-122.45013],
"LOCKWOOD_ST_AND_BLDG_214": [37.72735,-122.36098],
"PORTOLA_AVE_AND_CLAREMONT_AVE": [37.73985,-122.46504],
"POWELL_ST_AND_BEACH_ST": [37.8081,-122.41234],
"RANDOLPH_AND_19TH_AVE": [37.71432,-122.46964],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720467,-122.446695],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.721907,-122.447436],
"SPEAR_ST_AND_COCHRANE_ST": [37.72534,-122.36871],
"FOLSOM_ST_AND_THIRD_ST": [37.78397,-122.39877],
"CALIFORNIA_ST_AND_8TH_ST": [37.784792,-122.466819],
"19TH_AVE_AND_RANDOLPH_ST": [37.71441,-122.47003],
"DUBOCE_AVE_AND_CHURCH_ST_-_RAMP": [37.769463,-122.429133],
"MARKET_ST_AND_12TH_ST": [37.775029,-122.419252],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720613,-122.446577],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.720622,-122.446566],
"4TH_ST_AND_KING_ST": [37.776278,-122.393864],
"3RD_ST_AND_MARIPOSA_ST": [37.762972,-122.388843],
"3RD_ST_AND_20TH_ST": [37.760572,-122.388638],
"4TH_ST_AND_BERRY_ST": [37.776367,-122.393955],
"3RD_ST_AND_EVANS_AVE": [37.742709,-122.387931],
"PAUL_AVE_AND_CARR_ST": [37.722404,-122.395667],
"SUNNYDALE_AVE_AND_BAYSHORE_BLVD": [37.708801,-122.40525],
"THIRD_STREET_AT_PALOU_AVE_SE": [37.733895,-122.390905],
"BAY_SHORE_BLVD_AND_ARLETA_AVE": [37.712449,-122.402293],
"SUNNYDALE_AVE_AND_PERSIA_AVE": [37.712606,-122.419093],
"3RD_ST_AND_MARIPOSA_ST": [37.764248,-122.388853],
"3RD_ST_AND_23RD_ST": [37.755316,-122.388001],
"3RD_ST_AND_EVANS_AVE": [37.74261,-122.387851],
"BAY_SHORE_BLVD_AND_SUNNYDALE_AVE": [37.708837,-122.405067],
"3RD_ST_AND_WILLIAMS_ST": [37.72922,-122.392753],
"COLUMBUS_AVE_AND_CHESTNUT_ST": [37.80283,-122.413978],
"METRO_CIVIC_CENTER_STATION/DOWNTOWN": [37.780345,-122.412521],
"SPEAR_ST_AND_MARKET_ST": [37.793633,-122.395605],
"BROADWAY_AND_GRANT_AVE": [37.797849,-122.407342],
"LINCOLN_WAY_AND_19TH_AVE": [37.765437,-122.477209],
"MIDDLE_POINT_RD_AND_HARE_ST": [37.734388,-122.379358],
"BUSH_ST_AND_BATTERY_ST": [37.791315,-122.399676],
"3RD_ST_AND_22ND_ST": [37.758038,-122.388434],
"3RD_ST_AND_ARTHUR_AVE": [37.746019,-122.387287],
"SAN_BRUNO_AVE_AND_SOMERSET_ST": [37.713395,-122.401995],
"1731_3RD_ST": [37.769718,-122.389284],
"GRAFTON_AVE_AND_PLYMOUTH_AVE": [37.720104,-122.457034],
"GRAFTON_AVE_AND_CAPITOL_AVE": [37.720104,-122.459072],
"GRAFTON_AVE_AND_JULES_AVE": [37.720095,-122.461111],
"GARFIELD_ST_AND_VICTORIA_ST": [37.719764,-122.465234],
"DIAMOND_HEIGHTS_BLVD_AND_PORTOLA": [37.746837,-122.444915],
"3RD_ST_AND_BRANNAN_ST": [37.779562,-122.393495],
"GENEVA_AVE_AT_CAYUGA_AVE": [37.718927,-122.443829],
"9TH_AVE_AND_KIRKHAM_ST": [37.760398,-122.46616],
"9TH_AVE_AND_LAWTON_ST": [37.758542,-122.466034],
"SILVER_AVE_AND_GAMBIER_ST": [37.728757,-122.422477],
"JACKSON_ST_AND_POLK_ST": [37.794177,-122.421732],
"CABRILLO_ST_AND_LA_PLAYA_ST": [37.773206,-122.509876],
"WEST_PORTAL_AVE_AND_SLOAT_BLVD": [37.734914,-122.4714],
"EVANS_AVE/US_POST_OFFICE": [37.739806,-122.382549],
"SLOAT_BLVD_AND_47TH_AVE": [37.735394,-122.50493],
"CRESCENT_AVE_AND_ELLSWORTH_ST": [37.734733,-122.415052],
"JUNIPERO_SERRA_BLVD_AND_SLOAT_BLVD": [37.731336,-122.471663],
"20TH_AV/MACY'S_STONESTOWN": [37.728783,-122.475786],
"4TH_ST_AND_MISSION_ST": [37.784339,-122.404266],
"CORTLAND_AVE_AND_BRONTE_ST": [37.739711,-122.41017],
"5TH_ST_AND_FOLSOM_ST": [37.78044,-122.403466],
"ELLIS_ST_AND_MASON_ST": [37.785358,-122.409367],
"METRO_VAN_NESS_STATION/DOWNTOWN": [37.775029,-122.419252],
"METRO_EMBARCADERO_STATION": [37.793152,-122.396431],
"METRO_VAN_NESS_STATION/OUTBOUND": [37.775145,-122.419263],
"JUDAH/LA_PLAYA/OCEAN_BEACH": [37.760349,-122.508685],
"ASHBURY_ST_AND_CLAYTON_ST": [37.763014,-122.446966],
"KANSAS_ST_AND_23RD_ST": [37.75443,-122.402462],
"ULLOA_ST_AND_WEST_PORTAL_AVE": [37.741015,-122.46611],
"UNION_ST_AND_STEINER_ST": [37.796874,-122.43714],
"PACIFIC_AVE_AND_VAN_NESS_AVE": [37.794918,-122.423096],
"19TH_AVE_AND_HOLLOWAY_AVE": [37.721199,-122.475302],
"HOLLOWAY_AVE_AND_19TH_AVE": [37.721199,-122.47529],
"MARKET_ST_AND_STEUART_ST": [37.794454,-122.394917],
"DUNCAN_ST_AND_AMBER_DR": [37.746016,-122.443483],
"DIAMOND_HEIGHTS_BLVD_AND_DUNCAN_ST": [37.746676,-122.443208],
"PLYMOUTH_AVE_AND_BROAD_ST": [37.713279,-122.456174],
"16TH_AVENUE_AT_LAWTON_STREET": [37.758023,-122.473791],
"FOLSOM_ST_AND_JARBOE_AVE": [37.738239,-122.413241],
"FOLSOM_ST_AND_JARBOE_AVE": [37.738257,-122.41347],
"BATTERY_ALEXANDER/FIELD_RD": [37.825033,-122.530266],
"TOWNSEND_ST_AND_4TH_ST": [37.777278,-122.394631],
"FONT_BLVD_AND_GONZALEZ_DR": [37.716711,-122.476033],
"LAKE_MERCED_BLVD_AND_FONT_DR": [37.724123,-122.485164],
"FULTON_ST_AND_31ST_AVE": [37.772188,-122.490712],
"MANSELL_ST_AND_PERSIA_AVE": [37.718291,-122.425688],
"FUNSTON_AVE_AND_LAKE_ST": [37.784595,-122.472161],
"EMBARCADERO_AND_ST": [37.794525,-122.394618],
"BRAZIL_AVE_AND_PRAGUE_ST": [37.720522,-122.425882],
"GRAFTON_AVE_AT_PLYMOUTH_AVE": [37.72014,-122.455923],
"ARGUELLO_BLVD_AND_EUCLID_AVE": [37.783258,-122.459105],
"DIAMOND_ST_(SOUTH)/DIAMOND_HTS": [37.73828,-122.437252],
"DUBOCE_ST/NOE_ST/DUBOCE_PARK": [37.769392,-122.433694],
"MARKET_ST_AND_CASTRO_ST": [37.762451,-122.435541],
"TREASURE_ISLAND_RD_AND_MACALLA_RD": [37.813134,-122.371017],
"MACALLA_RD_AND_TREASURE_ISLAND_RD": [37.813143,-122.370856],
"MACALLA_RD_AND_NIMITZ_CT": [37.811803,-122.369584],
"MACALLA_RD/BLDG_240": [37.811862,-122.36455],
"NORTH_GATE_RD_AND_MACALLA_RD": [37.811336,-122.364299],
"6TH_AVE_AND_FULTON": [37.773746,-122.46386],
"6TH_AVE_AND_FULTON": [37.773738,-122.46386],
"24TH_ST_AND_NOE_ST": [37.751377,-122.431991],
"MARKET_ST_AND_1ST_ST": [37.79094,-122.399195],
"LAGUNA_HONDA_BLVD/FOREST_HILL_STA": [37.747898,-122.458813],
"LAGUNA_HONDA_BLVD/OPP_FOREST_HILL": [37.748371,-122.458905],
"LAGUNA_HONDA_BLVD/OPP_FOREST_HILL": [37.748273,-122.458779],
"LAGUNA_HONDA_BLVD/FOREST_HILL_STA": [37.747836,-122.45879],
"EMBARCADERO_AND_SANSOME_ST": [37.805146,-122.403233],
"CARL_ST_AND_COLE_ST": [37.765878,-122.450094],
"THE_EMBARCADERO_AND_FERRY_BUILDING": [37.794828,-122.39377],
"THE_EMBARCADERO_AND_BAY_ST": [37.80661,-122.405434],
"EVANS_AVE_AND_QUINT_ST": [37.744039,-122.390473],
"EVANS_AVE_AND_SELBY_ST": [37.746164,-122.39392],
"LARKIN_STANDMCALLISTER_ST": [37.780382,-122.416843],
"SILVER_AVEANDSANTA_FE_AVE": [37.734773,-122.401592],
"16TH_ST_AND_FOLSOM_ST": [37.7654,-122.415428],
"CASTRO_ST_AND_26TH_ST": [37.748201,-122.433893],
"4TH_ST_AND_BRANNAN_ST": [37.778448,-122.396647],
"STEUART_STANDMISSION_ST": [37.793097,-122.393186],
"FILLMORE_ST_AND_UNION_ST": [37.796972,-122.435581],
"CALIFORNIA_ST_AND_DAVIS_ST": [37.793527,-122.396797],
"ASHBURY_ST_AND_FREDERICK_ST": [37.767305,-122.446473],
"CORWALL_ST_AND_6TH_AVE": [37.784712,-122.464424],
"SUNNYDALE_AVE_AND_BAY_SHORE_BLVD": [37.708801,-122.40525],
"POTRERO_AVEAND15TH_ST": [37.767334,-122.407623],
"MISSION_ST_AND_SOUTH_VAN_NESS_AVE": [37.772994,-122.418485],
"GENEVA_AVEANDCARTER_ST": [37.709306,-122.423217],
"O'FARRELL_STANDTAYLOR_ST": [37.78585,-122.41198],
"BUSH_ST_AND_SANSOME_ST": [37.791066,-122.400949],
"3RD_ST_AND_CARROLL_AVE": [37.725482,-122.394245],
"GENEVA_AVEANDCARTER_ST": [37.709083,-122.423102],
"EDDY_ST_AND_CYRIL_MAGNIN_ST": [37.784386,-122.408599],
"WEST_PORTAL_AVE_AND_14TH_AVE": [37.738091,-122.469042],
"MYRA_WAY_AND_REPOSA_WAY": [37.740038,-122.450541],
"7TH_AVE_AND_LAWTON_ST": [37.758426,-122.463856],
"CYRIL_MAGNIN_ST_AND_EDDY_ST": [37.784314,-122.408576],
"ROOSEVELT_WAYANDBUENA_VISTA_TER": [37.766698,-122.438279],
"FOLSOM_ST_AND_26TH_ST": [37.749223,-122.413705],
"FOLSOM_ST_AND_24TH_ST": [37.752444,-122.414128],
"BAY_SHORE_BLVD_AND_ALEMANY_BLVD": [37.738371,-122.407306],
"POWELL_AND_MARKET_TURNTABLE": [37.7848,-122.407681],
"MASON_ST_AND_O'FARRELL_ST": [37.786099,-122.409767],
"CHURCH_ST_AND_14TH_ST": [37.767786,-122.428996],
"CHURCH_ST_AND_30TH_ST": [37.742133,-122.426528],
"SUNSET_TUNNEL_EAST_PORTAL": [37.769134,-122.433076],
"6TH_ST_AND_BRYANT_ST": [37.776157,-122.402598],
"3RD_ST_AND_FITZGERALD_AVE": [37.723127,-122.395243],
"3RD_ST_AND_GENE_FRIEND_WAY": [37.769557,-122.389296],
"3RD_ST_AND_TERRY_A_FRANCOIS_BLVD": [37.776241,-122.389967],
"3RD_ST_AND_TERRY_A_FRANCOIS_BLVD": [37.776187,-122.390104],
"3RD_ST_AND_GENE_FRIEND_WAY": [37.769317,-122.389445],
"GARFIELD_STANDBYXBEE_ST": [37.719585,-122.469953],
"GARFIELD_STANDVERNON_ST": [37.719594,-122.468155],
"OCEAN_AVEANDLEE_AVE": [37.723424,-122.454194],
"LELAND_AVE@ALPHA_ST": [37.711897,-122.405775],
"LELAND_AVE@BAY_SHORE_BLVD": [37.711138,-122.403794],
"RAYMOND_AVE_AND_RUTLAND_ST": [37.713343,-122.407148],
"RAYMOND_AVE_AND_DELTA_ST": [37.713844,-122.409049],
"RAYMOND_AVE_AND_SAWYER_ST": [37.715032,-122.413469],
"SAWYER_ST_AND_VISITACION_AVE": [37.713345,-122.414443],
"BAY_SHORE_BLVD_AND_BLANKEN_AVE": [37.712226,-122.402179],
"RAYMOND_AVE_AND_ELLIOT_ST": [37.714424,-122.411213],
"FORT_MASON/BUS_ISL_NR_GUARD_GATE": [37.805279,-122.432093],
"MONTEREY_BLVD_AND_GENNESSEE_ST": [37.731463,-122.451239],
"GILMAN_AVE_AND_GIANTS_DR": [37.717484,-122.387001],
"BAY_SHORE_BLVD/ARLETA/BLANKEN": [37.712244,-122.402328],
"THIRD_STREET_AND_LE_CONTE_AVE": [37.718809,-122.397468],
"THIRD_STREET/GILMAN/PAUL": [37.722413,-122.395644],
"THIRD_STREET_AND_CARROLL_AVE": [37.725491,-122.394222],
"THIRD_STREET_AND_CARROLL_AVE": [37.725464,-122.394256],
"THIRD_STREET_AND_WILLIAMS_AVE": [37.729291,-122.392604],
"THIRD_STREET_AND_WILLIAMS_AVE": [37.729264,-122.392638],
"THIRD_STREET/GILMAN/PAUL": [37.722449,-122.39561],
"THIRD_STREET/REVERE/SHAFTER": [37.732262,-122.391514],
"THIRD_STREET/OAKDALE/PALOU": [37.73435,-122.390848],
"THIRD_STREET/KIRKWOOD/LA_SALLE": [37.737633,-122.389699],
"THIRD_STREET/HUDSON/INNES": [37.739916,-122.388896],
"THIRD_STREET_AND_EVANS_AVE": [37.742726,-122.38792],
"THIRD_STREET_AND_MARIN_ST": [37.748999,-122.387445],
"THIRD_STREET_AND_23RD_ST": [37.755414,-122.388001],
"THIRD_STREET_AND_20TH_ST": [37.760518,-122.388558],
"THIRD_STREET_AND_MARIPOSA_ST": [37.764391,-122.388853],
"UCSF/MISSION_BAY": [37.769049,-122.389308],
"THIRD_STREET_AND_MISSION_ROCK_ST": [37.772993,-122.389717],
"THIRD_STREET_AND_MISSION_ROCK_ST": [37.772832,-122.389717],
"UCSF/MISSION_BAY": [37.76854,-122.389274],
"THIRD_STREET_AND_MARIPOSA_ST": [37.764239,-122.388865],
"THIRD_STREET_AND_20TH_ST": [37.760376,-122.388558],
"THIRD_STREET_AND_23RD_ST": [37.75529,-122.388012],
"THIRD_STREET_AND_MARIN_ST": [37.749079,-122.387479],
"THIRD_STREET_AND_EVANS_AVE": [37.742727,-122.388034],
"4TH_ST_AND_BERRY_ST": [37.776153,-122.393944],
"SLOAT_BLVD_AND_WEST_PORTAL_AVE": [37.73462,-122.47187],
"MISSION_ST_AND_MARY_ST": [37.782101,-122.40711],
"LANE_ST_AND_PALOU_AVE": [37.732894,-122.389027],
"NEWHALL_ST_AND_NEWCOMB_AVE": [37.736268,-122.391636],
"NEWHALL_ST_AND_LA_SALLE_AVE": [37.737517,-122.390513],
"KIRKWOOD_AVE_AND_3RD_ST": [37.737945,-122.38963],
"NEWHALL_ST_AND_LA_SALLE_AVE": [37.737579,-122.390524],
"NEWHALL_ST_AND_NEWCOMB_AVE": [37.736331,-122.391648],
"LANE_ST_AND_REVERE_AVE": [37.731699,-122.390174],
"THIRD_ST_AND_LE_CONTE_AVE": [37.718809,-122.397468],
"THIRD_ST_AND_MARIN_ST": [37.748945,-122.387422],
"THIRD_ST_AND_MARIN_ST": [37.749097,-122.387571],
"3RD_STREET_AND_KING_ST": [37.778097,-122.391811],
"THE_EMBARCADERO_AND_HARRISON_ST": [37.78957,-122.388489],
"THIRD_ST_AND_MARIPOSA_ST": [37.764427,-122.388761],
"THIRD_ST_AND_MARIPOSA_ST.": [37.764177,-122.388945],
"PRESIDIO_TRANSIT_CENTER": [37.802299,-122.455759],
"4TH_ST_AND_BERRY_ST": [37.775778,-122.39336],
"GRAHAM_ST_AND_LINCOLN_BLVD": [37.801434,-122.456126],
"GRAHAM_ST_AND_MORAGA_AVE": [37.797954,-122.458774],
"GRAHAM_ST_AND_LINCOLN_BLVD": [37.801371,-122.45639],
"GRAHAM_ST_AND_MORAGA_AVE": [37.797891,-122.459038],
"LINCOLN_BLVD_AND_GIRARD_RD": [37.800756,-122.454097],
"THIRD_STREET/HUDSON/INNES": [37.739916,-122.388907],
"THIRD_STREET/KIRKWOOD/LA_SALLE": [37.737641,-122.389711],
"THIRD_STREET/OAKDALE/PALOU": [37.73435,-122.390859],
"THIRD_STREET/REVERE/SHAFTER": [37.73228,-122.391536],
"THIRD_STREET_AND_LE_CONTE_AVE": [37.718827,-122.397491],
"BAY_SHORE_BLVD/ARLETA/BLANKEN": [37.712253,-122.402316],
"BAY_SHORE_BLVD_AND_SUNNYDALE_AVE": [37.70897,-122.405113],
"4TH_ST_AND_KING_ST": [37.776252,-122.394036],
"BAY_SHORE_BLVD_AND_SUNNYDALE_AVE": [37.708944,-122.405044],
"BAY_SHORE_BLVD/ARLETA/BLANKEN": [37.712226,-122.402339],
"THIRD_STREET_AND_LE_CONTE_AVE": [37.718809,-122.397468],
"THIRD_STREET/REVERE/SHAFTER": [37.732262,-122.391502],
"THIRD_STREET/OAKDALE/PALOU": [37.734358,-122.390836],
"THIRD_STREET/KIRKWOOD/LA_SALLE": [37.737641,-122.389688],
"THIRD_STREET/HUDSON/INNES": [37.739916,-122.388884],
"4TH_ST_AND_KING_ST": [37.776323,-122.394001],
"11TH_ST/BTW_MARKET_AND_MISSION": [37.775502,-122.418656],
"HOWARD_ST_AND_NEW_MONTGOMERY_ST": [37.78622,-122.399015],
"HOWARD_ST_AND_NEW_MONTGOMERY_ST": [37.786077,-122.399256],
"ARMSTRONG_AVE_AND_3RD_ST": [37.726936,-122.393511],
"GILMAN_ST_AND_3RD_ST": [37.722333,-122.395599],
"PAGE_ST_AND_OCTAVIA_BLVD": [37.773825,-122.423871],
"MARKET_ST_AND_HYDE_ST": [37.778784,-122.414723],
"MARKET_ST_AND_7TH_ST_N": [37.780648,-122.412452],
"MONTEREY_BLVD_AND_SAN_ANSELMO_AVE": [37.733148,-122.465501],
"CLEMENT_ST_AND_43RD_AVE": [37.781836,-122.504129],
"SILVER_AVE_AND_LISBON_ST": [37.728597,-122.428594],
"NEWHALL_ST_AND_FAIRFAX_AVE": [37.741406,-122.387153],
"1ST_ST_AND_NATOMA_ST": [37.789262,-122.396869],
"SILVER_AVE_AND_LISBON_ST": [37.728606,-122.428571],
"TREASURE_ISLAND_RD_AND_MACALLA_RD": [37.813062,-122.371131],
"MUNI_METRO_EAST/NOT_A_PUBLIC_STOP": [37.752871,-122.38688],
"CALIFORNIA_ST_AND_BATTERY_ST": [37.793127,-122.400099],
"THE_EMBARCADERO_AND_BRANNAN_ST": [37.7846,-122.387954],
"19TH_AVE_AND_WINSTON_DR": [37.727258,-122.475098],
"19TH_AVE_AND_WINSTON_DR": [37.727195,-122.474846],
"LAGUNA_ST_AND_HAIGHT_ST": [37.77263,-122.425396],
"3RD_ST_AND_MINNA_ST": [37.786034,-122.401606],
"LINCOLNAND9AV(NEW_STOP)": [37.766019,-122.466333],
"GROVE_ST_AND_POLK_ST": [37.778383,-122.418311],
"3RD_ST_AND_22ND_ST": [37.758074,-122.388239],
"GROVE_AND_LARKIN": [37.77874,-122.416752],
"VAN_NESS_AVE_AND_NORTH_POINT_ST": [37.80484,-122.425352],
"14TH_AVENUE_AND_GEARY_BOULEVARD": [37.780705,-122.472802],
"SECOND_STREET_AND_FOLSOM_STREET": [37.78563,-122.396723],
"FULTON_STREET_AND_SHRADER_STREET": [37.774907,-122.45312],
"24TH_STREET_AND_POTRERO_AVENUE": [37.753067,-122.40621],
"NOT_A_PUBLIC_STOP": [37.709523,-122.404631],
"GENEVA_STREET_AND_SCHWERIN_STREET": [37.706296,-122.413084],
"PENNSYLVANIA_AVENUE_AND_23RD_STREET": [37.755158,-122.393008],
"PENNSYLVANIA_AVENUE_AND_25TH_STREET": [37.752624,-122.392758],
"25TH_AVENUE_AND_DAKOTA_STREET": [37.752348,-122.394695],
"PENNSYLVANIA_AVENUE_AND_25TH_STREET": [37.752463,-122.39277],
"PENNSYLVANIA_AVENUE_AND_23RD_STREET": [37.755015,-122.392791],
"FOERSTER_STREET_AND_MONTEREY_BLVD": [37.731695,-122.448753],
"FRANCISCO_STREET_AND_POLK_STREET": [37.803377,-122.423793],
"NOT_A_PUBLIC_STOP": [37.755387,-122.386889],
"NOT_A_PUBLIC_STOP": [37.755387,-122.386832],
"SOUTH_VAN_NESS_AVE_AND_24TH_ST": [37.752275,-122.416167],
"17TH_ST_AND_DE_HARO_ST": [37.764789,-122.401676],
"CABRILLO_ST_AND_7TH_AVE": [37.775379,-122.464834],
"CABRILLO_ST_AND_7TH_AVE": [37.775263,-122.465006],
"NOT_A_PUBLIC_STOP": [37.755387,-122.386867],
"CLEMENT_ST_AND_14_AVE": [37.782498,-122.473077],
"CONNECTICUT_ST_AND_19TH_ST": [37.761326,-122.397473],
"23RD_ST_AND_DAKOTA_ST": [37.754678,-122.396779],
"DAKOTA_ST_AND_23RD_ST": [37.754705,-122.396572],
"2ND_ST_AND_TOWNSEND_ST": [37.780702,-122.390559],
"2ND_ST_AND_HOWARD_ST": [37.786755,-122.398143],
"2ND_ST_AND_STEVENSON_ST": [37.788282,-122.400068],
"SANSOME_ST_AND_SUTTER_ST": [37.790352,-122.400502],
"CESAR_CHAVEZ_ST_AND_MISSION_ST": [37.7481,-122.418082],
"FOLSOM_ST_AND_CESAR_CHAVEZ_ST": [37.748376,-122.413579],
"JACKSON_ST_AND_WEBSTER_ST": [37.792743,-122.432807],
"MISSION_ST_AND_FLOURNOY": [37.706613,-122.459196],
"AVENUE_H_AND_CALIFORNIA_ST": [37.820001,-122.36633],
"AVENUE_H_AND_5TH_ST": [37.822375,-122.367968],
"AVENUE_H_AND_9TH_ST": [37.825232,-122.369914],
"AVENUE_H_AND_13TH_ST": [37.828311,-122.371964],
"AVENUE_B_AND_12TH_ST": [37.825468,-122.376302],
"9TH_ST_AND_AVENUE_D": [37.824056,-122.372714],
"HAYES_ST_AND_SHRADER_ST": [37.77306,-122.452513],
"MISSION_ST_AND_SPEAR_ST": [37.79266,-122.394001],
"MCALLISTER_ST_AND_JONES_ST": [37.781166,-122.412189],
"DAVIS_ST_AND_CALIFORNIA_ST": [37.793242,-122.397657],
"DIVISADERO_ST_AND_BAY_ST": [37.801907,-122.443331],
"17TH_AVE_AND_QUINTARA_ST": [37.748592,-122.473834],
"QUINTARA_ST_AND_17TH_AVE": [37.748833,-122.473799],
"THE_EMBARCADERO_AND_GRANT_ST": [37.808236,-122.409389],
"BERNAL_HEIGHTS_BLVD_AND_POWHATTAN_ST": [37.741451,-122.411223],
"19TH_AVE_AND_TARAVAL_ST": [37.743024,-122.475619],
"19TH_AVE_AND_OCEAN_AVE": [37.73246,-122.474939],
"ULLOA_ST_AND_WEST_PORTAL_AVE_ARRIVE": [37.740875,-122.46572],
"ULLOA_ST_AND_WEST_PORTAL_AVE_LEAVE": [37.741098,-122.466144],
"2ND_ST_AND_FOLSOM_ST": [37.785514,-122.396597],
"9TH_ST._AND_AVENUE_D": [37.823521,-122.373907],
"CESAR_CHAVEZ_ST._AND_VALENCIA_ST.": [37.748056,-122.420064],
"SLOAT_BLVD._AND_19TH_AVE.": [37.73469,-122.475215],
"ULLOA_ST._AND_17TH_AVE.": [37.741204,-122.473522],
"BEALE_ST._AND_HOWARD_ST.": [37.789823,-122.394244],
"HOWARD_ST._AND_BEALE_ST.": [37.790608,-122.393567],
"BEALE_ST._AND_HOWARD_ST.": [37.789814,-122.394244],
"DALY_CITY_BART_WEST_STATION_RD.": [37.707049,-122.468655],
"GONZALEZ_DR._AND_CRESPI_DR.": [37.719682,-122.475565],
"IRVING_ST._AND_9TH_AVE.": [37.764101,-122.466161],
"9TH_AVE._AND_IRVING_ST.": [37.76394,-122.466241],
"S._VAN_NESS_AVE._AND_MARKET_ST.": [37.774966,-122.419275],
"S._VAN_NESS_AVE._AND_MARKET_ST.": [37.774922,-122.419263],
"BEALE_ST._AND_FOLSOM_ST.": [37.78885,-122.393086],
"BEALE_ST._AND_HOWARD_ST.": [37.789823,-122.394232],
"MAIN_ST._AND_HOWARD_ST.": [37.790545,-122.393303],
"BEACH_ST_AND_DIVISADERO_ST": [37.803647,-122.443422],
"5TH_ST_AND_BRANNAN_ST": [37.77645,-122.398723],
"MAIN_ST_AND_HOWARD_ST": [37.790608,-122.393326],
"HERBST_RD_AND_AMORY_RD": [37.730666,-122.501697],
"ALEMANY_BLVD_AND_FLOSOM_ST": [37.73327,-122.413919],
"19_AVE_AND_JUDA_ST": [37.761752,-122.47707],
"48TH_AVE_AND_JUDA_ST": [37.760269,-122.507998],
"JUDAH_ST_AND_48TH_AVE": [37.760367,-122.508032],
"MENDELL_ST_AND_CARGO_WAY": [37.743804,-122.383313],
"BAY_ST_AND_WEBSTER_ST": [37.802745,-122.435167],
"MCALLISTER_ST_AND_LEAVENWORTH_ST": [37.780889,-122.413587],
"FILLMORE_ST_AND_HAIGHT_ST": [37.772069,-122.430473],
"OCEAN_AVE_AND_OTSEGO_AVE": [37.723433,-122.440816],
"8TH_AVE_AND_CLEMENT_ST": [37.783026,-122.466475],
"CONZELMAN_RD_AND_MCCULLOUGH_RD": [37.833698,-122.49381],
"ALEXANDER_DR_AND_CONZELMAN_RD": [37.833148,-122.483383],
"CONZELMAN_RD_AND_MCCULLOUGH_RD": [37.833609,-122.493902],
"MISSION_ST_AND_SAN_JOSE_ST": [37.706149,-122.460674],
"MASON_ST_AND_GEARY_BLVD": [37.787214,-122.409962],
"5TH_ST_AND_HARRISON_ST": [37.77894,-122.401828],
"5TH_ST_ANDSTEVENSON_ST": [37.783502,-122.407625],
"SOUTH_VAN_NESS_AND16TH_ST": [37.765303,-122.417617],
"SOUTH_VAN_NESS_AND_24TH_ST": [37.750643,-122.416202],
"14TH_ST_AND_MISSION_ST": [37.768212,-122.419816],
"16TH_ST_AND_SOUTH_VAN_NESS": [37.765053,-122.417583],
"SOUTH_VAN_NESS_AND_18TH_ST": [37.762117,-122.417309],
"SOUTH_VAN_NESS_AND_20TH_ST": [37.758932,-122.417001],
"SOUTH_VAN_NESS_AND_22ND_ST": [37.755729,-122.416693],
"SOUTH_VAN_NESS_AND_24TH_ST": [37.75249,-122.416178],
"SOUTH_VAN_NESS_AND_22ND_ST": [37.755479,-122.416464],
"SOUTH_VAN_NESS_AND_20TH_ST": [37.758869,-122.416783],
"SOUTH_VAN_NESS_AND_18_TH_ST": [37.761876,-122.41708],
"16_TH_ST_AND_SOUTH_VAN_NESS": [37.765258,-122.41764],
"MISSION_ST_AND_STEUART_STREET_S-MB/BZ": [37.792999,-122.393381],
"9TH_ST_AND_MARKET_ST": [37.777375,-122.416305],
"8TH_ST_AND_MARKET_ST": [37.778579,-122.414757],
"GENEVA_AVE_AND_MISSION_ST": [37.716419,-122.441012],
"HWARD_STANDSPEAR": [37.791339,-122.392408],
"8TH_STANDHOWARD": [37.776133,-122.411606],
"CRESCENT_AVE_AND_ELLSWORTH_ST": [37.734858,-122.415041],
"POST_AND_GRANT": [37.788587,-122.40541],
"POST_AND_MONTGOMERY": [37.788996,-122.402188],
"BAY_STREET_AND_VAN_NESS_AVE": [37.804109,-122.424973],
"TOWNSEND_ST_AND_8TH_ST": [37.770233,-122.403828],
"BRANNAN_ST_AND_8TH_ST": [37.771322,-122.405237],
"BURNETT_AVE_AND_DAWNVIEW_WAY": [37.748059,-122.444904],
"PARNASSUS_AVE_AND4TH_AVE": [37.762522,-122.460947],
"513_PARNASSUS_AVE": [37.76279,-122.459961],
"CRESCENT_AVE_AND_ANDERSON_ST": [37.734894,-122.415682],
"FIELD_RD_AND_LIGHT_HOUSE": [37.821831,-122.529689],
"FIELD_RD_AND_BODSWORTH_RD": [37.830373,-122.524399],
"POWELL_ST_AND_JEFFERSON_ST": [37.808076,-122.412519],
"BALBOA_ST_AND_PARK_PRESIDIO_BLVD": [37.776904,-122.471918],
"GREEN_YARD-SAN_JOSE_AND_OCEAN": [37.722746,-122.445042],
"CAMERON_BEACH_YARD": [37.720613,-122.446543],
"BATTERY_ST_AND_GREENWICH_ST": [37.802628,-122.436693],
"MIDDLE_POINT_AND_ACACIA": [37.737074,-122.379516],
"FULTON_ST_AND_43RD_AVE": [37.771612,-122.503296],
"FULTON_ST_AND_PARK_PRESIDIO": [37.772834,-122.476524],
"CENTRAL_AVE_AND_MCALLISTER_ST": [37.776808,-122.444834],
"MCALLISTER_ST_AND_GOUGH_ST": [37.779634,-122.423457],
"MCALLISTER_S_TAND_DIVISADERO_ST": [37.775746,-122.446278],
"MCALLISTER_ST_AND_DIVISADERO_ST": [37.777816,-122.438587],
"MCALLISTER_ST_AND_CENTRAL_AVE": [37.777263,-122.443195],
"FULTON_S_TAND_28TH_AVE": [37.772474,-122.487504],
"FULTON_S_TAND_30TH_AVE": [37.772375,-122.489624],
"FULTON_ST_AND_40TH_AVE": [37.77188,-122.50034],
"FULTON_ST_TAND_43RD_AVE": [37.771736,-122.503537],
"FOLSOM_ST_AND_20ST": [37.758762,-122.414789],
"FOLSOM_ST_AND_20TH_ST": [37.758985,-122.414617],
"MCALLISTER_ST_AND_LYON_ST": [37.777156,-122.443321],
"MCALLISTER_ST_AND_LYON_ST": [37.777093,-122.443424],
"VAN_NESS_AVE_AND_O'FARRELL_ST": [37.784907,-122.421334],
"PACIFIC_AVE_AND_STOCKTON_ST": [37.796734,-122.408581],
"VAN_NESS_AVE_AND_OFARRELL_ST": [37.784496,-122.421174],
"MORSE_ST_AND_LOWELL_ST": [37.711021,-122.446211],
"PERSIA_ST_AND_MISSION_ST": [37.72337,-122.436246],
"CESAR_CHAVEZ_AND_BARTLETT": [37.748216,-122.419022],
"FOLSOM_AND_CESAR_CHAVZ_ST": [37.748081,-122.413763],
"EXECUTIVE_PARK_BLVD_AND_THOMAS_MELLON_DR": [37.711241,-122.39358],
"C._CHAVEZ_STANDFLORIDA_ST": [37.748374,-122.409558],
"C._CHAVEZ_STANDHARRISON_ST": [37.748339,-122.41138],
"SAN_JOSEAND_RANDALL_ST": [37.739821,-122.424283],
"SAN_JOSEAND_RANDALL_ST": [37.739848,-122.424077],
"ULLOA_ST_AND_WEST_PORTAL_T": [37.740884,-122.465766],
"WEST_PORTAL_AVEANDULLOA_ST": [37.740849,-122.465835],
"PALOU_AVEANDNEWHALL_ST": [37.735162,-122.392886],
"HAIGHT_ST_AND_GOUGH_ST": [37.773084,-122.422301],
"CROSS_OVER_DRANDLINCOLN_ST": [37.765544,-122.477243],
"MISSION_AND_MAIN_ST": [37.79184,-122.394953],
"THORNTON_DRANDSCOTIA_AVE": [37.731668,-122.399464],
"16TH_STAND_RHODE_ISLAND_ST": [37.766012,-122.402592],
"16TH_ST_AND_WISCONSIN_ST": [37.766225,-122.399681],
"16TH_ST_AND_MISSOURI_ST": [37.766402,-122.396782],
"16TH_ST_AND_4TH_ST": [37.766765,-122.390719],
"MISSION_BAY_NORTH_AND_3RD_ST": [37.771164,-122.389616],
"MISSION_BAY_SOUTH_AND_4TH_ST_SE-FS/_BZ": [37.770513,-122.391037],
"16TH_STREET_AND_4TH_STREET": [37.766864,-122.390891],
"16TH_STREET_AND_MISSOURI_ST": [37.766492,-122.397011],
"16TH_STREET_AND_WISCONSIN_ST": [37.766287,-122.399842],
"16TH_STREET_AND_RHODE_ISLANDI_ST": [37.766119,-122.402627],
"NEW_HALL_AND_HUDSONS_SW-FS/BZ": [37.739961,-122.388414],
"NEW_HALL_AND_HUDSON_SW-FS/BZ": [37.73997,-122.388403],
"ANZA_STAND32_AVE": [37.777764,-122.492183],
"ELLIS_STREET_AND_POWELL_STREET": [37.785429,-122.407957],
"BEALE_ST_AND_HOWARD_ST": [37.78993,-122.394461],
"TOWNSEND_ST_AND_5TH_ST": [37.776324,-122.396133],
"STOCKTON_ST_AND_JACKSON_ST": [37.795753,-122.408318],
"SAN_JOSE_AVE_AND_GENEVA_AVE": [37.721238,-122.446222],
"SALINAS_AVE_AND_BAYSHORE_ST": [37.72154,-122.399802],
"BAYSHORE_ST_AND_PAUL_AVE": [37.723557,-122.400809],
"SALINAS_AVE_AND_GOULD_ST": [37.721129,-122.398428],
"3RD_ST_AND_GILMAN_AVE": [37.722377,-122.395633],
"PRESIDIOBLVDANDLETTERMAN_DR.SE-NS/SB": [37.799123,-122.452423],
"LINCOLN_BLVDANDGIRARD_RD_NW-FS/SB": [37.800711,-122.454028],
"PRESIDIO_TRANSIT_CENTER_NS-??/BZ": [37.802076,-122.45584],
"PRESIDIO_YMCA_CENTER_N-MB/SB": [37.800345,-122.453409],
"LOMBARD_STANDGOUGH_ST_SE-FS/BZ": [37.800861,-122.42768],
"FONT_BLVD_AND_TAPIA_DR_NS/W/SB": [37.720734,-122.481234],
"FONT_BLVD_AND_SERRANO_DR_NS/W-SB": [37.719592,-122.479905],
"FONT_BLVD_AND_JUAN_BAUTISA_CIR.": [37.718477,-122.478691],
"FONT_BLVD_AND_CHUMASERO_DR_W-NS/SB": [37.715016,-122.473089],
"BROTHERHOOD_WAY_AND_CHUMASERO_DR_W-NW/SB": [37.713,-122.472779],
"BROTHERHOOD_WAY_AND_SUMMIT_WAY_NW-FS/SB": [37.713758,-122.474566],
"THE_EMBARCADEROANDHARRISON_ST_NW-NS/PS": [37.789597,-122.388626],
"THE_EMBARCADEROANDHARRSION_ST_NE-FS/PS": [37.789677,-122.388535],
"BROTHERHOOD_WAY_AND_GRACE_SE-FS/SB": [37.714488,-122.480224],
"BROTHERHOOD_WAY_AND_CHURCH_ACCESS_RD_SW-NS-SB": [37.714132,-122.475574],
"BROTHERHOOD_WAY_AND_SUMMIT_WAY_SE-FS/SB": [37.713588,-122.474474],
"VAN_NESS_AVEANDNORTH_POINT_ST_SE-NS/BZ": [37.804876,-122.425237],
"LOMBARD_STANDGOUGH_ST_NW-FS/BZ": [37.800942,-122.42807],
"BROTHERHOOD_WAY_AND_GRACE_COMMUNITY_CHURCH_NE-NS/SB": [37.714595,-122.480189],
"WEST_POTRAL_AND_SOLA_BLVD_NW-NS/SB": [37.735039,-122.471515],
"MISSION_STT_AND_STEUART_ST_NW-FS/SB": [37.793204,-122.393381],
"OCEAN_AVEANDI-280_ON-RAMP_NE-NS/SB": [37.723031,-122.446932],
"CHUMASERO_DR_AND_GALINDO_AVE": [37.714053,-122.473135],
"FONT_BLVD_AND_MARY_WARD_HALL": [37.722491,-122.483056],
"BUCKINGHAM_WAY_AND_WINSTON_DR": [37.728551,-122.479096],
"FONT_BLVD_AND_MARY_WARD_HALL": [37.722759,-122.483629],
"SF_GENERAL_HOSPITAL": [37.755208,-122.406667],
"PINE_ST_AND_POLK_ST": [37.789671,-122.420622],
"BUSH_ST_ANDVAN_NESS_AVE": [37.788404,-122.421837],
"BROTHERHOOD_WAY_AND_ARCH_ST": [37.712332,-122.466893],
"SKYLINE_BLVD_AND_SLOAT_BLVD": [37.733702,-122.496578],
"VAN_NESS_AVE_AND_SACRAMENTO_ST": [37.791438,-122.422455],
"VAN_NESS_AVE_AND_GEARY_BLVD": [37.785603,-122.42146],
"SOUTH_VAN_NESS_AVE_AND_MARKET_ST": [37.775207,-122.419321],
"FOLSOM_AND_EMBARCADERO": [37.790811,-122.390196],
"ARCH_STANDALEMANY_ST": [37.711573,-122.467145],
"BURROWS_ST_AND_GIRARD_ST_M.L._KING_SCHOOL": [37.728029,-122.404998],
"FILLMORE_ST_AND_DEBOCE_AVE_TEMP_BUS_TERMINAL": [37.769499,-122.430027],
"MASON_ST_AND_EDDY_ST": [37.784065,-122.409287],
"MASON_AND_TURK": [37.783913,-122.409344],
"2ND_ST_AND_HARRISON_ST": [37.784291,-122.39505],
"3RD_ST_AND_HARRISON_ST": [37.782642,-122.397435],
"3RD_ST_AND_MISSION_ST": [37.786346,-122.402075],
"FOLSOM_AND_BEALE": [37.788671,-122.392811],
"FREMONT_AND_FOLSOM": [37.787958,-122.393603],
"HARRISON_AND_FREMONT": [37.786735,-122.392171],
"FRONT_AND_MARKET_ST": [37.791895,-122.398415],
"MISSION_ST_AND_MAIN": [37.79151,-122.395469],
"STEUART_AND_DONCHEE_WAY": [37.793766,-122.393725],
"16TH_ST_AND_CHURCH_ST": [37.764457,-122.428791],
"37TH_AVE_AND_ORTEGA_ST": [37.751298,-122.495559],
"30TH_AVE_AND_GEARY_BLVD": [37.780771,-122.490064],
"32ND_AVE_AND_ANZA_ST": [37.777737,-122.491999],
"GIRARD_ST_AND_BURROWS_ST": [37.727994,-122.404941],
"ARGUELLO_BLVD_AND_GEARY_BLVD": [37.781867,-122.458806],
"CHESTNUT_ST_AND_FILLMORE_ST": [37.800791,-122.436039],
"MISSION_ST_AND_POWER_ST": [37.746245,-122.419401],
"DALY_CITY_BART_STATION": [37.706514,-122.468632],
"BEMIS_ST_AND_ADDISON_ST": [37.737931,-122.429462],
"CALIFORNIA_ST_AND_6TH_AVE": [37.784953,-122.464469],
"22ND_ST_AND_INDIANA_ST": [37.757807,-122.391139],
"23RD_ST_AND_IOWA": [37.755202,-122.391851],
"25TH_ST_AND_PENNSYLVANIA": [37.752588,-122.392564],
"PENNSYLVANIA_ST_AND_22ND_ST": [37.75763,-122.39311],
"PENNSLVANIA_ST_AND_20TH_ST": [37.760182,-122.393348],
"NEWHALL_ST_AND_GALVEZ_ST": [37.740639,-122.387898],
"LAKE_MERCED_AND_LAKESHORE": [37.72942,-122.494056],
"LAKE_MERCED_AND_LAKESHORE": [37.729492,-122.49409],
"LINCOLN_WAY_AND_34TH_AVE": [37.764709,-122.493413],
"GEARY_BLVD_AND_ARGUELLO_BLVD": [37.781313,-122.458955],
"PRESIDIO_AVE_AND_CALIFORNIA_ST": [37.787096,-122.446828],
"CHESTNUT_ST_AND_GOUGH_ST": [37.801825,-122.428104],
"CHESTNUT_ST_AND_GOUGH_ST": [37.801914,-122.427955],
"MARKET_ST_AND_7TH_ST_NORTH": [37.78063,-122.412407],
"DUBOCE_AVE_AND_CHURCH_ST": [37.769463,-122.429122],
"DONAHUE_ST_AND_INNES_AVE": [37.728895,-122.370154],
"INNES_AVE_AND_DONAHUE_ST": [37.728833,-122.370245],
"BROADWAY_AND_SANSOME_ST": [37.798392,-122.402343],
"SANSOME_ST_AND_JACKSON_ST": [37.796527,-122.401909],
"BRYANT_ST_AND_DIVISION_ST": [37.768932,-122.410888],
"16TH_STREET_AND_OWEN_ST": [37.766722,-122.392805],
"16TH_ST_AND_OWEN_ST": [37.76665,-122.39253],
"MIGUEL_ST_AND_LAIDLEY_ST": [37.737761,-122.428294],
"MIGUEL_ST_AND_LAIDLEY_ST": [37.737752,-122.428248],
"47TH_AVE_AND_CUTLER_AVE": [37.736991,-122.505413],
"OTIS_AND_MCCOPPIN_ST": [37.771603,-122.420365],
"3ST_AND_ARMSTRONG": [37.726972,-122.393591],
"3ST._AND_ARMSTRONG": [37.726981,-122.393637],
"3RD_ST_AND_BRYANT_ST": [37.78141,-122.395832],
"TARAVEL_ST_AND17TH_AVE": [37.743087,-122.473374],
"GOLDEN_GATE_AVE_AND_LEAVENWORTH_ST": [37.781826,-122.413793],
"QUINTRA_ST_AND_43RD_AVE": [37.747584,-122.501583],
"BAYSHORE_BLVD_AND_FLOWER_ST": [37.742377,-122.405609],
"201_BAYSHORE_BLVD_E": [37.744616,-122.404187],
"BAYSHORE_BLVD_AND_OAKDALE_AVE": [37.743046,-122.405402],
"BART_KISSRIDE": [37.720694,-122.447001]
}
## Search type preferences
# The Craigslist section underneath housing that you want to search in.
# For instance, https://sfbay.craigslist.org/search/apa find apartments for rent.
# https://sfbay.craigslist.org/search/sub finds sublets.
# You only need the last 3 letters of the URLs.
CRAIGSLIST_HOUSING_SECTION = 'apa'
## System settings
# How long we should sleep between scrapes of Craigslist.
# Too fast may get rate limited.
# Too slow may miss listings.
SLEEP_INTERVAL = 20 * 60 # 20 minutes
# Which slack channel to post the listings into.
SLACK_CHANNEL = "#housing"
# The token that allows us to connect to slack.
# Should be put in private.py, or set as an environment variable.
SLACK_TOKEN = os.getenv('SLACK_TOKEN', "")
# Any private settings are imported here.
try:
from private import *
except Exception:
pass
# Any external private settings are imported from here.
try:
from config.private import *
except Exception:
pass
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
################################################################################
## raw_socket_sniff_example.py Software Developer SACKUFPI ##
## ##
## Yoandrys Peña Meriño ##
## ##
################################################################################
import socket
import struct
import binascii
import time
import uuid
ETHER_BROADCAST="\xff"*6
ETH_P_ETHER=0x0001
ETH_P_IP= '\x08\x00' #0x0800
ETH_P_ARP = '\x08\x06' #0x0806
ETH_P_EVERYTHING = 0x0003
class SniffServer(object):
def __init__(self):
self.sniff_sock = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(ETH_P_EVERYTHING)) #socket.htons(0x806)) only arp packet
def run(self):
self.capture()
def capture(self):
print 'PROTO SOURCE_MAC SOURCE_IPADDRESS:PORT ----------------> DEST_MAC DEST_IPADDRESS:PORT TTL'
while True:
try:
pkt = self.sniff_sock.recvfrom(2048)
ethhead = pkt[0][:14]
eth = struct.unpack('!6s6s2s', ethhead)
dest_mac = binascii.hexlify(eth[0])
source_mac = binascii.hexlify(eth[1])
frame_type = eth[2]#binascii.hexlify(eth[2])
if frame_type == ETH_P_ARP:
arpheader = pkt[0][14:42]
arp_hdr = struct.unpack("!2s2s1s1s2s6s4s6s4s", arpheader)
print "$$$$$$$$$$$$$$$ ARP HEADER $$$$$$$$$$$$$$$$$$$$"
print "Hardware type: ", binascii.hexlify(arp_hdr[0])
print "Protocol type: ", binascii.hexlify(arp_hdr[1])
print "Hardware size: ", binascii.hexlify(arp_hdr[2])
print "Protocol size: ", binascii.hexlify(arp_hdr[3])
print "Opcode: ", binascii.hexlify(arp_hdr[4])
print "Source MAC: ", binascii.hexlify(arp_hdr[5])
print "Source IP: ", socket.inet_ntoa(arp_hdr[6])
print "Dest MAC: ", binascii.hexlify(arp_hdr[7])
print "Dest IP: ", socket.inet_ntoa(arp_hdr[8])
print "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n"
elif frame_type == ETH_P_IP:
ipheader = pkt[0][14:34] #20 bytes
ip_hdr = struct.unpack('!BBHHHBBH4s4s', ipheader)
ip_version = ip_hdr[0] >> 4 # IPv4 = 100 or IPv6 = 110
# for normal header size minimum ip_ihl is 5 word (20 bytes) and maximun 15 word (60 bytes) (word=32bits)
ip_ihl = ip_hdr[0] & 0xF # word number of 32 bits current in datagram
ip_hdr_length = ip_ihl*4 # length in bytes
ip_tos = ip_hdr[1]
ip_total_length = ip_hdr[2]
ip_identifier = ip_hdr[3]
ip_flags = ip_hdr[4] >> 13 #only 3 bits most significant
ip_fragment_position = ip_hdr[4] & 0x1FFF #only 13 bits least significant
ip_ttl = ip_hdr[5]
ip_proto_id = ip_hdr[6]
protocols = self.get_constants('IPPROTO_')
protocol = protocols[ip_proto_id]
ip_sum_header_control = ip_hdr[7]
ip_source_ipaddress = socket.inet_ntoa(ip_hdr[8])
ip_dest_ipaddress = socket.inet_ntoa(ip_hdr[9])
slice_init = 14 + ip_hdr_length
if ip_proto_id == socket.IPPROTO_TCP:
tcpheader = pkt[0][slice_init: slice_init + 20]
tcp_hdr = struct.unpack('!HHLLHHHH', tcpheader)
tcp_source_port = tcp_hdr[0]
tcp_dest_port = tcp_hdr[1]
tcp_sequence_number = tcp_hdr[2]
tcp_acknowledge_number = tcp_hdr[3]
tcp_header_length = tcp_hdr[4] >> 12 # number of 32 bits words in tcp
tcp_total_header_length = tcp_header_length*4 #total header length in bytes
# tcp_reserved = 000 #for future use
tcp_flags = tcp_hdr[4] & 0x1FF
tcp_window_length = tcp_hdr[5]
tcp_verification_sum = tcp_hdr[6]
tcp_urgent_pointer = tcp_hdr[7]
sum_eth_ip_tcp_headers = 14 + ip_hdr_length + tcp_total_header_length
size_payload_in_tcp_package = len(pkt[0]) - sum_eth_ip_tcp_headers # size all data in tcp package
raw_payload = pkt[0][sum_eth_ip_tcp_headers:] # read all data in tcp package
# print "size_data=%s ANDDDDDDDDDDDDDD = %s" % (size_payload_in_tcp_package, raw_payload)
print '%s %s %s:%s ----------------> %s %s:%s %s' % \
(protocol[8:], source_mac, ip_source_ipaddress, tcp_source_port, dest_mac, ip_dest_ipaddress, tcp_dest_port, ip_ttl)
# print raw_payload
elif ip_proto_id == socket.IPPROTO_UDP:
udpheader = pkt[0][slice_init: slice_init + 8]#20]
udp_hdr = struct.unpack('!HHHH', udpheader)
udp_source_port = udp_hdr[0]
udp_dest_port = udp_hdr[1]
udp_header_payload_length = udp_hdr[2]
udp_verification_sum = udp_hdr[3]
sum_eth_ip_udp_headers = 14 + ip_hdr_length + 8
size_payload_in_udp_package = len(pkt[0]) - sum_eth_ip_udp_headers # size all data in tcp package
raw_payload = pkt[0][sum_eth_ip_udp_headers:] # read all data in udp package
# print "TOATL=%s HR=%s PAYLOAD=%s" % (udp_header_payload_length, 8, size_payload_in_udp_package)
# print "size_data=%s ANDDDDDDDDDDDDDD = %s" % (size_payload_in_udp_package, raw_payload)
print '%s %s %s:%s ----------------> %s %s:%s %s' % \
(protocol[8:], source_mac, ip_source_ipaddress, udp_source_port, dest_mac, ip_dest_ipaddress, udp_dest_port, ip_ttl)
elif ip_proto_id == socket.IPPROTO_ICMP:
icmpheader = pkt[0][34:42] # icmp package is 8 bytes of icmp header + IP header + first 64 bist of the datagram
icmp_hdr = struct.unpack('!B7s', icmpheader)
icmp_type = icmp_hdr[0]
icmp_description = ''
if icmp_type == 0:
icmp_description = 'ECHO REPLY'
print '%s %s %s ----------------> %s %s %s TYPE=%s (%s)' % \
(protocol[8:], source_mac, ip_source_ipaddress, dest_mac, ip_dest_ipaddress, ip_ttl, icmp_type, icmp_description)
else:
print '---------- Receiving Other packet from protocol %s ---------' % protocol[8:]
except struct.error:
print 'Invalid Header'
def get_constants(self, prefix):
"""Create a dictionary mapping socket module constants to their names."""
return dict( (getattr(socket, n), n)
for n in dir(socket)
if n.startswith(prefix)
)
def change_mac_address(self, new_mac_address):
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up
pass
def get_local_mac_address(self, interface=None):
# ifconfig eth0 | grep HWaddr |cut -dH -f2|cut -d\ -f2
# 00:26:6c:df:c3:95
local_mac = ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1])
return local_mac
def get_mac_address(self, ip_victims):
mac_victims = dict.fromkeys(ip_victims)
#return dict mac_victims = {'ip_a': 00:ab:fa:aa:01:20, 'ip_b':......}
pass
def arp_spoof(self, ip_poison, ip_victims=[], local_mac=None, interface="wlan0"):
if ip_poison:
sock_arp_spoof = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0806))
sock_arp_spoof.bind((interface, socket.htons(0x0806)))
if local_mac:
mac_source = local_mac
else: mac_source = self.get_local_mac_address()
code ='\x08\x06'
htype = '\x00\x01'
protype = '\x08\x00'
hsize = '\x06'
psize = '\x04'
opcode = '\x00\x02'
ip_poison_formated = socket.inet_aton(ip_poison)
if ip_victims:
mac_victims = self.get_mac_address(ip_victims)
arp_victims = {}
for ip_address in mac_victims:
ip_address_formated = socket.inet_aton(ip_address)
eth = mac_victims[ip_address] + mac_source + code
arp_victim = eth + htype + protype + hsize + psize + opcode + mac_source + ip_poison_formated + mac_victims[ip_address] + ip_address_formated
arp_victims[ip_address] = arp_victim
else:
pass #send all ip network Ex:192.168.1.0 mac_dest = '\xFF\xFF\xFF\xFF\xFF\xFF'
while True:
for arp_victim in arp_victims:
sock_arp_spoof.send(arp_victim)
if __name__ == '__main__':
sniff_server = SniffServer()
sniff_server.run()
|
from selenium import webdriver
from time import sleep
driver = webdriver.Ie()
driver.get("https://172.18.5.111:8888")
def login_adm():
driver.find_element_by_css_selector("a#overridelink").click()
driver.find_element_by_xpath("//*/input[@id='user']").send_keys('adm')
driver.find_element_by_xpath("//*/input[@id='pwd']").send_keys('adm')
driver.find_element_by_xpath('//*/img[@src="image/login_btn.png"]').click()
sleep(2)
driver.find_element_by_xpath('/html/body/div[9]/div[3]/button').click()
#driver.find_element_by_xpath('//button[contains(text(), "关闭")]').click()
login_adm()
driver.find_element_by_xpath('//span[contains(text(), "网桥设置")]').click()
"""
//span[contains(text(), "网桥设置")] #功能节点选择
//button[contains(text(), "关闭")]
"""
|
from migen import *
from shift_out import *
from spi_receiver import *
class PWM_stripper(Module):
def __init__(self, data):
# FSM to run through the data for each panel and generate a PWM mask
# There will be an instance of this for each panel.
self.submodules.PMW_fsm = FSM(reset_state='IDLE')
self.PWM_fsm.act('IDLE',
NextState('MASK')
)
self.PWM_fsm.act('MASK',
)
class Neon_driver(Module):
def __init(self):
# PWM clock
self.clk = Signal(10)
self.bitmask = Signal(8)
spi = SPI()
shifter = ShiftOut()
self.submodules += spi
self.submodules += shifter
# Data buffers
self.back_buffer = Signal(8*512) # Data streaming in from SPI
# Panel data channels
self.panel1 = Array(Signal(8) for _ in range(64))
self.panel_backbuffer = Signal(64)
self.panel_shift = Signal(64)
# Flags
self.SPI_complete = Signal()
# Link signals
self.back_buffer = spi.frame_buffer
self.panel_buffer1 = self.panel_shift # panel_buffer1 is what is shift out on this update of the PWM.
self.comb += [
If(self.clk == 1,
If((self.panel1[0]),
self.panel_shift
)
)
]
self.sync += [
self.clk.eq(self.clk + 1)
]
|
departure=input("Departure province:\n").upper()
arrival=input("Arrival province:\n").upper()
travel_type=input("Enter travel type:\n").capitalize()
#print("I am calculating the distance between "+departure+" and "+arrival)
file=open("provinces.txt","r")
provList=[]
name_of_city=[]
loc1=[]
loc2=[]
vehicle=["Car","Motorcycle","Bicycle"]
for i in file:
i.split(",")
provList.append(i[0:].replace("\n",""))
for i in provList:
name_of_city.append(i.split(",")[0])
loc1.append(i.split(",")[1])
loc2.append(i.split(",")[2])
while True:
if departure in name_of_city:
arrival=input("Arrival province:\n").upper()
if arrival in name_of_city:
travel_type=input("Enter travel type:\n").capitalize()
if travel_type in vehicle:
if departure==arrival:
print("Enter a different province!")
else:
arrival=input("Arrival province:\n").upper()
else:
travel_type=input("Enter travel type:\n").capitalize()
else:
print("Province not found!")
arrival=input("Arrival province:\n").upper()
else:
print("Province not found!")
departure=input("Departure province:\n").upper()
#print(name_of_city,loc1,loc2)
#print(provList)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.