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

Gmap how to set Google ApiKey in WPF? #51

Closed
Kiruhasdc opened this issue Aug 4, 2019 · 12 comments
Closed

Gmap how to set Google ApiKey in WPF? #51

Kiruhasdc opened this issue Aug 4, 2019 · 12 comments

Comments

@Kiruhasdc
Copy link

Hello everyone.
My program is on WPF and I need my Google ApiKey to use Directions API for creating routes.
In Windows Forms I use
GMap.NET.MapProviders.GMapProviders.GoogleMap.ApiKey="My ApiKey"
But I couldn't find how to do it in WPF. Please, help me.

@Loki606
Copy link

Loki606 commented Aug 22, 2019

I think it's not working in WinForms either. Could be a Google thing. I read somewhere that they started crying about terms and conditions regarding GMap.

@judero01col
Copy link
Owner

Greetings, is implemented in the same way, could you solve the inconvenience?

@Loki606
Copy link

Loki606 commented Aug 23, 2019 via email

@judero01col
Copy link
Owner

check if your api has restriction of use in android applications only.

https://console.cloud.google.com/apis/credentials?hl=es-419

image

image

@Loki606
Copy link

Loki606 commented Aug 23, 2019 via email

@Loki606
Copy link

Loki606 commented Aug 23, 2019 via email

@judero01col
Copy link
Owner

Do you have your project invoice activated in the Google console?

@judero01col
Copy link
Owner

Could I give you the error that is regenerating it?

I'm going to try on my computer now to see my due to some change made by google.

@Loki606
Copy link

Loki606 commented Aug 23, 2019 via email

@judero01col
Copy link
Owner

judero01col commented Aug 23, 2019

https://console.cloud.google.com/billing?hl=es-419&organizationId=0

Enter through this link and from there you can configure it, google policies require that you must have an active billing account, connected to the project to which the apikey belongs, to activate the invoice you must link a payment method.

Google gives you a monthly credit of 200 USD, to consume all its api, if you go over that limit, you will be charged for exceeding it.

image

@Loki606
Copy link

Loki606 commented Aug 23, 2019 via email

@judero01col
Copy link
Owner

we are here to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants