2024-06-13 - Integrating Google Maps Platform - New Places API & Nearby API
Hello Hive Community Members,
Welcome to daily updates from @sagarkothari88 - a Hive Witness & mobile-app-developer. I daily invest my time with my skillset in #Hive & I daily hive-power-up.
My contributions on projects on Hive Blockchain
- Distriator App (on-going & in-developement) (also known as Hive Freedom Dollar)
- 3Speak Mobile App (production + maintenance)
- The Hive Mobile App (in-developement as a hobby project)
- HiveCurators - DiscordBot (production + maintenance)
- Hive Witness Node (production)
- 3Speak (Legacy / Current) WebApp (production + maintenance)
- 3Speak (Legacy / Current) Creator Studio (production + maintenance)
- 3Speak new-website - backend (acela-core) (contributed for 2-3 APIs)
- 3Speak new-website (contributed for 2 screens)
- Bitcoin Tube (Developed static home page)
- Video Encoder Nodes (12 video encoders)
- Union-Indexer-Node (1 union indexer node as a backup)
- HiveAuth Mobile App (Contributed)
Project - Distriator
Places API are needed for Business Management APIs
- In order to build API for creating a business, first we need to build API for getting necessary details for a location.
- When a business guide or admin is trying to add a business, upon selecting a location on a map, App should get all the details of the location.
- Today, we worked on building such API & named it
places
Google Maps Platform
- At first it was not clear, which API to use from Google platform
- After trying couple of things here & there, we concluded that we will be needing nearby search
- Nearby search will provide us, nearby search results.
- A business guide will tap on "Add a business".
- Map will zoom to current location.
- This API will help us locate nearby businesses to the location of a business guide
Writing API for places
- Only A Super Admin / Admin / Trusted Guide can use this API
- Upon supplying latitude & longitude of a user, this API will return google places which are near to that location.
What all details are we getting from Places API?
- We are supplying all following info back to the user.
- Following information will help user to prefill the form for adding a business.
- displayName,
- formattedAddress,
- addressComponents,
- encoded-photos (we don't have direct photos)
- primaryType
- primaryTypeDisplayName,
- currentOpeningHours,
- internationalPhoneNumber
- websiteUri
Converting address components to needed fields
- At first google naming convention, I found it confusing.
- After doing search, I found above code-snippet which helps me understand it.
- With this logic, we have
street
,city
,state
&zipcode
Postman API example
- Above screenshots indicate that upon supplying latitude & longitude in request, we get nearby places
- API that we've built is deployed & working in production.
- It is tested & working as expected.
What's next?
- Now, we'll switch to front-end
- Integrate Above API
- And start building UX for adding a business
- Wish us all the luck
Rewarding Hive Content Creators
- I support several contests hosted by different communities.
- I reward them with Hive-Power-up for the contribution that they have made on communities on Hive.
- We keep transferring portion of hive power to different users on Hive for encouraging them for their contribution on Hive.
- Those who respond to our replies, we also reward them with different tokens like ALIVE, PIZZA, BEER, LUV
- No power ups were sent today.
Dedicated Resources for Hive Eco-System
Resource Name | Resource Description | Approx Cost of Resource | Status |
---|---|---|---|
Hive Witness | Hive Witness Node | $50 | ✅ |
Dlux | Running Dlux Witness Node | $5 | ✅ |
Larynx | Running a LARYNX node | $5 | ✅ |
Duat | Running a DUAT node | $5 | ✅ |
VSC | Running a VSC witness node | $5 | ✅ |
Discord Bot | Hive Curators Discord Bot Node | $5 | ✅ |
HP Rewards | Hive Curators HP reward Bot Node | $5 | ✅ |
12 Nodes | Powerful video encoder nodes for 3Speak $20 on average | $240 | ✅ |
Bandwidth | 3 internet connections | $50 | ✅ |
Distriator | Hive-Distriator Backend node | $50 | ✅ |
Community Contributors | Rewarding community contributors in INR | $60 | ✅ |
Additional Developers | Additional Contributing Developers | $1500 | ✅ |
-- | -- | -- | -- |
Total | Approx | $1980 | -- |
Updates: Video Encoder Nodes
- I'm running 12 powerful video encoder nodes for 3Speak Community Members.
- Monthly internet bandwidth usage which exceeds 15 TB, Maintenance cost, Electricity backup, Internet backup, Depreciation cost - it's all on me.
- On 2024-06-13, 3Speak published total 125 videos.
- My video encoder nodes encoded 101 videos from 125 videos published.
- It means, my encoder nodes encoded 80.80 % of total videos published on 2024-06-13
- Here is visual representation of above data.
My Daily Hive Investment Report for 2024-06-13
- 0.00 Hive Power Up
- 22.71 Witness Rewards in Hive Power
- 87.13 Curation Rewards as Hive Power
- 10.09 Benefactor Rewards as Hive Power
- 119.93 Total Hive Power Invested
Curation Report for 2024-06-13
NOTE:
- If you don't like tagging you under curation report, let me know in comment section & I'll exclude you from the curation report.
- If you think that I should not attach curation report in the post, let me know in the comment section.
We've curated total 43 & motivated content creators for their contributions on Hive.
Vote sagarkothari88 as Hive Witness
Vote for 3Speak as Witness
Don't forget to pay using HBD/Hive
https://distriator.com
- banners & images if you wish to use.
- Don't forget to give credits to designers.
Don't forget to swap your HBD/Hive using @ecency
0
0
0.000
Thanks a lot! And happy Weekend!
!ALIVE
Hello @duvinca
You are most welcome.
Weekdays started. Monday is over.
have a happy week ahead.
Thank you for dropping by & commenting
!GIF You are most welcome
Here are some additional gifts for you.
Via Tenor
This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.
Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens. HP delegators and IUC token holders also get upto 20% additional vote weight.
Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.
100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited..
This post received an extra 10.00% vote for delegating HP / holding IUC tokens.
Thank you so much @indiaunited & @bhattg for the curation.
Thank you very much 😊
Hello @lileisabel
You are most welcome.
I'll keep up my best
Thank you for dropping by & commenting
!GIF We support each other
Here are some additional gifts for you.
Don't forget to support back
Via Tenor
I congratulate you for your great work and performance, thank you for supporting my post, I value it very much, blessings to you
Hello @yraimadiaz
You are most welcome.
Thank you for motivating words
I'll keep up my best
Thank you for dropping by & commenting
!GIF Support each other
Here are some additional gifts for you.
Via Tenor
Premium Wholesale crayfish-fresh-dryCrayfish | Fresh & Dry camseafoodwordwideSeafood Fresh
Congratulations to friends who have been mentioned here.
@mnurhiver
Yes. Congratulations to everyone mentioned here.
and you also keep up the good work.
Ok @sagarkothari88
I am very happy to be able to join all my friends. I also always want to do better.Greetings to you.
Thanks for bringing to our attention the workings within code, always great support from individuals like yourself!
!BEER
Hello @joanstewart
You are most welcome.
My posts are mostly for reminding myself on what I've done.
Leaving the footprint of progress.
Sometimes even I don't understand my own code but with my posts help me understand why-when-where-how etc.
Thank you for the beer token.
I'll keep supporting.
Thank you for dropping by & commenting
!GIF Support Each Other
Here are some additional gifts for you.
Don't forget to support back
Via Tenor
View or trade
BEER
.Hey @sagarkothari88, here is a little bit of
BEER
from @joanstewart for you. Enjoy it!We love your support by voting @detlev.witness on HIVE .
$PIZZA slices delivered:
@sagarkothari88(6/10) tipped @verdesmeralda
sagarkothari88 tipped yraimadiaz
sagarkothari88 tipped joanstewart
sagarkothari88 tipped lileisabel
sagarkothari88 tipped yeral-diaz
Thank you very much for the mention, I think you are an excellent person who dedicates his time for a good ecosystem in the Hive Web3.
Hello @yeral-diaz
You are most welcome.
Thank you for motivating words.
I'll keep up my best
Thank you for dropping by & commenting
!GIF You are most welcome
Here are some additional gifts for you.
Don't forget to support back
Via Tenor
Thank you so much for your support and all you do for Hive. Receive many blessings today and always.
Hello @verdesmeralda
You are most welcome.
Thank you for blessings & wishes.
I'll keep up my best.
Thank you for dropping by & commenting
!GIF I'm blessed
Here are some additional gifts for you.
Via Tenor
Thank you very much, you are very generous 😊