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
Feature: Support more formats for latitude and longitude #98
Comments
I can help with the issue but can you please expand with the issue |
I would like to contribute to the project, and I feel that this issue would be a great place to start. Can I work on this problem, and how do I get started with it? |
Hi Guy, That i understand right now surrealdb is not support string containing a pair of coordinates input should parse to Point with longitude as X and latitude as Y (natural map orientation) will enable to query. Ref issue on #91 able to query with multipolygon right now. This issue need to write parser form latlon string to coordinates format. Best regards, |
Thank you for pointing me to the necessary files @koobitor. I'll get started with implementing the parser so that more formats for latitudes and longitudes are accepted. |
@tobiemh, @rushmorem I've gone through the codebase, and have a good understanding of the database engine now. I would like to get started with creating the parser to support more formats as mentioned before. |
Hi - i saw this issue and thought it may be bite-sized. I've got surrealdb to compile. Is there a partial solution for this already implemented that I can help with or should I start from scratch? |
Hi @rushmorem, I've added support for parsing two of the example formats you specified (decimal degrees, or degree decimals). It would be great if I could get an intermediate review to make sure I'm on the right track before I add support for the remaining formats. |
I've added support for DD and DMS formats. Should be ready for review! |
/cc @tobiemh |
Is your feature request related to a problem?
Currently these only support floats. We may want to support more formats like:-
Describe the solution
From Tobie's comment:
Alternative methods
Using the linked crate
latlon
. See Tobie's comment above on this.SurrealDB version
surreal 1.0.0-beta.7 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: