-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Read once and reuse the query file's content #600
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
Conversation
2834a15
to
7739085
Compare
@@ -13,7 +13,7 @@ SELECT | |||
SERVICE wikibase:around { | |||
?item wdt:P625 ?location. | |||
bd:serviceParam wikibase:center "Point(${LONG} ${LAT})"^^geo:wktLiteral. | |||
bd:serviceParam wikibase:radius "${RADIUS}" . # Radius in kilometers. | |||
bd:serviceParam wikibase:radius "${RAD}" . # Radius in kilometers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to change the param to RAD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I slightly prefer it because it will make code look more aligned.
.replace("${RAD}", String.format(Locale.ROOT, "%.2f", radius))
.replace("${LAT}", String.format(Locale.ROOT, "%.4f", cur.latitude))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In your previous PR I guess you forgot to make the change in the nearby_query.rb
, so the nearby places stopped loading. Can you test it thoroughly once? I will be happy to merge it then. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nearby list and map work okay for me with these devices.
- Android 6.0.1, API 23 (real device)
- Android 7.1.1, API 25 (emulator)
- Android 5.1.1, API 22 (emulator)
Sorry about the oversight - the previous patch was incomplete.
Is this ready to merge? |
I don't see a remaining issue. |
See #569 (comment)
Also fixes the bug introduced in #599 (the variable names RAD and RADIUS being inconsistent)