[API] Allow parsing and sharing coordinates in omaps.app links #10231

Open
hemanggs wants to merge 4 commits from hemanggs/parse-coordinate-links into master

4 commits

Author SHA1 Message Date
b3d5a6a23d [API] Suggested changes
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
2025-03-04 09:25:33 +05:30
f1f4994638 [API] Made suggested changes
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
2025-03-03 17:22:58 +05:30
8e5ea99643 [API] Makes sharing Coordinate URL modular and reusable
-tested links

Signed-off-by: Hemang Manhas <hemangmanhas@gmail.com>
2025-03-03 17:22:58 +05:30
6c8c5bf486 [API] Allows Parsing and sharing coordinates in links
- Replaced coordinate URL instead of om:// format
- Updated parser to accept coordinate URL's
- Wrote basic unit tests for the parser
- added parsing optional zoom functionality
- Handled invalid cases :
- Out of range Lat,Lon
- Special characters'?' &'#'
- Trailing and leading slashes
- used sscanf for cleaner code
- used std :: string_view for efficient memory usage
- Updated Test cases & Passed successfully

Signed-off-by: Hemang Manhas <hemangmanhas@gmail.com>
2025-03-03 17:21:59 +05:30