Septima / qgis-geosearch

QGIS plugin with a search box which enables the user to quickly zoom to named places in Denmark
GNU General Public License v3.0
9 stars 7 forks source link

Switch to gsearch #49

Closed AsgerPetersen closed 11 months ago

AsgerPetersen commented 1 year ago

Dataforsyningen retires geosearch by the end of may 2023 as stated here https://trello.com/c/URyuB8L6/177-opdatering-25012023-geosearch-lukker-31052023-anvend-i-stedet-gsearch.

The new service is called gsearch and is documented here https://docs.dataforsyningen.dk/#gsearch-gsearch. Note that the search endpoint is difficult to find in the docs. I searched the docs for resources to find it. This is and example of a request querying multiple resources in one go:

https://api.dataforsyningen.dk/rest/gsearch/v1.0/search?resources=postnummer,adresse,husnummer&token=XXX&q=jer&limit=10

Tasks:

AsgerPetersen commented 1 year ago

Now -it seems- the gsearch search endpoint no longer works. It simply disappeared. Instead it seems we need to make individual requests for each resource making the switch way more complicated as it requires an entirely different strategy to request handling and GUI interaction.

Update: I got an answer from Dataforsyningen support. gsearch is not going to support the old functionality from geosearch. From now on we have to use multiple requests against multiple end points to get query results from multiple resources. As written above this is very different from the geosearch functionality and will require substantial code changes to make the plugin work with gsearch.

AsgerPetersen commented 1 year ago

Some issues on gsearch which highlights differences with geosearch:

MieWinstrup commented 11 months ago

Pluginet bruger Gsearch fra version 2.0.0 af pluginet. Dette issue lukkes.