update README

This commit is contained in:
Christophe Boulanger 2020-01-23 14:44:35 +01:00
parent a0cda1a0d4
commit 74839aed9d
2 changed files with 13 additions and 0 deletions

11
README
View File

@ -10,6 +10,17 @@ Installation
- enable module:
PASSERELLE_APP_PASSERELLE_IMIO_LIEGE_LISRUE_ENABLED = True
Information
-----------
- V1 => V2
- jsonlisrue2 => jsonlgrue12
- jsonlisrue => jsonruebelgique
- PBLV
- jsonlisrue2 => lisruejsonserver
- statutVO : only available in jsonlgrue2com.
Usage
-----

View File

@ -76,8 +76,10 @@ class ImioLiegeLisrue(BaseResource):
# url += "jsonlgrue2com/" <== commissariat.
else:
if self.include_all_of_belgium:
# url += "jsonlisrue"
url += "jsonruebelgique/findByValue?indexName=RUE&startResult=0&maxResult=30&value="
else:
# url += "jsonlisrue2"
url += "jsonlgrue12/"
if q:
q = unicodedata.normalize("NFKD", request.GET["q"]).encode(