Our work is then very simple. We have a city name in our index, but we don't have its coordinates. We can check in the Nominatim Open Street Map API to obtain its coordinates if present, and some extra metadata. The procedure for this is as follows:
/SolrStarterBook/test/chp05/citiesdirectory. The script will search for the list of cities in your running
paintingscore and then ask Nominatim if there are matches to it, importing them if present into a new core, which we will simply call
cities. Obviously this will produce some extra noise, but it's good as we are ...