Cannot create WGS84 point with invalid coordinate

I have used spatial functions successfully in earlier versions of neo4j but now gives error when I run on 4.0

match (g1:gps), (g2:gps)
return
distance(point({latitude:g1.latitude,longitude:g1.longitude}),point({latitude:g2.latitude,longitude:g2.longitude}))

No I get an error like this:

Cannot create WGS84 point with invalid coordinate: [37.09, -95.713]. Valid range for Y coordinate is [-90, 90].

Hey, this question is quite old, but I also stumbled over it.
If you, like me, copied the example from the neo4j page to learn about it

WITH point({longitude: 12.78, latitude: 56.7, height: 100}) as p1, point({latitude: 56.71, longitude: 12.79, height: 100}) as p2 RETURN point.distance(p1,p2) as dist

you see, that they have mixed up the order of lats and longs in the two points, which screwed me, because I wasn't paying attention to that. So maybe you just got it wrong too and need to switch latitude and longitude.