GIScience / GIScience/ors-map-client

"Your Location" in search sets point, but shows wrong name due to /search and not /reverse geocoding query

Open
#409 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
145
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Example screenshot after clicking `Your Location` in Search

![screen](https://github.com/GIScience/ors-map-client/assets/4692974/d2a5a15b-9768-4404-94c9-1aeb41e7d81a)

The following query is being sent:

https://api.openrouteservice.org/pgeocode/search?api_key=API-KEY&text=Mein%20Standort&size=10&focus.point.lon=8.6943&focus.point.lat=49.

This shouldn't be a `search`, but a `reverse` geocoding query.

Contributor guide

No contributing guide indexed for this repository

Research direction

Trace the search handling for the `Your Location` action and inspect the request shown in the issue. Change that path to use reverse geocoding rather than `/search`, then verify that the returned location name is correct and the location marker remains at the selected coordinates.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.