San Rafael is a canton in the Heredia province of Costa Rica. The head city is in San Rafael district.