Skip to content

Commit

Permalink
changed km value
Browse files Browse the repository at this point in the history
  • Loading branch information
withoutwaxaryan committed May 30, 2024
1 parent 1ea4dd0 commit 175b639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Website/pages/closest_supermarket.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def add_supermarket_marker_line_customer(mymap, customer, supermarket):

marker = folium.Marker(
location=[supermarket['latitude'], supermarket['longitude']],
popup=supermarket['store_name'] + '\n' + str(supermarket['distance_from_customer']) + ' km',
popup=supermarket['store_name'] + '\n' + str("{:.2f}".format(supermarket['distance_from_customer']) + ' KM'),
icon=folium.Icon(color='blue')
)
marker.add_to(mymap)
Expand Down

0 comments on commit 175b639

Please sign in to comment.