Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,21 +5,22 @@ import pandas as pd
|
|
| 5 |
|
| 6 |
# Predefined data for Shell offices and their latitude and longitude
|
| 7 |
locations = [
|
| 8 |
-
{"Office": "Shell
|
| 9 |
-
{"Office": "Shell House", "Location": "Singapore", "Latitude": 1.3521, "Longitude": 103.8198},
|
| 10 |
-
{"Office": "Shell Technology Center", "Location": "Houston, Texas, USA", "Latitude": 29.7604, "Longitude": -95.3698},
|
| 11 |
-
{"Office": "Shell India Markets Pvt Ltd", "Location": "Bengaluru, India", "Latitude": 12.9716, "Longitude": 77.5946},
|
| 12 |
{"Office": "Shell Australia", "Location": "Perth, Australia", "Latitude": -31.9505, "Longitude": 115.8605},
|
|
|
|
| 13 |
{"Office": "Shell Canada", "Location": "Calgary, Alberta, Canada", "Latitude": 51.0447, "Longitude": -114.0719},
|
| 14 |
-
{"Office": "Shell Argentina", "Location": "Buenos Aires, Argentina", "Latitude": -34.6037, "Longitude": -58.3816},
|
| 15 |
-
{"Office": "Shell Nigeria", "Location": "Lagos, Nigeria", "Latitude": 6.5244, "Longitude": 3.3792},
|
| 16 |
{"Office": "Shell China", "Location": "Beijing, China", "Latitude": 39.9042, "Longitude": 116.4074},
|
| 17 |
-
{"Office": "Shell
|
|
|
|
| 18 |
{"Office": "Shell Germany", "Location": "Hamburg, Germany", "Latitude": 53.5511, "Longitude": 9.9937},
|
| 19 |
{"Office": "Shell Netherlands", "Location": "The Hague, Netherlands", "Latitude": 52.0705, "Longitude": 4.3007},
|
| 20 |
-
{"Office": "Shell South Africa", "Location": "Cape Town, South Africa", "Latitude": -33.9249, "Longitude": 18.4241},
|
| 21 |
{"Office": "Shell Mexico", "Location": "Mexico City, Mexico", "Latitude": 19.4326, "Longitude": -99.1332},
|
| 22 |
-
{"Office": "Shell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
]
|
| 24 |
|
| 25 |
# Function to get carbon intensity for a specific latitude and longitude
|
|
|
|
| 5 |
|
| 6 |
# Predefined data for Shell offices and their latitude and longitude
|
| 7 |
locations = [
|
| 8 |
+
{"Office": "Shell Argentina", "Location": "Buenos Aires, Argentina", "Latitude": -34.6037, "Longitude": -58.3816},
|
|
|
|
|
|
|
|
|
|
| 9 |
{"Office": "Shell Australia", "Location": "Perth, Australia", "Latitude": -31.9505, "Longitude": 115.8605},
|
| 10 |
+
{"Office": "Shell Brazil", "Location": "Rio de Janeiro, Brazil", "Latitude": -22.9068, "Longitude": -43.1729},
|
| 11 |
{"Office": "Shell Canada", "Location": "Calgary, Alberta, Canada", "Latitude": 51.0447, "Longitude": -114.0719},
|
|
|
|
|
|
|
| 12 |
{"Office": "Shell China", "Location": "Beijing, China", "Latitude": 39.9042, "Longitude": 116.4074},
|
| 13 |
+
{"Office": "Shell India Markets Pvt Ltd", "Location": "Bengaluru, India", "Latitude": 12.9716, "Longitude": 77.5946},
|
| 14 |
+
{"Office": "Shell Chennai Center", "Location": "Chennai, India", "Latitude": 12.94, "Longitude": 80.21},
|
| 15 |
{"Office": "Shell Germany", "Location": "Hamburg, Germany", "Latitude": 53.5511, "Longitude": 9.9937},
|
| 16 |
{"Office": "Shell Netherlands", "Location": "The Hague, Netherlands", "Latitude": 52.0705, "Longitude": 4.3007},
|
|
|
|
| 17 |
{"Office": "Shell Mexico", "Location": "Mexico City, Mexico", "Latitude": 19.4326, "Longitude": -99.1332},
|
| 18 |
+
{"Office": "Shell Nigeria", "Location": "Lagos, Nigeria", "Latitude": 6.5244, "Longitude": 3.3792},
|
| 19 |
+
{"Office": "Shell Russia", "Location": "Moscow, Russia", "Latitude": 55.7558, "Longitude": 37.6173},
|
| 20 |
+
{"Office": "Shell Centre", "Location": "London, United Kingdom", "Latitude": 51.5074, "Longitude": -0.1278},
|
| 21 |
+
{"Office": "Shell House", "Location": "Singapore", "Latitude": 1.3521, "Longitude": 103.8198},
|
| 22 |
+
{"Office": "Shell South Africa", "Location": "Cape Town, South Africa", "Latitude": -33.9249, "Longitude": 18.4241},
|
| 23 |
+
{"Office": "Shell Technology Center", "Location": "Houston, Texas, USA", "Latitude": 29.7604, "Longitude": -95.3698}
|
| 24 |
]
|
| 25 |
|
| 26 |
# Function to get carbon intensity for a specific latitude and longitude
|