--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F02G9gW64FAPfKYHjEGf28hp34ePmg%3Dd%2BtVtHNSEs%2BqQg%40mail.gmail.com.
There’s map-box too if you w’d like to use it. https://www.mapbox.com/
Sent from Mail for Windows 10
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPKaoD3WGBis436dRPzyc96UsKq6SUg8RfyFV%2BkvPC1gsA%40mail.gmail.com.
import pgeocodeimport folium
def zipcode_to_map(country_code, postal_code):country_code = pgeocode.Nominatim(country_code)zip_code = country_code.query_postal_code(postal_code)postal_code = zip_code['postal_code']multiple_zip_codes = country_code.query_postal_code(["560034", "560083"])m = folium.Map(location=[zip_code['latitude'], zip_code['longitude']], zoom_start=9, detect_retina=True, control_scale=False)
m.save(f'{postal_code}-map.html') print(m) zipcode_to_map('in','515411')Result is here >>
python sam.py
<folium.folium.Map object at 0x0000020675490E48>Thanks,~Ram
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/78804b7c-c0c4-4258-bafb-809aa349f4b9%40googlegroups.com.