This operation generates a URL for Google APIs, especially for the Maps Static API. The privateKey parameter can be used to add URL signing to the adapter output.
Input
For the CreateGoogleURL operation, the adapter expects an XML input structure according to the following pattern:
<?xml version="1.0" encoding="UTF-8"?>
<RootElement>
<Path>/maps/api/staticmap</Path>
<Param name="center">59.900503,-135.478011</Param>
<Param name="zoom">4</Param>
<Param name="size">400x400</Param>
<Param name="path">fillcolor:0x0000AA33|color:0xFFFFFF00|enc:_qo]~po]koBqtmV|@{lcNlmBq_mUvnuO?fsik@??~b`|@}g`h@?az~R?</Param>
</RootElement>
The root element contains the following elements:
|
Element |
Description |
|---|---|
|
|
URL part of the Google Static Maps API (see http://code.google.com/intl/de-DE/apis/maps/documentation/staticmaps/) |
|
|
Defines the map section to be created via parameters. Each parameter is specified as a separate XML
Typical parameters:
Possible values:
Possible values:
Possible values:
Possible components:
Note: Multiple properties are separated by
XML
Possible components:
Note:
|
Output
If the operation is successful, the adapter returns an XML document with a URL to the Google Maps map section defined by the input. The outputFormat does not affect the composition of the URL.
<HREF>https://maps.google.de?path=&size=&sensor=false&markers=48.952663786788165%2C+8.390965795490331&signature=9BCZz3mKiXcWJ1e6jl4puG1XUhI=</HREF>
Examples
Here are some examples of the CreateGoogleURL operation
.