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

the new "geocoding" control can be project based? #683

Open
1 task done
lucamanga opened this issue Dec 7, 2023 · 2 comments
Open
1 task done

the new "geocoding" control can be project based? #683

lucamanga opened this issue Dec 7, 2023 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@lucamanga
Copy link

Checklist

  • I've searched through the current issues to make sure this feature hasn't been requested already.

Motivation

I saw the new "geocoding" control in the commits.
It would be interesting if we use our custom geocoding search server with a parameter that indicates the project is doing the search.
For example:

  • normal cartography: search for road name;
  • cemeteries: search for dead people name;
  • etc

Suggested solution

.

Alternatives considered

No response

@lucamanga lucamanga added the feature New feature or request label Dec 7, 2023
@lucamanga
Copy link
Author

the new geocoding can invoke the custom webservice these parameters:

  • the text query;
  • the project id or name

@Raruto
Copy link
Contributor

Raruto commented Dec 11, 2023

Hi @lucamanga,

the project id or name

To achieve a similar result, on your backend server(s), you could also:

  • retrieve the actual value of HTTP_REFERRER ..

  • dynamically append any additional query strings directly into control configuration:

"url": "https://your-custom-server.com/REST/?key1=blah.blah&project_id=" + CURRENT_PROJECT_ID,

Ref: g3w-suite/g3w-client#505 (review)

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

No branches or pull requests

3 participants