gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
142 stars 34 forks source link

Serializable MapPoint #19

Open jperedadnr opened 6 years ago

jperedadnr commented 6 years ago

So far, MapPoint is immutable (though it has an update method), but it is a quite convenient object to deal with a pair of (latitude, longitude) coordinates.

This means that it can't be easily serialized/deserialized through JSON.

Also it doesn't print nicely or can't be compared.

Adding an empty constructor, setters, toString and hash/equals could solve this.