2024-06-13 - Integrating Google Maps Platform - New Places API & Nearby API

post thumbnail

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

Project - Distriator

Places API are needed for Business Management APIs

new route - places

  • 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

using maps

  • 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

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

mapping location 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

a screenshot from postman

  • 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 NameResource DescriptionApprox Cost of ResourceStatus
Hive WitnessHive Witness Node$50
DluxRunning Dlux Witness Node$5
LarynxRunning a LARYNX node$5
DuatRunning a DUAT node$5
VSCRunning a VSC witness node$5
Discord BotHive Curators Discord Bot Node$5
HP RewardsHive Curators HP reward Bot Node$5
12 NodesPowerful video encoder nodes for 3Speak $20 on average$240
Bandwidth3 internet connections$50
DistriatorHive-Distriator Backend node$50
Community ContributorsRewarding community contributors in INR$60
Additional DevelopersAdditional Contributing Developers$1500
--------
TotalApprox$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.

2024-06-13-encoder-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.

AuthorPost
@lileisabelhttps://ecency.com/@lileisabel/initiative-my-opinion-on-hive-the-good-and-the-bad-enes-g5
@eustace-kiddhttps://ecency.com/@eustace-kidd/splinterlands-fan-art--angel-of-light-chibi-
@shiftroxhttps://ecency.com/@shiftrox/enptbr-best-in-class-and-cash-reward-better-not-g9c
@coquicoinhttps://ecency.com/@coquicoin/a-short-walk-in-hyde-park-chicago
@bluefinstudioshttps://ecency.com/@bluefinstudios/mulch-maintenance-and-more-garden-fun
@idiosyncratic1https://ecency.com/@idiosyncratic1/the-fed-postponed-the-party-in-markets-47w
@verdesmeraldahttps://ecency.com/@verdesmeralda/powerful-beet-juice-and-more
@yraimadiazhttps://ecency.com/@yraimadiaz/jugo-verde--desintoxica-tu-cuerpo-green-juice-detoxify-your-body
@rosecanehttps://ecency.com/@rosecane/a-total-stranger-saved-my-job
@shrazihttps://ecency.com/@shrazi/fan-art-gif-of-dragonmaster-game-character
@zekepicklemanhttps://ecency.com/@zekepickleman/pickleman-family-garden-grow-my-pretties
@nkemakonam89https://ecency.com/@nkemakonam89/rewarding-academic-excellence-effective-strategy-or-shortterm-fix-7ct
@fasacityhttps://ecency.com/@fasacity/a-balanced-motivation-for-students
@valentinalifehttps://ecency.com/@valentinalife/dovgij-shlyah-do-varenikiv
@semarekhahttps://ecency.com/@semarekha/cloudy-atmosphere-and-nature-my
@marlynmonthttps://ecency.com/@marlynmont/idea-para-hacer-patron-para
@oadissinhttps://ecency.com/@oadissin/nueblszp
@bruno-kemahttps://ecency.com/@bruno-kema/should-school-and-money-mix
@srey-yuuhttps://ecency.com/@srey-yuu/having-fun-with-uno-game-and-sharing-it-with-you-all
@costanzahttps://ecency.com/@costanza/meme-coin-summer-portfolio-week-12-or-first-red-week
@cryptothesishttps://ecency.com/@cryptothesis/a-small-victory-and-a-300-gain-atu
@idayrushttps://ecency.com/@idayrus/monomad-or-photographing-with-a
@armandosodanohttps://ecency.com/@armandosodano/what-remains-in-time-watercolours-on-paper
@hadrianwildhttps://ecency.com/@hadrianwild/butterfly-bonanza
@michupahttps://ecency.com/@michupa/educational-meritocracy-enpt-h7y
@shriram19https://ecency.com/@shriram19/icbc-sees-bitcoin-as-digital-gold-dql
@joanstewarthttps://ecency.com/@joanstewart/village-people
@cetb2008https://ecency.com/@cetb2008/mi-experiencia-en-la-celebracin-del-da-de-la-bandera--4v8
@ruffatotmeeehttps://ecency.com/@ruffatotmeee/isa-sa-paborito-kong-almusalin-sa-umaga-ay-fried-rice-na-may-kapares-na-scrambled-egg-with-bits-of-sardines
@skiptvadshttps://ecency.com/@skiptvads/reverse-the-curse-2023-movie-preview-dxn
@duvincahttps://ecency.com/@duvinca/expats-a-multicultural-intimate-tv
@dinaaczibhttps://ecency.com/@dinaaczib/unicentro-shopping-center-the-newest-in-my-city
@bluemoonhttps://ecency.com/@bluemoon/a-sea-ever-more-distant
@liveofdallahttps://ecency.com/@liveofdalla/mascarilla-purificante-arcilla-rosada-esp-eng
@neruelhttps://ecency.com/@neruel/capri-ristorante-italian-food-barquisimeto-esen-bha
@taniagonzalezhttps://ecency.com/@taniagonzalez/engesp-santiago-marino-park
@yeral-diazhttps://ecency.com/@yeral-diaz/qmjttwko
@suteruhttps://ecency.com/@suteru/cleaning-our-small-taro-pond-cpk
@merit.ahamahttps://ecency.com/@merit.ahama/a-cash-reward-for-best-in-class-can-we-do-this-hbp
@crazyphantombrhttps://ecency.com/@crazyphantombr/education-and-opportunities-6mc
@silversaver888https://ecency.com/@silversaver888/vintage-silvertowne-mint-horse-drawn-carriage
@erilejhttps://ecency.com/@erilej/week-69-hot-or-boiling-coffee
@miriannalishttps://ecency.com/@miriannalis/an-afternoon-stroll-in-trieste

Support @sagarkothari88

Vote sagarkothari88 as Hive Witness

Support @threespeak

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.

image by noakmilo

banner of distriator by josegrech

Don't forget to swap your HBD/Hive using @ecency



0
0
0.000
27 comments
avatar

Thanks a lot! And happy Weekend!
!ALIVE

0
0
0.000
avatar

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.

  • Here is !LUV token gift for you
0
0
0.000
avatar

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.

image.png

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.

0
0
0.000
avatar

I congratulate you for your great work and performance, thank you for supporting my post, I value it very much, blessings to you

0
0
0.000
avatar

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.

  • Here is !LUV token gift for you
  • Here is !PIZZA token gift for you
0
0
0.000
avatar

Congratulations to friends who have been mentioned here.

0
0
0.000
avatar

Thanks for bringing to our attention the workings within code, always great support from individuals like yourself!

!BEER

0
0
0.000
avatar

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.

  • Here is !LUV token gift for you
  • Here is !PIZZA token gift for you

Don't forget to support back

0
0
0.000
avatar
(Edited)

PIZZA!

$PIZZA slices delivered:
@sagarkothari88(6/10) tipped @verdesmeralda
sagarkothari88 tipped yraimadiaz
sagarkothari88 tipped joanstewart
sagarkothari88 tipped lileisabel
sagarkothari88 tipped yeral-diaz

0
0
0.000
avatar

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.

0
0
0.000
avatar

Thank you so much for your support and all you do for Hive. Receive many blessings today and always.

0
0
0.000
avatar

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.

  • Here is !LUV token gift for you
  • Here is !PIZZA token gift for you
0
0
0.000