radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
912 stars 408 forks source link

GoogleMap API requests over https #111

Open Dunge opened 5 years ago

Dunge commented 5 years ago

I'm trying to get a route trace out of a list of waypoints. I know found the issue mentioning GetRoute was deprecated by Google and the workaround to use GetDirection instead to use the Google Direction API.

When I try it returns null, trying the requested URL manually I get this error: Requests to this API must be over SSL. Load the API with "https://" instead of "http://".

Using https and the request works sucessfully. If I look at the code under GoogleMapProvider.cs, I see the URLs consts are set http.

Any way to fix that while still using the nuget package or do I need to manually rebuild to library?

ghost commented 5 years ago

(ugly) workaround: https://github.com/radioman/greatmaps/issues/106#issuecomment-450933937