mach1ne^ Posted July 6, 2010 Report Share Posted July 6, 2010 (edited) Sveiki. Izmantojot google maps, vai būtu iespējams, ka lietotājs automātiski var noteikt attālumu starp divām vajadzīgām vietām un iegūst to kilometros? Doma ir tāda, ka cilvēks ievada vietu X un vietu Y, tiek automātiski aprēķināts attālums starp abām vietām un tad tas tiek pareizināts ar noteiktu koeficientu, kā rezultātā lietotājs iegūst iznākumu. Edited July 6, 2010 by mach1ne^ Quote Link to comment Share on other sites More sharing options...
codez Posted July 6, 2010 Report Share Posted July 6, 2010 http://code.google.com/apis/maps/documentation/javascript/v2/services.html#Directions Quote Link to comment Share on other sites More sharing options...
Kaklz Posted July 6, 2010 Report Share Posted July 6, 2010 Izmanto GLatLng objekta distanceFrom metodi: destination = new GLatLng(56.56,24.24); console.info("attālums metros: " + destination.distanceFrom(new GLatLng(57.57,25.25))); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.