简体   繁体   中英

How to add places to google map using google API in c#

I have multiple places store in my db . places contain (Longitude,latitude,Name,Website,phone,...) . I want to add these place to google maps using c# method. How can I Send place to google maps ?

You might want to have a look at this one:

Calling JavaScript Function From CodeBehind

There are two solutions:

Use the JS

In short terms:

  1. You do the Google API requests still via JS
  2. Your C# Backend is doing the Database calls and
  3. Routes the parameters to the JS via the above

I think that should work without a problem.

Send API Requests purely by C#

The Google Maps API can, of course be requested by you by sending out the JSON calls.

This post gives guidance in that: google maps API for C#

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM