Skip to content

Commit

Permalink
Formatting, code
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Jul 25, 2012
1 parent d20c766 commit 6f4c09e
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions WindowsPhone/PGMapLauncher/README.md
Expand Up @@ -13,23 +13,21 @@ The user will need to press the back button to return to your app.
In your doc head : In your doc head :
--- ---


[script type="text/javascript" charset="utf-8" src="PGMapLauncher.js"][/script] [script type="text/javascript" charset="utf-8" src="PGMapLauncher.js"][/script]




Somewhere in your code : Somewhere in your code :
--- ---
// Search near the current location using a keyword :
navigator.plugins.pgMapLauncher.searchNear("Malaysian Food");


// Search for a keyword near a specific location :
navigator.plugins.pgMapLauncher.searchNear("Wedding Chapel",{latitude:36.111224, longitude:-115.172194});


// Search near the current location using a keyword : // Get directions from the current location to a nearby keyword :
navigator.plugins.pgMapLauncher.searchNear("Malaysian Food"); navigator.plugins.pgMapLauncher.getDirections({label:"Malaysian Food"});


// Search for a keyword near a specific location : // Get directions from a specific location to a nearby keyword :
navigator.plugins.pgMapLauncher.searchNear("Wedding Chapel",{latitude:36.111224, longitude:-115.172194}); navigator.plugins.pgMapLauncher.getDirections({label:"Malaysian Food"},{coordinates:{latitude:36.111224, longitude:-115.172194}});





// Get directions from the current location to a nearby keyword :
navigator.plugins.pgMapLauncher.getDirections({label:"Malaysian Food"});

// Get directions from a specific location to a nearby keyword :
navigator.plugins.pgMapLauncher.getDirections({label:"Malaysian Food"},{coordinates:{latitude:36.111224, longitude:-115.172194}});

0 comments on commit 6f4c09e

Please sign in to comment.