What are .NET classes for working with geographic data (latitude, longitude, etc.)?
During a search I found the namespace System.Spatial
but I saw in a forum someone advised against its use because it is obsolete. Looking at the doc of this namespace I saw that most of its classes are abstract classes.
I have a project where for several Model classes I need to have a property that will represent the geographic location. For example, for a Cliente
class I will have a property called Location that will store a geographic coordinate (latitude and longitude). I thought of creating a type Coordenada
, a simple class with two properties where one would be latitude and longitude, but I thought there might already be something ready and more sophisticated.