Some visas can be granted on arrival or by prior application at the country's embassy or consulate, or sometimes through a specialized travel agency with permission from the issuing country in the country of departure. If there is no embassy or consulate in one's home country, then one would have to travel to a third country (or apply by post) and try to get a visa issued there. The need for a visa generally depends on the citizenship of the applicant, how long the applicant plans to stay, and the activities that the applicant may wish to do in the country he visits. These may result different formal categories of visas, with different issue conditions.