[Script] WMEOpenData v2.36 (20171029)

[ img ]

Moderators: Unholy, Timbones

Re: [Script] WMEOpenData v1.30 (20130503)

Postby Twister-UK » Fri May 03, 2013 10:18 pm

Fixed the "undefined" locality bug in Chrome, and reduced the likelihood of a segment being highlighted by NameCheck when its name is OK - seems that wazeModel.segments.objects[].getCenter() returns results that are, quite frankly, a giant steaming pile of masculine bovine waste matter... Script now calculates the true segment centre itself, resulting in far better matching to the OS bounding boxes.

http://userscripts.org/scripts/show/137249
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.31 (20130513)

Postby Twister-UK » Mon May 13, 2013 1:03 pm

It doesn't really feel like 6 months have gone by since the last OS Locator update... Can't argue with the calendar though, nor the appearance on the OpenData site of a shiny new May 2013 dataset, so here's 1.31 in response.

http://userscripts.org/scripts/show/137249
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.32 (20130520)

Postby Twister-UK » Mon May 20, 2013 12:26 pm

I swear the placename uniqueness code will drive me slowly but surely insane - every time I think it's been fixed once and for all, along comes another placename example that throws it a curveball... until then however, 1.32 now at least knows that Leeds isn't just a sleepy hamlet nestling in the Kentish countryside.

http://userscripts.org/scripts/show/137249
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.32 (20130520)

Postby Twister-UK » Wed May 22, 2013 2:18 pm

NorfolkMustard wrote:;)

How are you getting the uniqueness? Would it benefit from a DB lookup rather than a set of .js files?


It performs a binary search through the pre-sorted placename list to see if the placename exists at all, and if so, it then does a local linear search to see if the name is unique. The last time I did any DB development work was during my IT GCSE in the late 80's, so I've got no idea if storing the names in a DB would be better :?
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33 (20130522)

Postby Twister-UK » Wed May 22, 2013 2:23 pm

Just noticed a problem with street names in the form "Something Road/Avenue/etc. SomethingElse" not being correctly abbreviated to "Something Rd/Ave/etc SomethingElse", which was both preventing the script from correctly applying such names to un-named segments and was also generating false positives and negatives from the NameCheck results in areas where such names were already present in one form or another (or even both on adjacent segments of the same road...).

The abbreviation function in 1.33 has been almost entirely rewritten to cope with (fingers crossed) any arrangement of words within the name:

http://userscripts.org/scripts/show/137249
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33 (20130522)

Postby Twister-UK » Fri May 24, 2013 8:40 pm

Thanks, haven't had time to look at it yet but I'll try and do so over the weekend (kids, family engagements and other time-leeches permitting...)
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33 (20130522)

Postby Twister-UK » Fri May 24, 2013 8:54 pm

For Chrome users, a crx-packaged version is now available from

http://crx.chizzum.com/WMEOpenData.crx
http://crx.chizzum.com/OpenDataFullHeight.crx

The first crx file is the main script, the second one contains the support script that forces the OS OpenData mapping site to use the entire browser window to display the maps - it's not required, but it makes using the OpenData maps a lot nicer...
Last edited by Twister-UK on Mon Sep 02, 2013 7:38 pm, edited 1 time in total.
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33.1 (20130529)

Postby Twister-UK » Wed May 29, 2013 10:12 pm

Maintenance release, adding a unique prefix to all globvar and function names to avoid clashes with other scripts, after noticing that, in Chrome with WMECH installed as well, WMEOD was claiming to be version 1.6.4...

Firefox+Greasemonkey version: http://userscripts.org/scripts/show/137249
Chrome packaged version: http://crx.chizzum.com/WMEOpenData.crx
Last edited by Twister-UK on Mon Sep 02, 2013 7:39 pm, edited 1 time in total.
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33.1 (20130529)

Postby Twister-UK » Thu May 30, 2013 1:07 pm

xteejx wrote:Quick question. Have you updated to the recent OS Locator release for the data?

Sent from my GT-I9505 using Tapatalk 2


Yes, that was the 1.31 release a couple of weeks ago.
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

Re: [Script] WMEOpenData v1.33.1 (20130529)

Postby Twister-UK » Sun Jun 30, 2013 5:22 pm

xteejx wrote:Uninstalled all extensions and chroem itself. Rebooted, installed Chrome and just the WMEOpenData extension and nothing.

It does appear to load it, as the scroll bar appears on the right and an extra white space appears at the bottom of the page on the editor, but nothing other than that. Twister any ideas mate?


That sounds a lot like the behaviour if you try using the greasemonkey user.js version on Chrome v27 rather than the Chrome .crx version - did you remember to use the .crx version when you reinstalled?
Twister-UK
Beta tester
Beta tester
 
Posts: 2901
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 438 times
Been thanked: 2587 times

PreviousNext

Return to United Kingdom

Who is online

Users browsing this forum: No registered users