Jump to content


Photo

Someone tell me I'm not dreaming!


  • Please log in to reply
28 replies to this topic

#21 Pete

Pete

    Administrator

  • Administrators
  • 1,754 posts
  • 652

  • LocationChester, England

Posted 30 March 2012 - 11:15 AM

Ouch! Those files cost a bit of money don't they?

#22 DaveP

DaveP

    Sr. Member

  • Members
  • PipPipPipPip
  • 285 posts
  • 135

  • LocationChorley, UK

Posted 30 March 2012 - 11:43 AM

Ouch! Those files cost a bit of money don't they?


No, they've open sourced them! https://www.ordnance...d/products.html Scroll down a bit for 'Code-Point Open'. The Post Office PAF file cost (and probably still does) Brewster's, but these are freebies (albeit a hefty download).
Twitter : Facebook : GitHub : G+ : Blog : Powered by C8H10N4O2 and C10H14N2

#23 Pete

Pete

    Administrator

  • Administrators
  • 1,754 posts
  • 652

  • LocationChester, England

Posted 30 March 2012 - 12:29 PM

Wow! That's pretty awesome!

There are some exciting things you can do when calculating a radius from a given postcode for finding things nearby (as the crow flies) etc, so this is very good news indeed and ideal for an upcoming project.

That's the other thing I love about these forums - you find out cool new stuff every day because the community likes to share :)

#24 DaveP

DaveP

    Sr. Member

  • Members
  • PipPipPipPip
  • 285 posts
  • 135

  • LocationChorley, UK

Posted 30 March 2012 - 12:43 PM

I found some code for calculating the nearest points (postcode x,y) using a mySQL spatial point field in each postcode record. I'm using it in an extranet project at work so if an advertiser asks one of our reps if we have other sites nearby, they can find out which, and how near. It is only on my office development system at the moment and unfortunately, the first query takes about 15 seconds to do the math on the whole 1.6 million postcodes, but once the cache is primed, subsequent queries are sub-second.

<edit>Sorry, this has gone a bit off-topic.</edit>
Twitter : Facebook : GitHub : G+ : Blog : Powered by C8H10N4O2 and C10H14N2

#25 Michael Murphy

Michael Murphy

    Distinguished Member

  • Members
  • PipPipPip
  • 92 posts
  • 53

  • LocationBasel, Switzerland

Posted 01 April 2012 - 02:41 AM

@DaveP - thanks for sharing. So you managed to use PW with 1.6 million pages (for each UK postcode)?

Interesting to hear how far people have pushed the system. The most I have tried so far is 1,800 pages. I have an upcoming project that will need ~ 100,000 pages, so wondering if PW would be suitable. It's not really a public facing website, more a tool that will be used by a few people for analysing and aggregating data, like your nearby intranet tool.

#26 DaveP

DaveP

    Sr. Member

  • Members
  • PipPipPipPip
  • 285 posts
  • 135

  • LocationChorley, UK

Posted 02 April 2012 - 03:04 AM

Well, the system uses the postcode file, but I haven't actually made PW aware of that table, due to the lack of a spatial field type in PW. And just thinking about my post above, it doesn't churn through all 1.6million, just the ones referenced by other records. The point about PW is that using mySQL, it is bound to be fast and scalable.
Twitter : Facebook : GitHub : G+ : Blog : Powered by C8H10N4O2 and C10H14N2

#27 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,517 posts
  • 842

  • LocationVihti, Finland

Posted 02 April 2012 - 03:12 AM

With huge amount of pages you could run scalability issues on some file systems (due the fact that PW automatically creates a folder for each page). Though this has been discussed and fix is coming at some point (can't find the topic now).

#28 diogo

diogo

    Hero Member

  • Moderators
  • 1,973 posts
  • 1059

  • LocationPorto, Portugal

Posted 02 April 2012 - 03:52 AM

It's here http://processwire.c...tsfiles-folder/

#29 Michael Murphy

Michael Murphy

    Distinguished Member

  • Members
  • PipPipPip
  • 92 posts
  • 53

  • LocationBasel, Switzerland

Posted 03 April 2012 - 04:17 PM

Thanks for the feedback and extra information, good to hear.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users