LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Google Geocoding / Mapping Example

    Employee
    Posted 04-25-2013 12:51

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: johnpelz

    **Nodes released into this community are prototypes. They have gone through a minimum set of tests; therefore, we cannot guarantee that they will work as designed nor are they supported by any existing maintenance contracts.**

    This prototype graph provides a few examples of how to invoke Google Web Service APIs through the Lavastorm Analytics Engine, leveraging the HTTP and Tabular XML nodes. The Google Geocoding, Static Maps, and Distance Matrix APIs are used in this prototype.

    REQUIREMENTS :

    The attached BRG contains two library nodes :
    • Google Static Map Image : this node will take a series of addresses and pass them into the Google Static Map API, resulting in a single static image with each of the addresses properly mapped.
    • Google GeoCode Lookup : This node will take a series of addresses and perform a geocode lookup through Google's Gecode API.
    • Google Distance Matrix: This node will take a two addresses & pass them to the Google Distance Matrix API to calculate & provides travel distance and time for a matrix of origins and destinations.

    To download the graph, scroll to the bottom of the thread - enjoy!!

    ***Below you will find more information about each of the Google APIs being leveraged here:
    Google Static Map API
    https://developers.google.com/maps/d...aticmaps/index
    25 000 free static map requests per application per day.
    Static Map URLs are restricted to 2048 characters in size

    Google Geocoding API
    https://developers.google.com/maps/d...ion/geocoding/
    Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.)

    Google Distance Matrix API
    https://developers.google.com/maps/d...istancematrix/
    The Distance Matrix API has the following limits in place: 100 elements per query, 100 elements per 10 seconds, 2 500 elements per 24 hour period.
    Attachments:
    GoogleMapsPrototype.brg


  • 2.  RE: Google Geocoding / Mapping Example

    Employee
    Posted 09-18-2013 14:50

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: johnpelz

    I've made a couple of additions to Geocoding Prototype graph I posted back in April and have attached the updated graph / library. Specifically:

    Google Reverse Geocode API
    https://developers.google.com/maps/d...verseGeocoding
    Translates a location on the map (LAT LNG) into a human-readable address

    Distance Calculation - "Great-Circle Distance"
    Given a set of geographic coordinates (LAT LNG), this node will calculate the "Great-Circle" distance between the two points using the Haversine formula.
    Attachments:
    GoogleMapsPrototype.brg


  • 3.  RE: Google Geocoding / Mapping Example

    Employee
    Posted 04-10-2015 08:39

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    It seems that some of the Java calls changed from 4.6/5.0 to 5.1. Here is an updated graph that parses the map image (response from the Google Maps API) to be used with the Visualizer node.
    Attachments:
    GoogleMaps_API_LAE5.1.brg


  • 4.  RE: Google Geocoding / Mapping Example

    Employee
    Posted 04-23-2015 09:31

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: djnrempel

    This is great! I was just coming here to post to ask if this was possible.


  • 5.  RE: Google Geocoding / Mapping Example

    Employee
    Posted 01-06-2017 03:39

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: dunnjs

    Morning All,

    This is great. However I get an error while trying to run the graph

    ERROR: There is a problem processing XML data line 2 column 2. The markup in the document following the root element must be well formed.

    Does anyone have any experience with this ?

    Regards.

    Jeremy.