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

what3words integration #179

Open
3 of 5 tasks
kynan opened this issue Dec 15, 2014 · 18 comments
Open
3 of 5 tasks

what3words integration #179

kynan opened this issue Dec 15, 2014 · 18 comments
Assignees

Comments

@kynan
Copy link
Member

kynan commented Dec 15, 2014

what3words is a unique combination of just 3 words that identifies a 3mx3m square. This is a sufficient resolution to uniquely identify a waterpoint (see also #15) and could therefore be used as an easy to remember ID.

Integration requires roughly:

  • add a w3w field to the waterpoint_schema
  • add w3w lookup when geolocating user
  • add w3w input field in forms
  • multi-lingual support for w3w (en,sw)
  • display w3w on map tips

There are some open questions e.g. how to create a geospatial index on the w3w field.

@cazgp
Copy link
Member

cazgp commented Dec 15, 2014

+1 Whoop! I was thinking it might be useful for Taarifa :)

@fayazv
Copy link
Contributor

fayazv commented Feb 12, 2015

@kynan what do I do with the file you sent smime.p7s ?

@kynan
Copy link
Member Author

kynan commented Feb 12, 2015

Nothing, that's my digital signature.

@fayazv
Copy link
Contributor

fayazv commented Feb 12, 2015

Ok. So what's the next step?

@kynan
Copy link
Member Author

kynan commented Feb 12, 2015

See the checklist above: start by modifying the schema.

@fayazv
Copy link
Contributor

fayazv commented Mar 2, 2015

@kynan I've added the schema. Need some assistance on the second. I have used jquery to integrate w3w.

@kynan
Copy link
Member Author

kynan commented Mar 2, 2015

@fayazv You haven't pushed any code afaict. Which branch are you working on?

@fayazv
Copy link
Contributor

fayazv commented Mar 2, 2015

I've created a new branch - fayaz-dev

@kynan
Copy link
Member Author

kynan commented Mar 2, 2015

OK, thanks. I'd rather call this branch feature/w3w-integration though.

@fayazv
Copy link
Contributor

fayazv commented Mar 2, 2015

makes more sense.

@fayazv
Copy link
Contributor

fayazv commented Apr 9, 2015

see commit: a6f96ae

@fayazv fayazv closed this as completed Apr 9, 2015
@kynan
Copy link
Member Author

kynan commented Apr 9, 2015

Let's not close this before the feature is deployed.

@kynan kynan reopened this Apr 9, 2015
@kynan
Copy link
Member Author

kynan commented May 10, 2015

@fayazv What's the progress on this?

@kynan
Copy link
Member Author

kynan commented May 10, 2015

The waterpoints file the w3w guys batch converted for us was based on the Sep 2014 data, so it's outdated compared to the Feb 2015 data we're now using.

There's another issue: if we want w3w in the database I think we need to keep both English and Kiswahili versions so we can show the right version based on language selection. Thoughts? @dgorissen

@fayazv
Copy link
Contributor

fayazv commented May 10, 2015

Having the w3w in multiple languages is a good idea. But, might not be feasible for more than 3 languages. For instance: In the TaarifaTraders we have 4 languages (English, Swahili, Chichewa and Nyanja), though w3w isn't present in chichewa and nyanja.

@dgorissen
Copy link
Member

Are we going to be needing thw w3w name one waterpoint at a time (ie, when
a user requests it) or are there times we need very many at once? In the
former why bother with w3w in the db at all and not just use the API?
In the latter adding different languages seems a bit like a hack (where
does it end?) but perhaps doable for 2-3 max. Or perhaps store only in one
language and use the w3w api for the others?

@kynan
Copy link
Member Author

kynan commented May 10, 2015

Valid points, I'm not sure either. Maybe using their API will be sufficient.

@fayazv
Copy link
Contributor

fayazv commented May 11, 2015

@dirk thanks for the points. The w3w are going to be used in two ways, i. Adding waterpoint (one time request to the api), ii. Map (many requests for all the visible waterpoints), the w3w will be shown in the tips.

We could have english version stored in the db and use api requests for other languages (would be helpful for later use).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants