freeCodeCampLondon / FCCLND

Portal for FCC London Campers
https://FreeCodeCampLondon.github.io/FCCLND/
MIT License
32 stars 16 forks source link

Postcode filtering for Campers #23

Open artitudinale1 opened 8 years ago

artitudinale1 commented 8 years ago

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 commented 8 years ago

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

dlewis87 commented 8 years ago

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

artitudinale1 commented 8 years ago

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

dlewis87 commented 8 years ago

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

artitudinale1 commented 8 years ago

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

dlewis87 commented 8 years ago

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

artitudinale1 commented 8 years ago

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

hasansan07 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

artitudinale1 commented 8 years ago

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! :)