-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update MapsSearchClient.cs #47252
base: main
Are you sure you want to change the base?
Update MapsSearchClient.cs #47252
Conversation
Thank you for your contribution @Helmirinaldi45! We will review the pull request and get back to you soon. |
@@ -505,7 +506,7 @@ private static GeocodingBatchRequestBody geocodingQueriesToGecodingBatchRequestB | |||
{ | |||
return null; | |||
} | |||
|
|||
//bybytvyvy |
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.
What's this?
@@ -518,6 +519,11 @@ private static GeocodingBatchRequestBody geocodingQueriesToGecodingBatchRequestB | |||
{ | |||
item.BoundingBox = new GeoBoundingBox(query.BoundingBox.West, query.BoundingBox.South, query.BoundingBox.East, query.BoundingBox.North); | |||
} | |||
if(item.Query == item.CountryRegion) | |||
{ | |||
item.Query = new GeoPosition(Convert.ToDouble(query.Coordinates?.Longitude + query.Locality), Convert.ToDouble(query.Coordinates?.Latitude + query.Locality)); |
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.
query.Locality
is a string for characters, not a string number. I believe this won't work.
Can you explain what's the purpose for the code changes? Thanks. |
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.