Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsers #15

Open
niemyjski opened this issue Jan 26, 2015 · 1 comment
Open

Parsers #15

niemyjski opened this issue Jan 26, 2015 · 1 comment

Comments

@niemyjski
Copy link

It would be nice if this library supported parsing/validating formats

Like I have a geo string and I need to know what it is. So I'd try passing in geojson 12.0, 12.0 and it would return an enum with the type or I pass it 50°03'46.461"S 125°48'26.533"E 978.90m etc,,

@sibartlett
Copy link
Owner

There are three parse methods on the Coordinate object:

  • Coordinate.Parse(string coordinate)
  • Coordinate.TryParse(string coordinate)
  • Coordinate.TryParse(string coordinate, out Coordinate result)

Those methods only parse coordinate strings, and may not support all possible coordinate formats (but we can improve on that).

In regards, to supporting more strings such as GeoJSON, etc. I'll give it some thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants