I typed in the inscription into google translate and here is what it translates to:
NEIGHBORS OF ADMIRAL BROWN GRATEFUL 1873-1887
A RAMON C. FONSECA. COMMISSIONER INSPECTOR OF THE PROVINCE
This would most likely be a medal of some sort and not a coin. A coin from this era would need to have a denomination somewhere on it. Hopefully some of this info will help you find out what you have.






















