(so geopb.SpatialObject, maxDecimalDigits int)
| 4167 | } |
| 4168 | |
| 4169 | func spatialObjectToJSON(so geopb.SpatialObject, maxDecimalDigits int) (json.JSON, error) { |
| 4170 | j, err := geo.SpatialObjectToGeoJSON(so, maxDecimalDigits, geo.SpatialObjectToGeoJSONFlagZero) |
| 4171 | if err != nil { |
| 4172 | return nil, err |
| 4173 | } |
| 4174 | return json.ParseJSON(string(j)) |
| 4175 | } |
| 4176 | |
| 4177 | // formatTime formats time with specified layout. |
| 4178 | // TODO(yuzefovich): consider using this function in more places. |
no test coverage detected
searching dependent graphs…