i convert the params to float like;
req.params.lat=parseFloat(req.params.lat).toFixed(config.lat_lng_fixed);
req.params.lng=parseFloat(req.params.lng).toFixed(config.lat_lng_fixed);
but when i inster that params to Neo4j , all of parameters are String, then i can not do Math operation. why ?
the following is my Cypher code:
var _createStation = function (params, options, callback) {
var cypher_params = {
name: params.name ,
description: params.description ,
lat: params.lat ,
lng: params.lng
};
i convert the params to float like; req.params.lat=parseFloat(req.params.lat).toFixed(config.lat_lng_fixed); req.params.lng=parseFloat(req.params.lng).toFixed(config.lat_lng_fixed);
but when i inster that params to Neo4j , all of parameters are String, then i can not do Math operation. why ? the following is my Cypher code:
var _createStation = function (params, options, callback) { var cypher_params = { name: params.name , description: params.description , lat: params.lat , lng: params.lng };
};