private Point parsePoint ( String point ) { int comma = point . indexOf ( ' ' ) ; if ( comma == - 1 ) return null ; float lat = Float . valueOf ( point . substring ( 0 , comma ) ) ; float lng = Float . valueOf ( point . substring ( comma + 1 ) ) ; return spatialctx . makePoint ( lng , lat ) ; }
Parses coordinates into a Spatial4j point shape .