Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Angers Loire metropole service provider #3650

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Aguay-val
Copy link

@Aguay-val Aguay-val commented Jan 20, 2025

New source : Angers Loire Metropole

For 30 Cities Around Angers FRANCE.

All api call are using "open data Angers".

There is a "test " inside and all is running great !

valentin-ed and others added 3 commits January 20, 2025 15:20
Comment on lines 8 to 38
- LES PONTS DE CE
- SAINT BARTHELEMY D ANJOU
- SAINT CLEMENT DE LA PLACE
- SAINTE GEMMES SUR LOIRE
- SAINT LAMBERT LA POTHERIE
- SAINT LEGER DE LINIERES
- SAINT-LEGER-DES-BOIS
- SAINT MARTIN DU FOUILLOUX
- LOIRE AUTHION
- VERRIERES EN ANJOU
- SARRIGNE
- SAVENNIERES
- SOULAINES SUR AUBANCE
- SOULAIRE ET BOURG
- TRELAZE
- RIVES DU LOIR EN ANJOU
- ANGERS
- AVRILLE
- BEAUCOUZE
- BEHUARD
- BOUCHEMAINE
- BRIOLLAY
- CANTENAY EPINARD
- ECOUFLANT
- ECUILLE
- FENEU
- LONGUENEE EN ANJOU
- MONTREUIL JUIGNE
- MURS ERIGNE
- PELLOUAILLES LES VIGNES
- LE PLESSIS GRAMMOIRE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent needs to be removed to be displayed nicely

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed :) The easy one

Comment on lines 225 to 227
typevoie: TYPE_VOIE | None = None,
address: str | None = None,
city: CITY | None = None,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You marked them as optional but your fetch/_get_idsecteur_address methods require them to be set.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review, yes i change it.

Comment on lines 233 to 238
def _get_idsecteur_address(self, address: str, city: str, typevoie: str) -> dict:
url = self.api_secteur.format(
city=urllib.parse.quote(self.city.upper()),
address=urllib.parse.quote(self.address),
typevoie=urllib.parse.quote(self.typevoie.upper()),
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you pass arguments but use the attributes but not the arguments

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thansk for review, i think it's ok.

self.city = city
self.typevoie = typevoie

def _get_idsecteur_address(self, address: str, city: str, typevoie: str) -> dict:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

your type hint says dict but you return list[dict]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review, i think it's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants