Postcode Search

48 views
Skip to first unread message

dtdave

unread,
Aug 23, 2016, 5:19:53 PM8/23/16
to Django users
I am looking to add the facility to "find my nearest" by postcode to my django app.

Does anyone have any recommendations for this facility?

Many thanks in advance.

Derek

unread,
Aug 24, 2016, 10:10:13 AM8/24/16
to Django users
The Google geocoding API can help - see:
https://developers.google.com/maps/documentation/geocoding/intro
Their example shows the ZIP code being returned in the JSON/XML response.

Or there is: https://www.zipcodeapi.com/

Of course, you need to adhere to the terms&conditions of these service providers.

David Turner

unread,
Aug 25, 2016, 5:26:49 AM8/25/16
to django...@googlegroups.com
Thanks for this but am looking for Uk Postcodes. Will continue my research.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/-DQWcH9zkbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Ledermann

unread,
Aug 25, 2016, 8:00:56 AM8/25/16
to django...@googlegroups.com
have a look at https://github.com/cleder/os-opendata-edubase

import of uk postcodes from ordonance survey:
https://github.com/cleder/os-opendata-edubase/blob/master/fabric/fabfile.py#L286

get points near to:

https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L63
or
https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L120

HTH

On 25 August 2016 at 10:25, 'David Turner' via Django users
<django...@googlegroups.com> wrote:
> Thanks for this but am looking for Uk Postcodes. Will continue my research.
>
> On 24 August 2016 at 15:10, Derek <game...@gmail.com> wrote:
>>
>> The Google geocoding API can help - see:
>> https://developers.google.com/maps/documentation/geocoding/intro
>> Their example shows the ZIP code being returned in the JSON/XML response.
>>
>> Or there is: https://www.zipcodeapi.com/
>>
>> Of course, you need to adhere to the terms&conditions of these service
>> providers.
>>
>>
>> On Tuesday, 23 August 2016 23:19:53 UTC+2, dtdave wrote:
>>>
>>> I am looking to add the facility to "find my nearest" by postcode to my
>>> django app.
>>>
>>> Does anyone have any recommendations for this facility?
>>>
>>> Many thanks in advance.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/-DQWcH9zkbA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users...@googlegroups.com.
>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALwQ%2B-tr%2Brz3NHLhwBA-tCXpguR5ozakyf7uo5Dedh-XYcD1rA%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

David Turner

unread,
Aug 25, 2016, 8:24:41 AM8/25/16
to django...@googlegroups.com
Thanks for this. Exactly what I am looking for.


>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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

> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALwQ%2B-tr%2Brz3NHLhwBA-tCXpguR5ozakyf7uo5Dedh-XYcD1rA%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/-DQWcH9zkbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Christian Ledermann

unread,
Aug 30, 2016, 7:18:04 AM8/30/16
to django...@googlegroups.com
also have a look at
http://stackoverflow.com/questions/19703975/django-sort-by-distance/35896358#35896358

On 25 August 2016 at 13:24, 'David Turner' via Django users
>> >> django-users...@googlegroups.com.
>> >> To post to this group, send email to django...@googlegroups.com.
>> >> Visit this group at https://groups.google.com/group/django-users.
>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > 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.
>> django-users...@googlegroups.com.
>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABCjzWqJoyA454Grv0GbZ57KyAe%3D08E9hdaT78sCp7JRO0hnYg%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALwQ%2B-uX1q0FW77svsBn%3DJv2dJ0tjuxOxnapAd%2B3fBaDYjFiVw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages