code: public static int geoContextToFlickrContextId(JinxConstants.GeoContext geoContext) {
          if (geoContext == null) {
              return -1;
          }
          int ret;
          switch (geoContext) {
              case not_defined:
                  ret = 0;
                  break;
              case indoors:
                  ret = 1;
                  break;
              case outdoors:
                  ret = 2;
                  break;
              default:
                  ret = -1;
                  break;
          }
          return ret;
      }
docs: Convert a {@link net.jeremybrooks.jinx.JinxConstants.GeoContext} to the corresponding Flickr geo context id.
  
  @param geoContext GeoContext enum to convert.
  @return corresponding Flickr geo context id, or -1 if the parameter is null.