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

feat(place-search): #29 add search place and show the static map #51

Merged
merged 4 commits into from
Oct 24, 2022

Conversation

oinpentuls
Copy link
Contributor

@oinpentuls oinpentuls commented Oct 21, 2022

Adding command to bot using /search_place argument

eg:

/search_place gedung sate

image

The preceding command is using 2 service, geocoding and static map.

For notes:
There is a free credit for google map api worth to $200 per month .
According to image below, 1000 request is equal to $5. So, there will be 40.000 request for each month.

image

You can set the quota for each service to prevent request over limit and then billed. sad

My suggestion is to limit 600 request per day for each service for a month.
if we do calculation:
maxRequest * 2service * a month
600 * 2 * 30 = 36.000

@@ -245,6 +245,9 @@ TelemetryClient telemetryClient
case "/pse":
await Services.BotCommands.PSE.SearchAsync(botClient, _serviceProvider, update.Message, cancellationToken);
break;
case "/search_place":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pake /map aja

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted

@ronnygunawan ronnygunawan merged commit 9e9f1c7 into teknologi-umum:main Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants