Search found 29 matches: longitude

Return to advanced search

Re: calculates the distance between two towns

... oMarker, {y-30,x-10,y,x+10},.t.) }   oMap:AddMarker(13.7025,42.6582,30,bDraw) The method AddMarker has parameters: Longitude, Latitude, Radius and a Block, The map drawing code calls the Block if the point at Longitude, Latitude is inside the screen or near the border ...
by AntoninoP
Mon Oct 19, 2020 6:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3343

Re: calculates the distance between two towns

... >the lat and long are wrong what do you mean with this. Very good. Can you share your source code. Best regards, Otto I mean the latitude the longitude of Sillian and Lienz that you wrote are wrong I use a MapControl class that they published at least two years ago, I'm doing some tests such ...
by Silvio.Falconi
Thu Oct 15, 2020 5:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3343

Re: calculates the distance between two towns

Hello, I converted a javascript program to FW. This routine calculates the distance between two points (given the latitude/longitude of those points). It is being used to calculate the distance between two locations using GeoDataSource (TM) prodducts Best regards, Otto #include "FiveWin.ch"//----------------------------------------------------------------------------//function ...
by Silvio.Falconi
Tue Oct 13, 2020 7:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3343

calculates the distance between two towns

Hello, I converted a javascript program to FW. This routine calculates the distance between two points (given the latitude/longitude of those points). It is being used to calculate the distance between two locations using GeoDataSource (TM) prodducts Best regards, Otto #include "FiveWin.ch"//----------------------------------------------------------------------------//function ...
by Otto
Mon Oct 12, 2020 3:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3343

Re: Get latitude and longitude

Some time ago I did a FiveWin control that uses OpenStreetMap: http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35535 here an updated code: #include <fivewin.ch>********** TEST CODE **********proc main    LOCAL oWnd, oMap    DEFINE WINDOW oWnd TITLE "3D objects"    SetWndDef...
by AntoninoP
Wed Jan 16, 2019 2:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

Re: Get latitude and longitude

Sorry but I couldn't. Anyhow, thanks for your help.
by betoncu
Wed Jan 16, 2019 4:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

Re: Get latitude and longitude

Perfect. Many thanks. Is it possible to pass the coordinates to the calling program? Instead of Shellexecute( NIL, "open", cMapFile )   Use Internet Explorer and read the DIV values of latclicked and longclicked For eg something like oIE:=CreateObject("InternetExplor...
by anserkk
Mon Jan 14, 2019 4:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

Re: Get latitude and longitude

Perfect. Many thanks.
Is it possible to pass the coordinates to the calling program?
by betoncu
Sun Jan 13, 2019 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

OT If you do not want to use google maps .. look at this

... area and the height you want to see the map 3 An .XML file that you generate with your FW application where you are going to put the latitude and longitude in addition to some icons and a lot of other information that it deserves to appear. The .XML file is updated with a frequency of 30 seconds ...
by Busmatic_wpb
Sun Jan 13, 2019 3:55 am
 
Forum: Utilities / Utilidades
Topic: OT If you do not want to use google maps .. look at this
Replies: 6
Views: 2143

Re: Get latitude and longitude

...         function initMap() {                                        var latitude = 27.7172453; // YOUR LATITUDE VALUE            var longitude = 85.3239605; // YOUR LONGITUDE VALUE                        var myLatLng = {lat: latitude, lng: longitude};                    ...
by anserkk
Fri Jan 11, 2019 6:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

Get latitude and longitude

How can I get the latitude and longitude of a place clicked by a user on the map.
Thanks in advance
by betoncu
Fri Jan 11, 2019 2:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2048

Re: Harbour for the web

... IF ! lC1 SKIP LOOP ENDIF AADD( aEvent, cC1 ) cGpsLink := "" cLatitude := ALLTRIM(edi315->latitude) cLongitude := ALLTRIM(edi315->longitude) IF (! EMPTY(cLatitude)) .AND. (! EMPTY(cLongitude)) cGpsLink := "http://maps.google.com/?t=k&z=500&q=" + cLatitude + "," ...
by cdmmaui
Sun Aug 12, 2018 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour for the web
Replies: 12
Views: 5256

Re: Calculo de distancias por GPS con funciones del MYSQL

SELECT (acos (sin (radians (LATITUD_1)) * sin (radians (LATITUD_2)) +
cos (radians (LATITUD_1)) * cos (radians (LATITUD_2)) *
cos (radians ( LONGITUD_1) - radians (LONGITUDE_2))) * 6378) as
distancePoint1Point2;

Should Earth's radius be taken as 6371 instead of 6378 ?
by nageswaragunupudi
Mon Jan 22, 2018 12:14 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de distancias por GPS con funciones del MYSQL
Replies: 7
Views: 2395

Re: Calculo de distancias por GPS con funciones del MYSQL

... which returns the distance in meters. If the 3rd parameter is ommitted, MySql uses Earth's radius by default. Instead of storing lattitude and longitude separately in Table, we can use SPATIAL datatype POINT. This is a sample that will be released with FWH 18.01; /** mariageo.prg* SPATIAL dataype ...
by nageswaragunupudi
Mon Jan 22, 2018 8:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de distancias por GPS con funciones del MYSQL
Replies: 7
Views: 2395

Re: Plotting locations on Google Maps

... Sandoval", "1", "Torrejon de Ardoz", "Madrid", "Spain" ) ) I need to do this using Latitude e longitude. I have this code that is working: STATIC FUNCTION ShowGoogleMap(aData)LOCAL cHtmlContent1,cHtmlContent2, oOle, i,cMapFileLOCAL cAppendStr:="var ...
by vilian
Fri Mar 17, 2017 2:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 16003
Next

Return to advanced search