.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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -