->

09 March 2010

New Google Geocoding Web Service

New Google Geocoding Web Service

The service is now 'not limited' but you are required to show the results on a Google Map.
Examples given to help user understand the importance of this update.
Lots of updated content and improvement from feedbackNew Service v3 Geocoding
  • Unlimited Usage*
  • Status Codes (in Plain English!)
  • Java Support (Parsing XML with XPath)
"*Note: the geocoding service may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited."
[2,500 requests may be sent to the Geocoding Web Service per day from a single IP address]

but purley for example based on the official example given
Geocoding London (UK)
http://maps.google.co.uk/maps/api/geocode/xml?address=London&sensor=false
New Google Geocoding Web Service

Reverse Geocoding 51.5001524,-0.1262362 (London)
http://maps.google.com/maps/api/geocode/xml?latlng=51.5001524,-0.1262362&sensor=false

Countries Support
http://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1
Note: en-GB ENGLISH (GREAT BRITAIN) enabled

New Status Codes - now in Plain English
  • "OK" indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned. example
  • "ZERO_RESULTS" indicates that the geocode was successful but returned no results. This may occur if the geocode was passed a non-existent address or a latlng in a remote location. example
  • "OVER_QUERY_LIMIT" indicates that you are over your quota. (your geocoding too fast!)
  • "REQUEST_DENIED" indicates that your request was denied, generally because of lack of a sensor parameter. example
  • "INVALID_REQUEST" generally indicates that the query (address or latlng) is missing. example
Now for the new content:

geometry contains the following information:

* location contains the geocoded latitude,longitude value. For normal address lookups, this field is typically the most important.
*location_type stores additional data about the specified location. The following values are currently supported:
o "ROOFTOP" indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision.
o "RANGE_INTERPOLATED" indicates that the returned result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections). Interpolated results are generally returned when rooftop geocodes are unavailable for a street address.
o "GEOMETRIC_CENTER" indicates that the returned result is the geometric center of a result such as a polyline (for example, a street) or polygon (region).
o "APPROXIMATE" indicates that the returned result is approximate.
* viewport contains the recommended viewport for displaying the returned result, specified as two latitude,longitude values defining the southwest and northeast corner of the viewport bounding box. Generally the viewport is used to frame a result when displaying it to a user.
* bounds (optionally returned) stores the bounding box which can fully contain the returned result.

Java Support
Parsing XML with XPath

Although it is not as lightweight as JSON, XML does provide more language support and more robust tools. Code for processing XML in Java, for example, is built into the javax.xml packages
please see http://code.google.com/apis/maps/documentation/geocoding/#XMLParsing for full details.

Full Documentation (updated)
http://code.google.com/apis/maps/documentation/geocoding/
Official Blog Post
http://googlegeodevelopers.blogspot.com/2010/03/introducing-new-google-geocoding-web.html
Mano Marks (Google Geo Developer Advocate)
http://randommarkers.blogspot.com/2010/03/client-side-geocoding-rocks.html

Full terms and conditions
http://code.google.com/apis/maps/terms.html#section_10_12
Maps API Terms
http://code.google.com/apis/maps/terms.html

Labels: , , , , , ,

05 April 2007

My Maps Service - New from Google Maps

All New from Google Maps 'My Maps' - Make your own Custom Maps with help from Google Maps

Like this....
My Maps New from Google Maps
(note mapperz not really having Tea with the PM purely for example reasons and testing this useful service out)

So how do you get this to work?
Easy if you have a Google account. If you want one you can sign up here
Login and go to http://maps.google.co.uk
or your localized area eg http://maps.google.com

Click on My Maps New
In the Left Table of Contents

You will notice some new icons appear
My Maps New Icons Edit Mode
Pan, Create Marker, Create Line, Create Polygon
Now Search for your area of interest, 10 Downing Street, London, UK in this instance
this will zoom into and place a 'found' marker to show you the centre point.

Now you can add your own marker (like mapperz has to locate Number 10)

This is easy to create and edit, you can have as many markers as you like.

Google provide a tool tips help when using the point, line and polygon in edit mode.
Drag to move vertices polygon edit mode

Want to edit the colour and transparency of the polygon?
easy

Editing polygon fill transparency
Transparency or Fill Opacity can be changed so that the background mapping can be seen.
Default is 45, (100= solid fill, 0= no fill)

Okay now you have a go!

Top Tip: If you want a KML file so you can view in Google Earth you can use the KML Icon in the Top where 'Link to Page' is located.

To add an image - use the 'Rich Text' Mode
Add images to my maps rich text mode
Click on the image icon on the toolbar and find a copyright free image or your own which is hosted on a webserver/site.Copy Image Location on the image and paste into the prompt on the My Map Editor as above.

The same can be done with Video from the likes of You Tube, MySpace etc.

For a more interactive tutorial (video) please visit the following (after the ad)
http://news.com.com/1606-2_3-6173473.html?tag=ne.vid

Want more information on this?

Google Earth Blog does a good round-up of this new service...

"The really interesting aspect to the announcement is that the underlying data is all KML! KML is the file format for Google Earth content - and now Maps too. This means you can create your maps and then click on the "KML" in the upper right of the map and immediately view the content in Google Earth. Furthermore, when you search for content you will not only be able to get local business search results, but also get KML search results (just like the recent KML search update for Google Earth). Look for a "See user-created content" link after the other results - it only appears when there is relevant content searched in the current view (see example)."

Source: Google Earth Blog

more info to feed on here...

Official Post: map-making-so-easy-caveman-could-do-it
Official 'My Maps' Help: http://maps.google.com/help/maps/userguide/index.html

And of course Google Maps Mania blogged it.

mapperz

Labels: , , , ,