0% found this document useful (0 votes)
33 views2 pages

Google API

These web services use HTTP requests to specific URLs, passing URL parameters as arguments. The services generally return data in JSON or XML format for processing by applications. URLs must follow specific formatting rules and be encoded properly. Additionally, URLs have a character limit of 2048 for web services.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Google API

These web services use HTTP requests to specific URLs, passing URL parameters as arguments. The services generally return data in JSON or XML format for processing by applications. URLs must follow specific formatting rules and be encoded properly. Additionally, URLs have a character limit of 2048 for web services.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

These web services use HTTP requests to specific URLs, passing URL parameters as arguments to the services.

Generally, these services return data in the HTTP request as either JSON or XML for parsing and/or processing by your application.

http://maps.googleapis.com/maps/api/service/output?parameters

https://maps.googleapis.com/maps/api/service/output?parameters

Building a Valid URL

Set Alphanumeric

characters abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTU VWXYZ0123456789 -_.~ !*'();:@&=+$,/?%#[]

URL usage Text strings, scheme usage (http), port (8080), etc. Text strings Control characters and/or Text Strings

Unreserved Reserved

All characters to be URL-encoded are encoded using a '%' character and a two-character hex value corresponding to their UTF-8 character. For example, +in UTF-8 would be URLencoded as %E4%B8%8A%E6%B5%B7%2B%E4%B8%AD%E5%9C%8B. The string ? and the Mysterians would be URL-encoded as%3F+and+the+Mysterians.

Converting a URL that you receive from user input is sometimes tricky. For example, a user may enter an address as "5th&Main St." Generally, you should construct your URL from its parts, treating any user input as literal characters. Additionally, URLs are limited to 2048 characters for all web services. For most services, this character limit will seldom be approached. However, note that certain services have several parameters that may result in long URLs.

Service and their operations: 1.Introduction 2.Audience 3.Direction Request 4.Request Parameters(by default parameters if applicable)HTTP.Brief on each parameter 5.Response with nodes and elements hierarchy .HTTP, xml/Json 6.Status Codes

You might also like