Lat-long is not localized

Issue #244 resolved
Adam Winer created an issue

Lat-long entry should be localized to support commas for decimal points in appropriate locales.

Comments (3)

  1. Adam Winer reporter

    And, even worse, Google geocoding can return localized lat-longs!

    java.lang.NumberFormatException: For input string: "-33,9248685"

                at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    
                at java.lang.Double.parseDouble(Unknown Source)
    
                at .model.sighting.LatLongCoordinates.<init>(LatLongCoordinates.java:39)
    
                at .model.sighting.LatLongCoordinates.<init>(LatLongCoordinates.java:47)
    
                at .model.sighting.LatLongCoordinates.withLatAndLong(LatLongCoordinates.java:63)
    
                at .ui.actions.locationapi.google.GoogleGeocoder.toGeocoderResults(GoogleGeocoder.java:314)
    
                at .ui.actions.locationapi.google.GoogleGeocoder.geocode(GoogleGeocoder.java:161)
    
                at .ui.actions.locationapi.combined.CombinedGeocoder.geocode(CombinedGeocoder.java:66)
    
                at .ui.components.NewLocationPanel.runGeocoding(NewLocationPanel.java:1308)
    
  2. Log in to comment