improve Place API

I have added a parameter to accept rankby, and I have also put some logic to check the passed values are defined. As I wasn't sure what is the validation policy line here I limited to ignore invalid parameters without throwing or callback error. Let me know if you want me to change something in order to merge