Omar Seleim
Omar Seleim

Reputation: 21

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 ?

Upvotes: 1

Views: 3956

Answers (1)

Kaibear
Kaibear

Reputation: 95

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#

Upvotes: 1

Related Questions