The range of web technologies that are available to web designers and developers is just incredible right now - from maps and graphs to translation and speech recognition.
Many of these are easy to incorporate into your sites but getting started can be confusing. There are examples and tutorials that are obsolete or needlessly complex - I've written some of them myself !
I want to help people get up and running with simple examples that they can use in their work today.
So I have created Web Apprentice (http://apprentice.craic.com) - a site that contains clear, straightforward tutorials on web technologies across the spectrum.
Tutorials range from simple embedding of Twitter feeds or Maps through to Typography, Translation and Geolocation.
Each tutorial has a self-contained live demo and all the code is available and free to use. Tutorials walk you through all the steps and explains what is going on in the code.
There are three levels of tutorial:
Basic - embedding widgets into your pages - no need to know JavaScript
Intermediate - involve some JavaScript
Advanced - complex JavaScript and Server side programming - may involve new technologies that are not in all browsers.
The goal is to add new tutorials every couple of weeks at least and over time build the site into a destination for learning and applying web technologies.
Please check it out at http://apprentice.craic.com and let me know what you think.
A collection of computer systems and programming tips that you may find useful.
Brought to you by Craic Computing LLC, a bioinformatics consulting company.
Showing posts with label google maps. Show all posts
Showing posts with label google maps. Show all posts
Thursday, November 14, 2013
Wednesday, April 3, 2013
Using Latitude and Longitude with Google and Bing Maps
When you work with maps you sometimes want to extract a Latitude/Longitude pair from the map, or you want to enter a pair and see the corresponding map.
Google Maps and Bing Maps do things slightly differently. In general I go with Google but there is not a lot in it. Here are how you work with Latitude/Longitude in both of them:
1: Enter an Address and get the Latitude/Longitude pair
Bing - Enter the address - the Lat/Lon pair will be shown below the Address in the left hand panel
Google - Enter the address - then Right Click the marker and select What's here? - the Lat/Lon pair will appear in the address entry box
2: Browse to a Location and get the Latitude/Longitude pair
Bing - Browse to the location - then Right Click and the Lat/Lon pair will be shown in the popup
Google - Browse to the location - then Right Click the marker and select 'What's Here - the Lat/Lon pair will appear in the address entry box
3: Enter a Latitude/Longitude pair and view the Location
Bing and Google - Enter the Lat/Lon pair, separated by a comma, into the address box (e.g. 47.619905,-122.320844) - Google makes a better choice of zoom level in my opinion.
Google Maps and Bing Maps do things slightly differently. In general I go with Google but there is not a lot in it. Here are how you work with Latitude/Longitude in both of them:
1: Enter an Address and get the Latitude/Longitude pair
Bing - Enter the address - the Lat/Lon pair will be shown below the Address in the left hand panel
Google - Enter the address - then Right Click the marker and select What's here? - the Lat/Lon pair will appear in the address entry box
2: Browse to a Location and get the Latitude/Longitude pair
Bing - Browse to the location - then Right Click and the Lat/Lon pair will be shown in the popup
Google - Browse to the location - then Right Click the marker and select 'What's Here - the Lat/Lon pair will appear in the address entry box
3: Enter a Latitude/Longitude pair and view the Location
Bing and Google - Enter the Lat/Lon pair, separated by a comma, into the address box (e.g. 47.619905,-122.320844) - Google makes a better choice of zoom level in my opinion.
Friday, March 8, 2013
HTML5 and web API code examples
Whenever I am learning a new feature of HTML5, JavaScript/Jquery or a new API, such as Google Maps, I always look for example code that I can learn from.
In many cases the examples are great, but in others they can be too clever and too heavily styled, such that it can be hard to understand the core of the feature that they are demonstrating.
So in writing my own example code I try and strip things down to the bare minimum - very little styling and code that tries to do one, and only one, thing.
I've been collecting examples that I think have some substance and that can help others learn about a feature with the minimum of confusion.
Take a look at http://html5-examples.craic.com
This site has working examples of a number of HTML5-related features, including Data Attributes, Geolocation, Web Audio and Speech Recognition.
Look at the Source for each of these pages to see annotated JavaScript, etc. which illustrates the target feature of each page.
All the code is distributed freely under the terms of the MIT license and you are encouraged to build your own applications using it.
Note that some of the examples involve new web technologies, so they may not work in some browsers and what does work now may not work in the future as the APIs mature.
In many cases the examples are great, but in others they can be too clever and too heavily styled, such that it can be hard to understand the core of the feature that they are demonstrating.
So in writing my own example code I try and strip things down to the bare minimum - very little styling and code that tries to do one, and only one, thing.
I've been collecting examples that I think have some substance and that can help others learn about a feature with the minimum of confusion.
Take a look at http://html5-examples.craic.com
This site has working examples of a number of HTML5-related features, including Data Attributes, Geolocation, Web Audio and Speech Recognition.
Look at the Source for each of these pages to see annotated JavaScript, etc. which illustrates the target feature of each page.
All the code is distributed freely under the terms of the MIT license and you are encouraged to build your own applications using it.
Note that some of the examples involve new web technologies, so they may not work in some browsers and what does work now may not work in the future as the APIs mature.
Labels:
google chrome,
google maps,
html5,
javascript,
web audio,
web speech
Thursday, February 14, 2013
Street Intersections in Google Maps
I need to display Google Maps with markers placed at street intersections, starting with an address that looks like '13 Av E / E John St, Seattle, WA'.
Google Maps doesn't know how to parse this and gives me a location on John Street but it's not correct.
Various sources on the web tell you use 'at' as the conjugation between the two streets - so '13 Av E at E John St, Seattle, WA'
This works fine in most cases but in some, like this one, it fails - this gives the intersection of 13th Ave East and E Prospect (7 blocks away).
What seems to work much better is to use 'and' ... '13 Av E and E John St, Seattle, WA' is spot on.
Google Maps doesn't know how to parse this and gives me a location on John Street but it's not correct.
Various sources on the web tell you use 'at' as the conjugation between the two streets - so '13 Av E at E John St, Seattle, WA'
This works fine in most cases but in some, like this one, it fails - this gives the intersection of 13th Ave East and E Prospect (7 blocks away).
What seems to work much better is to use 'and' ... '13 Av E and E John St, Seattle, WA' is spot on.
Subscribe to:
Posts (Atom)