fluid-api/src/main/java/com/fluidbpm/program/api/util/UtilGlobal.java
public double getLongitudeFromElasticSearchText(String textToCheckParam)
	{
		if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) {
			return 0.0;
		}

		String[] latitudeAndLongitude = textToCheckParam.split(REG_EX_COMMA);
		if(latitudeAndLongitude == null || latitudeAndLongitude.length < 2) {
			latitudeAndLongitude = textToCheckParam.split(REG_EX_PIPE);
		}

		if(latitudeAndLongitude == null || latitudeAndLongitude.length == 0) {
			return 0.0;
		}

		if(latitudeAndLongitude.length > 1) {
			return this.toDoubleSafe(latitudeAndLongitude[1]);
		}

		return 0.0;
	}
public double getLongitudeFromElasticSearchText(String textToCheckParam)
	{
		if(textToCheckParam == null || textToCheckParam.trim().isEmpty()) {
			return 0.0;
		}

		String[] latitudeAndLongitude = textToCheckParam.split(REG_EX_COMMA);
		if(latitudeAndLongitude == null || latitudeAndLongitude.length < 2) {
			latitudeAndLongitude = textToCheckParam.split(REG_EX_PIPE);
		}

		if(latitudeAndLongitude == null || latitudeAndLongitude.length == 0) {
			return 0.0;
		}

		if(latitudeAndLongitude.length > 1) {
			return this.toDoubleSafe(latitudeAndLongitude[1]);
		}

		return 0.0;
	}
public double getLongitudeFromElasticSearchText ( String textToCheckParam ) { if ( textToCheckParam == null || textToCheckParam . trim ( ) . isEmpty ( ) ) { return 0.0 ; } String [ ] latitudeAndLongitude = textToCheckParam . split ( REG_EX_COMMA ) ; if ( latitudeAndLongitude == null || latitudeAndLongitude . length < 2 ) { latitudeAndLongitude = textToCheckParam . split ( REG_EX_PIPE ) ; } if ( latitudeAndLongitude == null || latitudeAndLongitude . length == 0 ) { return 0.0 ; } if ( latitudeAndLongitude . length > 1 ) { return this . toDoubleSafe ( latitudeAndLongitude [ 1 ] ) ; } return 0.0 ; }
Extract and returns Longitude from {@code textToCheckParam}
applicable to ElasticSearch.

@param textToCheckParam The Latitude and Longitude to extract Longitude from.
@return Geo Longitude from {@code textToCheckParam}.
Extract and returns Longitude from { @code textToCheckParam } applicable to ElasticSearch .