google map and asp.net RRS feed

  • Question

  • User-522390617 posted

    Hi friends,

    I am working for distribution company. The company wants to show to every vehicle the customers address on google map every day.

    The addresses are saved in sql server database. how can i show the addresses on google map every day to vehicles  on web page.

    Could you please send me a sample if possible ?

    Thanks alot.

    Sunday, July 28, 2019 3:34 AM

All replies

  • User665608656 posted

    Hi tiam,

    Could you please send me a sample if possible ?

    Yes, it is possible to do this.

    First, you should ensure that the location information stored in your database is stored in longitude and latitude.

    In order to gain access to Google Maps in asp.net, you need to get the key of the Google Maps webapi.

    How to get the key, you can refer to: Get an API Key

    When you get the key, create your asp.net page, you can create MVC or webform.

    On the front page, you need to refer to the JS file of the webapi of Google Maps (including the key) like this :

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=your key"></script>

    For more details, you could refer to these links:

    Here is for mvc:

    Google Map Using SQL Server Stored Procedure In ASP.NET MVC 5

    Here is for webform:

    Show Google Maps using Latitude and Longitude in ASP.Net

    Hope these will help you.

    Best Regards,


    Monday, July 29, 2019 3:22 AM