# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + [markdown] id="wWMjHGp9VWoW" colab_type="text"
# # **Unsafe area near me** & 
#
# ---
# # **unsafe areas in given routes**

# + id="yzaPSG7ocPf8" colab_type="code" outputId="4c76bd73-993f-495f-e328-6d9ac77966b3" colab={"base_uri": "https://localhost:8080/", "height": 486}
import json
data_near_me = [{"lat":"31.2456","lon":"72.3456","detail":"xyz"},{"lat":"33.2456","lon":"82.3456","detail":"abc"},{"lat":"39.2456","lon":"62.3456","detail":"pqr"},{"lat":"41.2456","lon":"77.3456","detail":"xyz1"},{"lat":"35.2456","lon":"74.3456","detail":"xyz1"}]
json_data = json.dumps(data_near_me,indent=3,sort_keys=True)
print(json_data)

# + [markdown] id="dc7zdA_fVtSj" colab_type="text"
# # **Details to send SOS**
#
# ---
# police station ID and prime contact id
#

# + id="AQBDE26aUwvY" colab_type="code" outputId="29bf4f5d-e2e5-45fc-ea98-c55bd3a2bcf2" colab={"base_uri": "https://localhost:8080/", "height": 121}
sos_detail = [{"prime_contact":"Xabps1234nsmp","nearest_police":"XXppnash4568mp"}]
sos_data = json.dumps(sos_detail,indent=3,sort_keys=True)
print(sos_data)

# + [markdown] id="JjQ0QximXGEv" colab_type="text"
#

StarcoderdataJupyterScriptsDedupFiltered