Adding presets to Vespucci and/or JOSM

The iD editor has a nice feature where if you type in a business name and it’s common enough, it will pre-populate a lot of the tags.

Examples (I am in the USA):

  • If I add a mailbox and set the operator to “United States Postal Service” then iD recognizes that and pops up a message to populate the short name of the operator to USPS, the wikidata iD for USPS and things like that.
  • Similarly, if I add a restaurant and set the name to “Burger King” then iD will fill in the wikidata and specify cuisine as fast_food.

Is there a way to bake this into Vespucci and JOSM? Is this what presets are for? Is there a collection of presets that someone has already created that I can just download and import? If not, what pages of the documentation should I be looking at? In the past I skimmed the preset documentation, and I remember that I can configure certain things to prompt (often with multiple choice) for tags often found with a certain element. But I don’t remember reading anything about doing the same for common institutions like the USPS, chain restaurants, Walmart and so forth.

What you are talking about here is the name suggestion index

There’s a preset for the NSI that you can enable in JOSM. In Vespucci it should already be integrated by default.

Sweet! This is exactly it!

In JOSM:

  1. Presets menu → Preset Preferences
  2. Scroll down & highlight Name Suggestion Index
  3. Click the right triangle to enable
  4. Once enabled, create your new element
  5. Hit F3 to (shortcut for “Search Preset”).
  6. Type “USPS” for example.
  7. Select from the suggestions and everything gets autopopulated just like in iD.

In Vespucci:

I did not find it so user-friendly. It is indeed enabled by default. I had to search in the “Presets” tab for United States Postal Service (USPS didn’t work). It pops up with several icons that ambiguously designate whether I want to add a post office, or just a post_box. But it is still way better than having to manually enter all the info.

Simply type the name into the preset search field in Vespucci and it will display all matching presets including such dynamically generated from the NSI.