-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
There was a problem hiding this 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`; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Can't yet upgrade dependencies, therefore copied over types
0883128
to
1a422ef
Compare
No description provided.