Powerbuilder Update Key Place. Days of Power. Builder – Day 6 – Adding Controls to a Form: Anvil of Time. This is part of my project. Most steps/examples will.
Introduction
The Maps Embed API lets you place an interactive map, or Street Viewpanorama on your site with a simple HTTP request. It can be easily embedded inyour web page or blog by setting the Maps Embed API URL as the
src
attribute of an iframe:Easy embedding
Maps Embed API maps are easy to add to your webpage—just setthe URL you build as the value of an iframe's
src
attribute. Control the sizeof the map with the iframe's height
and width
attributes. No JavaScriptrequired.Advertisements on the map
The Maps Embed API may include on-map advertising. The ad format andthe set of ads shown in any given map may change without notice.
Before you begin
Get a key
To use the Maps Embed API, you must include a free API key whenmaking a request to the API.
Follow the instructions in theguide to getting an API keyto register your app project on the Google Cloud Platform Console, and get a Google API keyto add to your app or website.
Enable billing
NEW: Certain uses of the Maps Embed API are now billed. Before youstart developing with the Maps Embed API, review theusage and billinginformation (you need to enable billing on your project).
Forming the URL
The URL for an Maps Embed API request is as follows:
Where:
{MODE}
is one ofplace
,search
,view
,directions
, orstreetview
.{YOUR_API_KEY}
is your free API key.parameters
include optional parameters, as well asmode-specific parameters.
![Powerbuilder Update Key Place Powerbuilder Update Key Place](https://www.appeon.com/support/documents/appeon_online_help/pb2017r2/connecting_to_your_database/images/cn1pr.gif)
![Placement Placement](http://anvil-of-time.com/wordpress/wp-content/uploads/2010/09/dw-update-props.png)
Basic Map Modes
Note: Embed API requests using Place mode or View mode remain free with unlimited usage. See usage and billing for details.
Specify which map mode to use in the request URL.
Place mode
Place
mode displays a map pin at a particular place or address, such as alandmark, business, geographic feature, or town.The following URL parameter is required:
q
defines the place to highlight on the map. It accepts a location aseither a place name, address, or place ID. The stringshould be URL-escaped, so an address such as 'City Hall, New York, NY' shouldbe converted toCity+Hall,New+York,NY
. (The Maps Embed APIsupports both+
and%20
when escaping spaces.) Place IDs should beprefixed withplace_id:
.
View mode
View
mode returns a map with no markers or directions.The example below uses the optional
maptype
parameter to display asatellite view of the map.The following URL parameter is required:
center
defines the center of the map window, and accepts alatitude and a longitude as comma-separated values (-33.8569,151.2152
).
Advanced Map Modes
Note: Embed API requests using Directions mode, Street View mode, or Search mode are billed. See usage and billing for details.
Specify which map mode to use in the request URL.
Directions mode
Directions
mode displays the path between two or more specified pointson the map, as well as the distance and travel time.The following URL parameters are required:
origin
defines the starting point from which to display directions. Thevalue can be either a place name, address or place ID.The string should be URL-escaped, so an address such as 'City Hall, New York,NY' should be converted toCity+Hall,New+York,NY
. (TheMaps Embed API supports both+
and%20
when escaping spaces.)Place IDs should be prefixed withplace_id:
.destination
defines the end point of the directions.
The following URL parameters are optional:
waypoints
specifies one or more intermediary places to route directionsthrough between the origin and destination. Multiple waypoints can bespecified by using the pipe character (|) to separate places(e.g.Berlin,Germany|Paris,France
). You can specify up to 20 waypoints. Eachwaypoint can be either a place name, address or place ID.mode
defines the method of travel. Options aredriving
,walking
(which prefers pedestrian paths and sidewalks, where available),bicycling
(which routes via bike paths and preferred streets whereavailable),transit
, orflying
. If no mode is specified, theMaps Embed API will show one or more of the most relevant modesfor the specified route.avoid
tells Google Maps to avoidtolls
,ferries
and/orhighways
.Separate multiple values with the pipe character (e.g.avoid=tolls|highways
). Note that this doesn't precluderoutes that include the restricted feature(s); it simply biases the resultto more favorable routes.units
specifies eithermetric
orimperial
units when displayingdistances in the results. Ifunits
are not specified, theorigin
country of the query determines the units to use.
Street View mode
The Maps Embed API lets you display Street View images on your siteor blog as interactive panoramas. Google Street View provides panoramic viewsfrom designated locations throughout its coverage area. Usercontributed Photospheres, andStreet View special collectionsare also available.
Each Street View panorama provides a full 360-degree view from a singlelocation. Images contain 360 degrees of horizontal view (a full wrap-around)and 180 degrees of vertical view (from straight up to straight down). The
streetview
mode provides a viewer that renders the resulting panorama as asphere with a camera at its center. You can manipulate the camera to controlthe zoom and the orientation of the camera.One of the following URL parameters are required:
location
accepts a latitude and a longitude as comma-separated values(46.414382,10.013988
). The API will display the panorama photographedclosest to this location. Because Street View imagery is periodicallyrefreshed, and photographs may be taken from slightly different positionseach time, it's possible that your location may snap to a differentpanorama when imagery is updated.pano
is a specific panorama ID. If you specify apano
you may alsospecify alocation
. Thelocation
will be only be used if the APIcannot find the panorama ID.
The following URL parameters are optional:
heading
indicates the compass heading of the camera in degrees clockwisefrom North. Accepted values are from -180° to 360°.pitch
specifies the angle, up or down, of the camera. Thepitch
isspecified in degrees from -90° to 90°. Positive values will anglethe camera up, while negative values will angle the camera down. Thedefault pitch of 0° is set based on on the position of the camera whenthe image was captured. Because of this, a pitch of 0° is often, butnot always, horizontal. For example, an image taken on a hill will likelyexhibit a default pitch that is not horizontal.fov
determines the horizontal field of view of the image. The field ofview is expressed in degrees, with a range of 10° - 100°. Itdefaults to 90°. When dealing with a fixed-size viewport the field ofview is can be considered the zoom level, with smaller numbers indicating ahigher level of zoom.language
defines the language to use for UI elements and labels. Bydefault, visitors will see UI elements in their own language.region
defines the appropriate borders and labels to display, based ongeo-political sensitivities. Accepts a region code specified as atwo-character ccTLD (top-level domain)value.
Search mode
Search
mode displays results for a search across the visible map region. It's recommended that a location for the search be defined, either by including a location in the search term (record+stores+in+Seattle
) or by including a center
and zoom
parameter to bound the search.The following URL parameter is required:
q
specifies the search term. It can include a geographic restriction,such asin+Seattle
ornear+98033
.
Optional parameters
The following optional parameters can be used with any of the map modes listedabove.
center
defines the center of the map view. It accepts a comma-separatedlatitude and longitude value (such as37.4218,-122.0840
).zoom
sets the initial zoom level of the map. Accepted values range from0 (the whole world) to 21 (individual buildings). The upper limit can varydepending on the map data available at the selected location.maptype
can be eitherroadmap
(the default) orsatellite
, and definesthe type of map tiles to load.language
defines the language to use for UI elements and for the display oflabels on map tiles. Note that this parameter is only supported for somecountry tiles; if the specific language requested is not supported for thetile set, then the default language for that tileset will be used. Bydefault, visitors will see a map in their own language.region
defines the appropriate borders and labels to display, based ongeo-political sensitivities. Accepts a region code specified as atwo-character ccTLD (top-level domain)value.
Place ID parameters
The Maps Embed API supports using place IDs instead of supplying aplace name or address. Place IDs are stable way to uniquelyidentify a place. See the Google Places API documentationfor more information on how to find and use place IDs.
The Maps Embed API accepts place IDs for the following URLparameters:
q
origin
destination
waypoints
In order to use a place ID, you must first add the prefix
place_id:
. Thefollowing code specifies New York City Hall as the origin for a directionsrequest: origin=place_id:ChIJs--MqP1YwokRBwAhjXWIHn8
.radius
sets a radius, specified in meters, in which to search for apanorama, centered on the given latitude and longitude. Valid valuesare non-negative integers. Default value is 50.source
limits Street View searches to selected sources. Valid values are:default
uses the default sources for Street View; searches arenot limited to specific sources.outdoor
limits searches to outdoor collections. Indoorcollections are not included in search results. Note that outdoor panoramasmay not exist for the specified location. Also note that the search onlyreturns panoramas where it's possible to determine whether they're indoorsor outdoors. For example, PhotoSpheres are not returned because it's unknownwhether they are indoors or outdoors.
Embedding the map
To use the Maps Embed API on your web page, set the URL you'vebuilt as the value of an iframe's
src
attribute. Control the map's size withthe iframe's height
and width
attributes:Tip: Add allowfullscreen to your iframe properties to allowcertain map parts to go full screen.Tip: The
frameborder='0'
and style='border:0'
propertiesremove the standard iframe border from around the map.You can resize the iframe to suit the structure and design of your own website,but we find that visitors usually find it easier to interact with larger maps.Note that embedded maps are not supported below a size of 200px in eitherdimension.
Usage statistics
For users of Maps Embed API, Google uses anonymous cookies todetermine the number of unique users of the API. Google also accumulatesstatistics about the types of features used from the Maps product.