-
Notifications
You must be signed in to change notification settings - Fork 143
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
add StaticMapsEngine.GenerateStaticMapURL accept encode path
#159
Conversation
an encoded polyline using the enc: prefix within the location declaration of the path
add use EncodePolyline example
modify readme.md commit also have some code file changes (spacing). please remove. |
@@ -28,13 +28,13 @@ public string GenerateStaticMapURL(StaticMapRequest request) | |||
|
|||
var parametersList = new QueryStringParametersList(); | |||
|
|||
if (!string.IsNullOrEmpty(request.ApiKey)) |
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.
Was this intentional? If not, please revert.
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.
Visual Studio automatically formatting it.
Could you tell me how to revert?
}; | ||
var geocodingEngine = GoogleMaps.Geocode; | ||
GeocodingResponse geocode = geocodingEngine.Query(geocodeRequest); |
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.
Is this should be part of this commit? Seems like unrelated.
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.
IEngineFacade
only have QueryAsync
method, so GeocodingResponse geocode = geocodingEngine.Query(geocodeRequest);
should be changed to var geocode = await geocodingEngine.QueryAsync(geocodeRequest);
}); | ||
Console.WriteLine("Map with path: " + url); | ||
|
||
//use EncodePath |
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.
Don't need this comment.
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.
OK
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?
Query
=>QueryAsync
...)StaticMapsEngine.GenerateStaticMapURL
method, acceptencode path