Skip to main content
Skip table of contents

Operation: CreateGoogleURL

With the operation CreateGoogleURL a URL to a Google Maps map section image (when using the Google Maps API Premier with a signed URL) can be created.

Input

For the operation CreateGoogleURL the adapter expects an input XML structure with the following pattern that contains the URL part of the Google Static Maps API within the element Path (see http://code.google.com/intl/de-DE/apis/maps/documentation/staticmaps/). In addition, the map section to be displayed is specified within Param elements. One of these parameters has an attribute name="size" containing the pixel measurements of the map section to be displayed.

Each Param element with the attribute name="markers" defines a marker with a color (e. g. color:blue) and a text label (a capital letter, e. g. label:X).

Param element with the attribute name="path" defines path properties (e. g. line color color:blue) separated by |, as well as a route having the prefix enc: that consists of GoogleLine-encoded waypoints:

HTML/XML
<GoogleMaps>
  <Path><!--/maps/api/staticmap--></Path>
  <Param name="size"><!--640x640--></Param>
  
  <!-- für jede Stecknadel-Markierung -->
  <Param name="markers">
    <!--color:Farbe|label:Großbuchstabe|Latitude,Longitude-->
  </Param>
  
  <!-- für jeden Pfad; Parameter getrennt durch "|" -->
  <Param name="path">
      <!--Parametername:Parameterwert|enc:GoogleLine-kodierter Pfad-->
  </Param>
</GoogleMaps>

Output

For the operation CreateGoogleURL an XML document will be output that contains a URL for a Google Maps map section that corresponds to the input. The outputFormat has no effect on the composition of the URL.

HTML/XML
<HREF>https://maps.google.de?path=&size=&sensor=false&markers=48.952663786788165%2C+8.390965795490331&signature=9BCZz3mKiXcWJ1e6jl4puG1XUhI=</HREF>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.