The service generates precise geolocation and mapping coordinates and standardized addresses based on user or application input specifying a location in varying formats. It also provides information relevant to the location, including businesses and other organizations nearby, geographic features, and places of interest. The precision of geolocation is influenced by the detail of data submitted to the service. General information about the location will return a neighborhood, postal code, or street, while more specific information can be resolved to a precise physical address.
API methods support submission of known location data, either as free text or structured parameters. Optional parameters include the street or thoroughfare, the section or specific spot along that thoroughfare, the postal code, and the district or neighborhood, city, state or province, and any other administrative zone (e.g., a county). Depending on the completeness of the request, the API returns mapping specifications for either a general area or a precise physical address in standard format. Methods allow either individual submission of a single location or batch submission of a group of distinct locations.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The TomTom Route Alternatives iOS Sample Code demonstrates how to prepare for a road trip, providing different route options. Developers can get the ETA and the distance between an origin and destination.