{ "cells": [ { "cell_type": "code", "execution_count": 235, "id": "4750c48d", "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import pandas as pd\n", "from io import StringIO\n", "import geopy.distance # https://geopy.readthedocs.io/en/stable/#module-geopy.distance\n", "import seaborn as sns\n", "from scipy.spatial.distance import cdist\n", "from scipy.optimize import minimize\n", "from scipy.ndimage.interpolation import rotate" ] }, { "cell_type": "code", "execution_count": 236, "id": "d5bbd3ec", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Place Name | \n", "Latitude | \n", "Longitude | \n", "
---|---|---|---|
0 | \n", "Ra'anana, Israel | \n", "32.184448 | \n", "34.870766 | \n", "
1 | \n", "Bethlehem, Israel | \n", "31.705791 | \n", "35.200657 | \n", "
2 | \n", "Ashdod, Israel | \n", "31.801447 | \n", "34.643497 | \n", "
3 | \n", "Nazareth, Israel | \n", "32.699635 | \n", "35.303547 | \n", "
4 | \n", "Bat Yam, Tel-Aviv, Israel | \n", "32.017136 | \n", "34.745441 | \n", "
5 | \n", "Tel Aviv-Yafo, Israel | \n", "32.109333 | \n", "34.855499 | \n", "
6 | \n", "Haifa, Israel | \n", "32.794044 | \n", "34.989571 | \n", "
7 | \n", "Karmiel, Israel | \n", "32.919945 | \n", "35.290146 | \n", "
8 | \n", "Herzliya, Tel-Aviv, Israel | \n", "32.166313 | \n", "34.843311 | \n", "
9 | \n", "Rehovot, Israel | \n", "31.894756 | \n", "34.809322 | \n", "
10 | \n", "Jerusalem, Israel | \n", "31.771959 | \n", "35.217018 | \n", "