Re: Any free MAP API available

2020-06-10 Thread Ram
 hello Ranga,

Thank you very much posting very useful direction and all the respective
pointers. I really appreciate it.

This is what we tried so far, but we are seeing an error from our
execution. Could you please let us know what we are missing?

import pgeocode
import 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


Thanks,
~Ram


On Thu, Jun 4, 2020 at 9:24 AM RANGA BHARATH JINKA 
wrote:

> You can refer these links.
>
>
> https://towardsdatascience.com/visualizing-data-at-the-zip-code-level-with-folium-d07ac983db20
>
> https://morioh.com/p/d896544d6977
>
> https://towardsdatascience.com/making-3-easy-maps-with-python-fb7dfb1036
>
> On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>>
>> Hi,
>>
>> We need to add location map based on the zip code in our DJango web
>> application. Is there any free API available out there? if you have used it
>> already could you suggest one?
>>
>> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BOi5F3h%3DigcwBi-fhqjRaDggkMz75d7UWbeKawfjR%3DQfdDTPg%40mail.gmail.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
import pgeocode
import folium


'''
Provide a Country code and postal code.
It will generate a map in a html file based on these details.
Used pgeocode and folium packages.
'''

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')

zipcode_to_map('in','515411')

I wrote this function.You can use this function to generate map using a 
zipcode and countrycode. Hope it will be useful for you.

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b985c15-b523-497b-91a4-8b08586e7f28%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, You can convert zipcode to latitude and longitude using this module. 
And use those in your map using folium.

https://pypi.org/project/pgeocode/

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/16faa60b-b52b-492c-a1d4-3e03e29f96fa%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
You can refer these links.

https://towardsdatascience.com/visualizing-data-at-the-zip-code-level-with-folium-d07ac983db20

https://morioh.com/p/d896544d6977

https://towardsdatascience.com/making-3-easy-maps-with-python-fb7dfb1036

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> 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+unsubscr...@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.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, You can use folium module in python to achieve this. Link to module.

Folium Maps 

Hope this helps. All the best.

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5d7f945f-2472-487b-ba8d-52b4cc17256a%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, I created this python module. It will convert zipcode to a html map. 
You can use this. I will link the example usage github link.

https://github.com/bharathjinka09/zipcode_to_map

https://pypi.org/project/zipcode-to-map/

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/089c1398-6656-41fc-a595-475cee1f1831%40googlegroups.com.


RE: Any free MAP API available

2020-06-04 Thread Vishesh Mangla
There’s map-box too if you w’d like to use it.  https://www.mapbox.com/ Sent from Mail for Windows 10 From: meera ganganiSent: 04 June 2020 09:22To: django-users@googlegroups.comSubject: Re: Any free MAP API available you can use Geo-Django Library available in django  On Thu, Jun 4, 2020 at 3:15 AM Ram <ram.mullap...@gmail.com> wrote:Hi, We need to add location map based on the zip code in our DJango web application. Is there any free API available out there? if you have used it already could you suggest one? 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+unsubscr...@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.-- 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+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANaPPPKaoD3WGBis436dRPzyc96UsKq6SUg8RfyFV%2BkvPC1gsA%40mail.gmail.com. 



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5C45CF8F-5DA7-4933-A87F-BC3CAA3CDCC5%40hxcore.ol.


Re: Any free MAP API available

2020-06-03 Thread meera gangani
you can use* Geo-Django *Library available in django


On Thu, Jun 4, 2020 at 3:15 AM Ram  wrote:

> Hi,
>
> We need to add location map based on the zip code in our DJango web
> application. Is there any free API available out there? if you have used it
> already could you suggest one?
>
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANaPPPKaoD3WGBis436dRPzyc96UsKq6SUg8RfyFV%2BkvPC1gsA%40mail.gmail.com.


Any free MAP API available

2020-06-03 Thread Ram
Hi,

We need to add location map based on the zip code in our DJango web
application. Is there any free API available out there? if you have used it
already could you suggest one?

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+unsubscr...@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.