bitvijays / AirPollutionDataPlatform

Platform for air pollution
0 stars 2 forks source link

Get pollution data / From location - Lat/Lon Choice Interface #8

Open kwmc-lucas opened 4 years ago

kwmc-lucas commented 4 years ago

This is one that could have more of a re-think, but for now...

Latitude / Longitude is probably not the best default/one to have at the top of the list, I think the searching interface could be rethought, but within the confines of the current one I’d imagine something more like this order:

User your location As is, but it doesn’t seem to request properly in Firefox and I've checked my browser settings. It works in Safari.

Type an address This is actually a really cool implementation and works well, but the interface is rather unexpected. Seems like a hack having the search on the map on the right, the field would be better to have here on the left under the drop down.

Add a marker This is cool too, wording I’ll need to think about, but it doesn’t convey what it does... I initially thought it would be adding a permanent marker (dropping a pin) like in other map apps, where as it’s actually searching by where you click.

Give Coordinates This one is redundant, not really needed as it doesn't do anything. If an explanation is needed it should be at the top and have a guide along the lines of "you can put in your Coordinates or use one of the options below to automagically find some".

bitvijays commented 3 years ago

@kwmc-lucas So, this one is little tricky.

The way this currently works is whatever option you select Use your location, Type an address, Add a marker, Give coordinates, we send coordinates to the backend and search for that location.

For example, when we Type an address, the co-ordinates are automatically filled in the boxes.

I do agree, the interface can be improved?

Maybe, we can

  1. Remove Give coordinates from the page. image

  2. Hide Longitude and Latitude boxes image

  3. Change button name of submit coordinates to submit or submit location? image

Let me know your thoughts.

kwmc-lucas commented 3 years ago

@bitvijays

The thing that's confusing is that the search box is on the map, but the search section is in the left-hand column. Really it all needs to be in one place, but I understand you're piggy-backing off the in-built version on the map.

The way it works now is a clever workaround, but from a user's perspective it's a bit of a puzzle they need to solve in order to do natural human searches. Ideally, the search bar should be in the left-hand column at the top, plus once someone chooses their location it should go there without any of the lat/long steps. Lat/Long could still be included as a less prominent option lower in the list.

'Add a marker' could be something like 'Drop a pin on the Map'