POI address input bug #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From https://todo.gleipnir.technology/tasks/472
Put in an address, and look for one that has “POI” in front of it.
Any of these would work, because it says “poi” in front of the address. Click on one. The red dot goes to the location but the address doesn’t get put in the text box
When you go to submit it, the website says you didn’t provide an address.
Looks like the “???” actually comes from our provider, Stadia, so it's not our own placeholder. Stadia actually sets that as the locality.
The actual problem is that the response from our geocoding endpoint is:
So, there's not much address there.
The log for Stadia requests shows:
This means we actually don't have an address from Stadia at the direct API level either. We don't know this at the time we do auto-complete. At that point all we have is
{"detail":"迪士尼 Disneyland Resort","gid":"openstreetmap:venue:way/112659018","locality":"???","type":"poi"}I think given our options, we're doing the best thing we can do here. If they want Disneyland, we at least let them select it because that zooms the map to the location and then they can select an actual location on the map.
What we could do is warn them that while they've selected a auto-complete, it doesn't have an address associated with it. We should be capturing that they selected address with GID
openstreetmap:venue:way/112659018", and we do show that in the communication workbench when the report is submitted.Ben, any thoughts on whether or not we should somehow warn users that they selected a location, but it doesn't have an associated address?
@benjaminsperry please take a look at #14 (comment)
An address should not be required, there are many places in our district that are not address identified. The address is useful for finding a place from a public report but we could operate from coordinates as well. The only reason to warn them is if it is different from their own expectations, meaning they choose a point and think it is supposed to have an address but it doesn't.
Okay, closing this because it seems the right thing to do is to accept a location that is address-free without warning.