# Google Geocoding, Direction Examples and Usage of msg.location.lat and msg.location.lon

**URL:** <https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043>\
**Category:** General\
**Created:** [5 December 2020 11:11 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043 "2020-12-05T11:11:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Sandy](https://discourse.nodered.org/u/Sandy)\
**Post date:** [5 December 2020 11:11 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/1 "2020-12-05T11:11:31Z")

</div>

Hi All,  
I need to send the **latitude and longitude of both Source and Destination,**  
Then I need the _Path in Google Map_, How Can I do in Node-Red and Can I Have **Google Map in Dashboard.**

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [6 December 2020 20:11 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/2 "2020-12-06T20:11:18Z")

</div>

There is a very nice worldmap node - you should check out the flows site and search for things that might help you. Doesn't use Google Maps though - which have limits unless you are paying a fee.

It is certainly possible to have a google map integration with dashboard but isn't probably that easy to do.

I don't really use Dashboard for anything complex - if you wanted to use VueJS, you could make use of uibuilder - there are multiple examples of VueJS mapping here: [Maps - Vue.js Examples](https://vuejsexamples.com/tag/maps/).

---

<div class="post-metadata">

**Author:** ![Sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Sandy](https://discourse.nodered.org/u/Sandy)\
**Post date:** [7 December 2020 04:20 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/3 "2020-12-07T04:20:01Z")

</div>

Thank you for Reply,  
If you know can you please suggest me through Examples on **Google Direction and Google Geocoding Nodes**?  
or else  
Any alternative way to **send the Data(Lattitude and Longitude) to Google Maps** to get directions from Source to Destination.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [7 December 2020 20:23 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/4 "2020-12-07T20:23:24Z")

</div>

Sorry, I can't do that as I've not done it myself. However, I'm sure there are many Internet posts/tutorials that will guide you.

---

<div class="post-metadata">

**Author:** ![Sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Sandy](https://discourse.nodered.org/u/Sandy)\
**Post date:** [10 December 2020 07:26 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/5 "2020-12-10T07:26:16Z")

</div>

Can Anyone have any Idea..?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 December 2020 08:01 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/6 "2020-12-10T08:01:17Z")

</div>

What are trying to achieve? For example, you could easily generate a Google maps link that has start and destination.

However if you want results inside node-red or the dashboard, then you're likely to have to use the the Google API & will likely need a developer API key.

Reference material...  
"Get Started | Directions API | Google Developers" [https://developers.google.com/maps/documentation/directions/start](https://developers.google.com/maps/documentation/directions/start)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 February 2021 08:01 UTC](https://discourse.nodered.org/t/google-geocoding-direction-examples-and-usage-of-msg-location-lat-and-msg-location-lon/37043/7 "2021-02-08T08:01:35Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
