implemented callback function for all the processing of geocoding