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

Update MapsSearchClient.cs #47252

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Helmirinaldi45
Copy link

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.

@github-actions github-actions bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Maps labels Nov 19, 2024
Copy link

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
Copy link
Member

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));
Copy link
Member

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.

@dubiety
Copy link
Member

dubiety commented Nov 25, 2024

Can you explain what's the purpose for the code changes? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Maps
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants