Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postcode filtering for Campers #23

Open
artitudinale1 opened this issue May 22, 2016 · 13 comments
Open

Postcode filtering for Campers #23

artitudinale1 opened this issue May 22, 2016 · 13 comments

Comments

@artitudinale1
Copy link
Collaborator

It wouldn't be nice to have filter for zone in Campers?
Maybe filtering for the first 3 letter of the postcode, so campers would just inset those.
Looking how many Post Code in London that could be a challenge ......
https://www.doogal.co.uk/london_postcodes.php
But maybe a nice feature to have ? what you think?

@chris-alexander
Copy link
Contributor

Sounds like a good idea. Maybe if postcode is too much we could start with the London Borough?

@dlewis87
Copy link
Collaborator

dlewis87 commented Jun 2, 2016

Is it worth adding this in now to the JSON? Then at least it's there to use if we want...

@artitudinale1
Copy link
Collaborator Author

Totally we could start to planning and have that with Json data

@dlewis87
Copy link
Collaborator

dlewis87 commented Jun 2, 2016

Ok I would say to use first part of postcode for those of us outside of London 😃

@artitudinale1
Copy link
Collaborator Author

Can we just covered area at https://www.doogal.co.uk/london_postcodes.php or we need more? what you think?

@dlewis87
Copy link
Collaborator

dlewis87 commented Jun 2, 2016

Well my postcode is in that... so should be ok!

@artitudinale1
Copy link
Collaborator Author

We should looking for API with postcode if exist.
Otherwise create array by ourself.
Break in small issues

@hasansan07
Copy link
Contributor

What kind of data are we looking for? Looking an address from a postcode or geomapping? Here is an api vendor for UK postcodes: http://www.uk-postcodes.com/api

@artitudinale1
Copy link
Collaborator Author

Thanks for that , interesting!
I guess we need some data to filter campers that are "near" to a given postcode.
So maybe we can set a function comparing post code (taken as filtering input) and postcode in campers Json returning the near ones.
Setting near one with a reasonable distance we can choose.
What you think? just an idea..

@hasansan07
Copy link
Contributor

We can look for a specific postcode with this api, which will return all postcodes within a radius: http://uk-postcodes.com/postcode/nearest?postcode=[postcode]&miles=[distance in miles]&format=[xml|csv|json]

As an enhancement, we can cross-check from another source (a local json file which is in use for campers data) to visualise in a map with pointing camper photo.

@artitudinale1
Copy link
Collaborator Author

Yep absolutely !
can we split this in issues:
First use specific postcode with the api you mention
Second add enhancement suggested ?

Feel free to create those and if you want get started pls do so.
It would be nice if you listed yourself as campers in JSON :)

@hasansan07
Copy link
Contributor

Okay, I can take both. I'll post my questions from gitter and add here as well.

@artitudinale1
Copy link
Collaborator Author

Pls go a head.
I suggest to split because maybe someone else can be interested to work on it...any questions just let us know and thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants