Search found 29 matches: longitude

Searched query: longitude

by AntoninoP
Mon Oct 19, 2020 6:51 am
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3601

Re: calculates the distance between two towns

... hDC, 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 Silvio.Falconi
Thu Oct 15, 2020 5:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3601

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 as ...
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: 3601

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 ...
by Otto
Mon Oct 12, 2020 3:55 pm
Forum: FiveWin for Harbour/xHarbour
Topic: calculates the distance between two towns
Replies: 19
Views: 3601

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 ...
by AntoninoP
Wed Jan 16, 2019 2:29 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

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" SetWndDefault&#40;oWnd&#41; oMap ...
by betoncu
Wed Jan 16, 2019 4:02 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

Re: Get latitude and longitude

Sorry but I couldn't. Anyhow, thanks for your help.
by anserkk
Mon Jan 14, 2019 4:50 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

Re: Get latitude and longitude

Perfect. Many thanks.
Is it possible to pass the coordinates to the calling program?
Instead of
Shellexecute&#40; NIL, "open", cMapFile &#41; &nbsp;
Use Internet Explorer and read the DIV values of latclicked and longclicked
For eg something like
oIE:=CreateObject&#40;"InternetExplorer ...
by betoncu
Sun Jan 13, 2019 10:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

Re: Get latitude and longitude

Perfect. Many thanks.
Is it possible to pass the coordinates to the calling program?
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: 2424

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 anserkk
Fri Jan 11, 2019 6:54 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

Re: Get latitude and longitude

... div> </div> <script type="text/javascript"> var map; function initMap&#40;&#41; &#123; var latitude = 27.7172453; // YOUR LATITUDE VALUE var longitude = 85.3239605; // YOUR LONGITUDE VALUE var myLatLng = &#123;lat: latitude, lng: longitude&#125;; map = new google.maps.Map&#40;document ...
by betoncu
Fri Jan 11, 2019 2:54 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2099

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 cdmmaui
Sun Aug 12, 2018 12:05 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour for the web
Replies: 12
Views: 5512

Re: Harbour for the web

... lC1 := .F.
EXIT
ENDIF
NEXT NX2
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 ...
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: 2472

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 8:56 am
Forum: FiveWin para Harbour/xHarbour
Topic: Calculo de distancias por GPS con funciones del MYSQL
Replies: 7
Views: 2472

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 ...
by vilian
Fri Mar 17, 2017 2:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 16826

Re: Plotting locations on Google Maps

... VerMapa2&#40; "28850", "Calle Manuel Sandoval", "1", "Torrejon de Ardoz", "Madrid", "Spain" &#41; &#41;

I need to do this using Latitude e longitude. I have this code that is working:
STATIC FUNCTION ShowGoogleMap&#40;aData&#41;LOCAL cHtmlContent1,cHtmlContent2, oOle, i,cMapFileLOCAL ...