Search found 31 matches: latitude

Searched query: latitude

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

Re: calculates the distance between two towns

... 123;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 of less ...
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: 3568

Re: calculates the distance between two towns

Hello Silvio,
>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 ...
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: 3568

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: 3568

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: 2091

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: 2091

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: 2091

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: 2091

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: 2410

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

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

Re: Get latitude and longitude

... div> <div style="padding:10px"> <div id="map"></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 ...
by betoncu
Fri Jan 11, 2019 2:54 am
Forum: FiveWin for Harbour/xHarbour
Topic: Get latitude and longitude
Replies: 5
Views: 2091

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: 5489

Re: Harbour for the web

... 1 TO LEN(aEvent)
IF cC1==aEvent[nX2]
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 ...
by vilian
Fri Mar 17, 2017 2:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 16768

Re: Plotting locations on Google Maps

... 40; aDatas, 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 ...
by cnavarro
Wed Mar 15, 2017 9:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 16768

Re: Plotting locations on Google Maps

My son, has recommended this lib

m

This is a sample
If you have the length and latitude, you do not need to run the function VerMapa2()

#include "FiveWin.ch"Static cUrl := ""Function Main&#40;&#41; Local aDatas := &#123;&#125; SET 3DLOOK OFF AAdd&#40; aDatas, VerMapa2&#40; "28850", "Calle Manuel ...
by cnavarro
Fri Mar 10, 2017 6:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Plotting locations on Google Maps
Replies: 48
Views: 16768

Re: Plotting locations on Google Maps

... most important thing is that: I consider that the Anserkk example is the best way to do this work
But, I have another way of getting this data (latitude and longitude)
Then you can apply the function to draw the map

#include "FiveWin.ch"Static cUrl &nbsp; &nbsp; := ""Function Main&#40;&#41;&nbsp ...