opennorth / represent-canada

Point or postcode to electoral district service for Canada, its provinces and municipalities
http://represent.opennorth.ca/
MIT License
66 stars 9 forks source link

new Quebec electoral map #111

Closed vwasteels closed 6 years ago

vwasteels commented 6 years ago

DGEQ updated its electoral map, does the API reflect this change ?

thank you

jpmckinney commented 6 years ago

What's the date of the DGEQ update?

jpmckinney commented 6 years ago

Also, please provide links to any information from DGEQ about the update.

jbbelanger commented 6 years ago

@jpmckinney The new map has been adopted in March of last year and will be officially effective at the start of the electoral campaing (Aug. 28). https://lacarte.electionsquebec.qc.ca/fr/rapport_final.php https://www.electionsquebec.qc.ca/francais/provincial/carte-electorale/entites-administratives-liees-a-un-code-postal-2011.php https://www.electionsquebec.qc.ca/francais/provincial/carte-electorale/geometrie-des-circonscriptions-provinciales-du-quebec.php

jpmckinney commented 6 years ago

The boundaries are now available via the API. Thanks for reporting!

http://represent.opennorth.ca/boundary-sets/quebec-electoral-districts-2017/

vwasteels commented 6 years ago

thanks for this update, I'm working on it just now, and it seems there is an issue with the encoding, ex: "name": "La Pini\u00c3\u00a8re" which gives : La Pinière instead of : La Pinière

Any idea why ? thanks

jpmckinney commented 6 years ago

I'll have a look. Thanks for reporting the issue!

jpmckinney commented 6 years ago

I've corrected the encoding issue. For example: http://represent.opennorth.ca/boundaries/quebec-electoral-districts-2017/la-piniere/

Thanks again for reporting!

vwasteels commented 6 years ago

thanks !!

BUT ... (sorry)

I used to rely on this field boundaries_concordance in this request https://represent.opennorth.ca/postcodes/H1W3M1/ to get the relative provincial district from a post code.

It is empty now, is that normal ?

Is there an alternate way to find a district in a specific boundary-sets, example: quebec-electoral-districts-2017 ?

jpmckinney commented 6 years ago

Check boundaries_centroid. You should always check both. I don't know if le Directeur général des élections has published a postal code to boundary spreadsheet yet.

jpmckinney commented 6 years ago

I just checked – they've updated the file. I'll upload it, and you'll be able to use boundaries_concordance again.

jpmckinney commented 6 years ago

Hmm, the file here is still for the old boundaries – so you have to use boundaries_centroid in the meantime. https://www.electionsquebec.qc.ca/francais/provincial/carte-electorale/entites-administratives-liees-a-un-code-postal.php

vwasteels commented 6 years ago

ok thanks !!