Nearest Hospitals / Pharmacies with HMS Map Kit& Location Kit& Site Kit

asetgrvwetb
2 min readDec 17, 2021

--

Hi everyone,

In this article, I will show you how we can develop the application that shows the nearest hospitals / pharmacies with Site&Map&Location Kit.

Location Kit combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app to build up global positioning capabilities, allowing you to provide flexible location-based services for global users. We will use Fused Location Service.

Site Kit provides place search services including keyword search, nearby place search, place detail search, and place search suggestion, helping your app provide convenient place-related services to attract more users and improve user loyalty. We will use this service for find nearest hospitals / pharmacies according to location information.

Map Kit is an SDK for map development. It covers map data of more than 200 countries and regions, and supports over one hundred of languages. With this SDK, you can easily integrate map-based functions into your apps. We will use to show hospitals / pharmacies.

If the location service returns a successful result, we will define lattitude and longtitude variables and call search() method. Search method will return sites.We need to set our api key here.And then we will call nearbySearch api.

Conclusion

In this article, we have learnt how to integrate Map & Site & Location Kit. Have a good reading :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

asetgrvwetb
asetgrvwetb

No responses yet

Write a response