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

[Suggestion]: 增加location的格式化关键字 #400

Closed
ywjheart opened this issue Feb 15, 2024 · 4 comments
Closed

[Suggestion]: 增加location的格式化关键字 #400

ywjheart opened this issue Feb 15, 2024 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@ywjheart
Copy link

是否有人曾提过类似的问题?

否(No)

你觉得APP有什么不足之处?

目前{{location}} 可以返回很详细的信息,也包含Longitude和Latitude。 那么如果格式化关键字增加{{Longitude}}和{{Latitude}} ,就可以在通知里构造类似https://www.google.com/maps/@{{Latitude}} ,{{Longitude}} 从而实现在通知接收端点击跳转。

你觉得该怎么去完善会比较好?【非必答】

No response

@ywjheart ywjheart added the help wanted Extra attention is needed label Feb 15, 2024
@ywjheart
Copy link
Author

ywjheart commented Feb 16, 2024

我试图用正则来替换结果,但好像总是不能匹配。

Longitude:(.*)[\r\n]+Latitude:(.*)[\r\n]+Address===Longitude:$1[\r\n]+Latitude:$2\nAddress\nhttps://www.google.com/maps/@$2,$1

@ywjheart
Copy link
Author

ywjheart commented Feb 16, 2024

这样也不行:

Longitude(.*)[\r\n]+Latitude(.*)[\r\n]+===https://www.google.com/maps/@$2,$1

@pppscn
Copy link
Owner

pppscn commented Feb 16, 2024

@ywjheart
Copy link
Author

安装后,使用 字符串: https://www.google.com/maps/@{{LOCATION_LATITUDE}},{{LOCATION_LONGITUDE}} 格式化正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants