Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
  • Loading branch information
Kharude, Sachin committed Sep 6, 2021
1 parent bd4f6a3 commit facfd5c
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions docs/notebooks/destination_weather.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"execution_count": null,
"source": [
"import os\n",
"os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here."
"\n",
"os.environ[\"LS_API_KEY\"] = \"MY-API-KEY\" # replace your API key here."
],
"outputs": [],
"metadata": {}
Expand All @@ -24,10 +25,7 @@
"LS_API_KEY = os.environ.get(\"LS_API_KEY\")\n",
"ls = LS(api_key=LS_API_KEY)\n",
"\n",
"result1 = ls.get_dest_weather(\n",
" at=[19.1503, 72.8530],\n",
" products=[DEST_WEATHER_PRODUCT.observation]\n",
")\n",
"result1 = ls.get_dest_weather(at=[19.1503, 72.8530], products=[DEST_WEATHER_PRODUCT.observation])\n",
"\n",
"results = []\n",
"m = Map(\n",
Expand All @@ -37,12 +35,12 @@
")\n",
"for observation in result1.places[0][\"observations\"]:\n",
" results.append(\n",
" dict(\n",
" lat=observation[\"place\"][\"location\"][\"lat\"],\n",
" lng=observation[\"place\"][\"location\"][\"lng\"],\n",
" data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n",
" )\n",
" dict(\n",
" lat=observation[\"place\"][\"location\"][\"lat\"],\n",
" lng=observation[\"place\"][\"location\"][\"lng\"],\n",
" data=observation[\"description\"] + \" \" + str(observation[\"temperature\"]) + \"C\",\n",
" )\n",
" )\n",
"\n",
"provider = MarkerCluster(data_points=results, show_bubble=True)\n",
"layer = ObjectLayer(provider=provider)\n",
Expand All @@ -60,10 +58,10 @@
"from datetime import datetime\n",
"\n",
"result2 = ls.get_weather_alerts(\n",
" geometry=Point(coordinates=[15.256, 23.456]),\n",
" start_time=datetime.now(),\n",
" width=3000,\n",
" )\n",
" geometry=Point(coordinates=[15.256, 23.456]),\n",
" start_time=datetime.now(),\n",
" width=3000,\n",
")\n",
"\n",
"print(result2)"
],
Expand Down

0 comments on commit facfd5c

Please sign in to comment.