what3words / w3w-node-wrapper

Node wrapper for the What3Words API
https://docs.what3words.com/api/v3/
MIT License
44 stars 10 forks source link

3 word address format #3

Closed tsamaya closed 8 years ago

tsamaya commented 8 years ago

According to the styleguide :

  1. The syntax of a 3 word address is word1.word2.word3 or ‘e.g. table.lamp.chair’ – all lower case, dots between words, no spaces, no commas, no other punctuation. Never Table.Lamp.Chair, table lamp chair, Table,Lamp,Chair, TableLampChair etc.

we should replace the coma by a dot

resolve(res.words.join('.'));

on line https://github.com/OpenCageData/js-geo-what3words/blob/master/lib/geo.what3words.js#L75