Unabel to convert string format DDM into a point with coordinateFormatter

158
2
Jump to solution
12-13-2021 05:39 AM
RemiBecheru
New Contributor II

Hi, 

I get null when I try to convert a DDM string into a point using coordinateFormatter.

I checked the syntax and it looks correct  44° N'21,448288, 023° E'55,547851

Thanks

1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

I couldn't get that syntax to work correctly with the coordinateFormatter, but these did work

  • let latlon = "44°21.448288'N, 023°55.547851'E"
  • let latlon = "44°21.448288', 023°55.547851'"

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

I couldn't get that syntax to work correctly with the coordinateFormatter, but these did work

  • let latlon = "44°21.448288'N, 023°55.547851'E"
  • let latlon = "44°21.448288', 023°55.547851'"
RemiBecheru
New Contributor II

Looks like it doesn't work with my original syntax, thank you @KenBuja 

0 Kudos