.net - DbGeography.PointFromText() throws 'Latitude values must be between -90 and 90 degrees' for Japan -
google tells me japan's lat/long values (36,138) .net throws error
24201: latitude values must between -90 , 90 degrees.
any ideas why?
i have had same issue you, using dbgeography.pointfromtext("point(lat lng)")
when lat & lng arguments expected other way around. complete answer this:
// google, japan's latitude: 36; longitude: 138 var lat = 36; var lng = 138; var location = dbgeography.pointfromtext($"point({lng} {lat})");
Comments
Post a Comment