Git Product home page Git Product logo

Comments (7)

jf1 avatar jf1 commented on June 19, 2024

I noticed similar when searching for M328AA - the only results shown are the MTW and WMC (not relevant this year) and the results don't show the GMCA Mayor (a live election).

Additionally, I've just searched for Manchester then Greater Manchester and it only tried to match on candidate names - perhaps first check if the search term matches a high-level Nominatim UK place name?

The only reliable and quick way I've come up with for finding the GM Mayoral election is to enter a candidate name that I already know, but obviously this option isn't available to most people searching for info about candidate names.

from yournextrepresentative.

mhl avatar mhl commented on June 19, 2024

(Here's a little triage, but I'm only a vaguely aware of how @symroe is handling all these new elections, so this is all a bit superficial.)

That postcode is used for this MapIt query: http://mapit.democracyclub.org.uk/postcode/cb21by

That only returns areas of type: CED, CTY, DIS, DIW, EUR, WMC, WMP, EUP and PDG.

However, the elections you're expecting to be returned have different AreaTypes associated with them:

  • local.cambridgeshire.2017-05-04 has area types with names 'CED' and one that I assume is an error since its name is: ''
  • mayor.cambridgeshire-and-peterborough.2017-05-04 has one area type with name 'combined-authority'

The only one of those that can work with the code as it ias at the moment is CED. That causes a lookup for an area with identifier unit_id:1277 (formed from format_code_from_area) and type CED. There's no such Area, though - those with type CED are: https://gist.github.com/mhl/f04d0930a9b506283adf18438be6a438

So it looks like there might be multiple things going wrong here :(

from yournextrepresentative.

symroe avatar symroe commented on June 19, 2024

from yournextrepresentative.

jf1 avatar jf1 commented on June 19, 2024

From memory, CEDs aren't straightforward wrt unique identifiers. CAs are, and their boundary data is available here

from yournextrepresentative.

symroe avatar symroe commented on June 19, 2024

I've deployed a change to the lookup code in the DC fork that uses our election service to lookup elections. That service has the new boundaries in, so we're able to return results for the missing elections now :)

from yournextrepresentative.

andylolz avatar andylolz commented on June 19, 2024

Looks fixed for the reported postcode:
https://candidates.democracyclub.org.uk/search?q=CB2+1BY

from yournextrepresentative.

mhl avatar mhl commented on June 19, 2024

I don't know why this says that I reopened this. I suppose I might have clicked "reopen" by accident, but I certainly didn't intend to!

from yournextrepresentative.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.