GOOGLE MAP API KEY AND LONGITUDE LATITUDE

Add api key and directions to google map in website


You can easily add google map to your web site .For adding google map to your web site you require following things.


  • API KEY
  • LONGITUDE AND LATITUDE OF YOUR LOCATION


1 API KEY 


  •  It is the key generated for google map for generating this key you can go following link

  • Now on this site hover over on credential tab on left hand side as shown in figure




  • Now click on create and it will create a project for you.
  •  select the project id on tab and click on create credential option after clicking this option it will generate a api key for you .
  •  Now copy your api key and you have to use this api key in the google map code let me tell you step by step where you have to put your api key.


 2 GET LONGITUDE AND LATITUDE

  •  First of all open the google map in your browser or you can follow the following link



           Get exact longitude and latitude from https://www.latlong.net/

  • Now select the location you want to display on your web site map and copy the latitude and longitude form maps or do a right click on a location and select "whats here in the popup list"as shown in the figure below.





  • Now you have both the things ready API KEY and your map LATITUDE AND LONGITUDE
  • Now use both the things ( embed in code ) to display google map on your web site by following this link : 



Go to google maps

3 comments:

  1. sir i get api key .google map show 'only use for developer use'.how can i fix this problem??

    ReplyDelete
  2. i used geolocation in my web. it well working .but when i upload in web then geolocation give null value. how can i fix this? plz reply me

    ReplyDelete
    Replies
    1. there may be some javascript issue try to check you are using same api key as told in this video

      Thankyou

      Delete