Recent

Author Topic: Integrate google maps into lazarus application  (Read 12012 times)

Kushal

  • New Member
  • *
  • Posts: 33
Integrate google maps into lazarus application
« on: June 21, 2013, 07:59:01 am »
Hi,
I would like to integrate google maps to lazarus application where my main motto is reverse geocoding i.e, retrieve address of a specific latitudes and longitudes retrieved from GPS.
Please help me,
at least give me some references......

Thanq

Risk

  • Newbie
  • Posts: 1
Re: Integrate google maps into lazarus application
« Reply #1 on: June 21, 2013, 11:03:17 am »
Hi,

I was just looking for the same and came across this. Not sure what it can do but it is worth a look https://code.google.com/p/mapviewer/

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: Integrate google maps into lazarus application
« Reply #2 on: June 21, 2013, 11:28:52 am »
hi!
there is an old post with a sample application to display not only google maps but also maps from microsoft ...
the sample code is a liittle bit slow but can serve as a starting point how to use the apis ...


good luck !
Speak postscript or die!
Translate to pdf and live!

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Integrate google maps into lazarus application
« Reply #3 on: June 21, 2013, 02:37:51 pm »
Hi,

I was just looking for the same and came across this. Not sure what it can do but it is worth a look https://code.google.com/p/mapviewer/

I can confirm that this works. The sample application may be a bit slow but I've tested it and I quite like it.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

christensen

  • Full Member
  • ***
  • Posts: 127
Re: Integrate google maps into lazarus application
« Reply #4 on: December 06, 2016, 02:48:40 pm »
Hi,

I'm trying to install mapviewer but i cannot. it has dependency for synapse, i tried to add but no luck.
Quote
  Compiling package kcMapViewerPckg 0.0: Exit code 1, Errors: 1
    httpsend.pas(72,3) Fatal: Cannot find unit blcksock used by httpsend. Check if package laz_synapse is in the dependencies.


 
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Integrate google maps into lazarus application
« Reply #5 on: December 07, 2016, 10:32:29 am »
Hi,

I'm trying to install mapviewer but i cannot. it has dependency for synapse, i tried to add but no luck.
Quote
  Compiling package kcMapViewerPckg 0.0: Exit code 1, Errors: 1
    httpsend.pas(72,3) Fatal: Cannot find unit blcksock used by httpsend. Check if package laz_synapse is in the dependencies.

Strange. Mine still works. I just tested it. You need to be able to compile synapse and then compile and add the MapViewer package. Mind you, your Lazarus version is a bit dated. Maybe that is why it is not working (I'm not sure, just a suggestion).

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

christensen

  • Full Member
  • ***
  • Posts: 127
Re: Integrate google maps into lazarus application
« Reply #6 on: December 07, 2016, 03:27:23 pm »
I'm running 2 versions 1.4.4 and 1.6.2.
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Integrate google maps into lazarus application
« Reply #7 on: December 07, 2016, 03:41:49 pm »
I'm running 2 versions 1.4.4 and 1.6.2.

Can you compile synapse?
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

christensen

  • Full Member
  • ***
  • Posts: 127
Re: Integrate google maps into lazarus application
« Reply #8 on: December 07, 2016, 03:48:08 pm »
sysnapse 4.0?
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

christensen

  • Full Member
  • ***
  • Posts: 127
Re: Integrate google maps into lazarus application
« Reply #9 on: December 07, 2016, 05:41:35 pm »

On the 1.6.2 i can compile sysnapse 40.1, but cannot compile mapviewer. the same error... cannot find  httpsend.

Quote
Compile package laz_synapse 40.1: Success
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Integrate google maps into lazarus application
« Reply #10 on: December 07, 2016, 05:46:22 pm »
httpsend is in httpsend.pas (part of synapse) You will have to add httpsend to your uses clause.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

christensen

  • Full Member
  • ***
  • Posts: 127
Re: Integrate google maps into lazarus application
« Reply #11 on: December 07, 2016, 06:06:17 pm »
i've solved at the end.

add the missing file to the project and use recompile all required.
 
« Last Edit: December 07, 2016, 06:24:00 pm by christensen »
Lazarus 1.4.4, FPC 2.6.4, Windows 7 64bit, AMD Athlon 7750 black edition, Asus M3N78-CM
Lenovo L540 i7-4702MQ, Windows 10 x64,Lazarus 1.6.2,FPC 3.0

 

TinyPortal © 2005-2018