-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
base: master
Are you sure you want to change the base?
Conversation
Increase limit to get better date
Limit to 100 instead of 150
doc/source/data_angers_fr.md
Outdated
- 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed :) The easy one
typevoie: TYPE_VOIE | None = None, | ||
address: str | None = None, | ||
city: CITY | None = None, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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()), | ||
) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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]
There was a problem hiding this comment.
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.
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 !