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

Replace geocoder address search with servicemap #508

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

henrinie-nc
Copy link
Contributor

No description provided.

@henrinie-nc henrinie-nc requested a review from NC-jsAhonen August 1, 2024 08:50
Copy link
Contributor

@NC-jsAhonen NC-jsAhonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change could be done with using a shared const with another component in the service map url, but otherwise looks okay. :)

});
const proto = 'https:';
return `${proto}//dev.hel.fi/geocoder/v1/address/?${paramString}&municipality=91`;
return `https://api.hel.fi/servicemap/v2/search/?${paramString}&type=address&municipality=helsinki`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use SERVICE_MAP_URL in AddressSearchInput.tsx for this url as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be moved somewhere like src/components/ or src/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well that is good to know, so we were already using this API for some other address search...
I wonder why this was not unified, perhaps the same issue - it was not known at the time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NC-jsAhonen I have utilized SERVICE_MAP_URL now.

The whole thing should be cleaned out, but I will not do it now, discovered too late - lets get this out to be validated, once smaller issues within this code have been approved

@henrinie-nc henrinie-nc force-pushed the MVJ-397-replace-geocoder branch from 0883128 to 1a422ef Compare August 2, 2024 11:43
@henrinie-nc henrinie-nc merged commit 40ebb30 into develop Aug 5, 2024
3 checks passed
@henrinie-nc henrinie-nc deleted the MVJ-397-replace-geocoder branch August 5, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants