dotnet / docs-maui

This repository contains documentation for .NET Multi-platform App UI (MAUI).
https://docs.microsoft.com/dotnet/maui
Creative Commons Attribution 4.0 International
221 stars 193 forks source link

How to configure and use Google Maps Places API in .net Maui #2032

Open BroomTank opened 7 months ago

BroomTank commented 7 months ago

Type of issue

Missing information

Description

Hello, I am currently developing a .net maui app that uses the maui maps library with google maps api. I have searched for how to get googles Places API to work, but i cant find any documentation on this. If a user clicks a "point of interest" of place you would get rating and details of the place. this is the link to the documentation https://developers.google.com/maps/documentation/places/web-service Can somone point me in the right direction?

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/map?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/user-interface/controls/map.md

Document Version Independent Id

3b9eb607-2e67-164a-b72b-c6750f05a972

Article author

@davidbritch

Metadata

davidbritch commented 7 months ago

Hi @BroomTank

So at a glance it'll be a case of using the MapClicked event to get Location data, then hitting up the REST API with the required data and processing the response. The issue then depends on where you're trying to display the data you've got back? Do you want to overlay it on the map?