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 React, { useState, useEffect } from 'react'; | |
| import { Link } from 'react-router-dom'; | |
| import { render } from '@testing-library/react'; | |
| import axios from 'axios' | |
| import Map from 'react-store-locator' | |
| function pythagoreanDistanceBetweenPoints(lat1, lon1, lat2, lon2) { | |
| const R = 6371e3; | |
| const x = (lon2 - lon1) * Math.cos((lat1 + lat2) / 2); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Happy Citizens</title> | |
| <!-- update the version number as needed --> | |
| <script defer src="/__/firebase/9.13.0/firebase-app-compat.js"></script> | |
| <!-- include only the Firebase features as you need --> |
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
| using Godot; | |
| using System; | |
| using System.Collections.Generic; | |
| // TODO - run all of this in a new thread | |
| public class AStarMap : Spatial | |
| { | |
| private Dictionary<string, int> points = new Dictionary<string, int>(); | |
| private AStar aStar; |