This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "-149.8935557": -149.9054948, | |
| "61.21759217": 61.19533942, | |
| "Starbucks - AK - Anchorage 00001": "Starbucks - AK - Anchorage 00002", | |
| "601 West Street_601 West 5th Avenue_Anchorage, Alaska 99501_907-277-2477": "Carrs-Anchorage #1805_1650 W Northern Lights Blvd_Anchorage, Alaska 99503_907-339-0500" | |
| }, | |
| { | |
| "-149.8935557": -149.7522, | |
| "61.21759217": 61.2297, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "-149.8935557": -149.9054948, | |
| "61.21759217": 61.19533942, | |
| "Starbucks - AK - Anchorage 00001": "Starbucks - AK - Anchorage 00002", | |
| "601 West Street_601 West 5th Avenue_Anchorage, Alaska 99501_907-277-2477": "Carrs-Anchorage #1805_1650 W Northern Lights Blvd_Anchorage, Alaska 99503_907-339-0500" | |
| }, | |
| { | |
| "-149.8935557": -149.7522, | |
| "61.21759217": 61.2297, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public addMarker() { | |
| const marker = new google.maps.Marker({ | |
| position: {lat: 0, lng: 0}, | |
| map: this.map | |
| }) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ngOnInit() { | |
| const url = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBAyMH-A99yD5fHQPz7uzqk8glNJYGEqus'; | |
| this.loadScript(url).then(() => { | |
| this.loadMap() | |
| this.addMarker(); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "_id": "5cadc6723df0f2a8823c73d7", | |
| "latitude": -65.663127, | |
| "longitude": 32.179976 | |
| }, | |
| { | |
| "_id": "5cadc6721e27e79449857d75", | |
| "latitude": -20.612127, | |
| "longitude": -54.907892 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, Inject } from '@angular/core'; | |
| import { DOCUMENT } from '@angular/common'; | |
| import data from './data'; | |
| @Component({ | |
| selector: 'app-child', | |
| templateUrl: './child.component.html', | |
| styleUrls: ['./child.component.css'] | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private loadScript(url) { | |
| return new Promise((resolve, reject) => { | |
| if ((window as any).google && (window as any).google.maps) { | |
| resolve(); | |
| return; | |
| } | |
| const script = this.renderer2.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = url; | |
| script.text = ``; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, Inject, Renderer2, AfterViewInit } from '@angular/core'; | |
| import { DOCUMENT } from '@angular/common'; | |
| declare const google; | |
| @Component({ | |
| selector: 'app-map', | |
| templateUrl: './map.component.html', | |
| styleUrls: ['./map.component.css'] | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TrieNode { | |
| constructor(value, wordEnd = 0) { | |
| this.value = value; | |
| this.wordEnd = wordEnd; | |
| this.count = 0; | |
| this.children = {}; | |
| } | |
| } | |
| class Trie { | |
| constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Observable { | |
| constructor(subscribe) { | |
| this._subscribe = subscribe; | |
| } | |
| subscribe(observer){ | |
| return this._subscribe(observer); | |
| } | |
| retry(num) { | |
| const self = this; |