Recent

Author Topic: Maps in App  (Read 11208 times)

dzvonko

  • Newbie
  • Posts: 2
Maps in App
« on: August 01, 2010, 02:10:02 am »
Hi,

I have database (SQL) with names of people and addresses where
they live. When I click on name (or address) my app should show
a map of area where this person lives. Something like Google Maps
or Bing Maps. When you enter name and address, shows same mark
or sign where place is, ok? I need this to be offline (no Internet), but
if there is solution for online, I'll check it out. All options are open, if
there is something that can be used, I'll check it out. If there is similar
or close enough app, I'll like to see it. If somebody can/want to share
similar app, I'll be very thankful.

This is app for fire department with data for people with disabilities,
to know how to handle them when lifesaving them.
This app is not for sale, it will be free and open source for all FD.


Thanks in advantage

DZvonko

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: Maps in App
« Reply #1 on: August 01, 2010, 10:06:05 pm »
Hi dzvonko, there are clear example for delphi and source code about how to integrate Google Maps into you aplications, the page is in spanish but you can adapt the code for lazarus and Indy

Quote
http://neftali.clubdelphi.com/?tag=indy

Regards

dzvonko

  • Newbie
  • Posts: 2
Re: Maps in App
« Reply #2 on: August 02, 2010, 12:01:25 am »
That's ok, but anything else?

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: Maps in App
« Reply #3 on: August 02, 2010, 12:18:31 am »
Rendering it yourself using OpenStreetmap maybe? It's probably very hard, but might be doable

I know there was some person who was doing it at some point with nice results in #fpc or #lazarus-ide

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Maps in App
« Reply #4 on: August 02, 2010, 02:34:59 am »
The simplest way to do this is to construct the URL string for the Google map to open it on your browser.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Maps in App
« Reply #5 on: August 02, 2010, 11:32:12 am »
I think that you can embed Gecko, the rendering engine from Firefox in your window. There were some people that worked with that. In the wiki I found this like, but there was at least one other project in this direction:

http://wiki.freepascal.org/GeckoPort

With this rendering engine you could connect to google Maps and maybe use webservices tecnology to communicate with the page, although simple URL GET info could also work

Paul Breneman

  • Sr. Member
  • ****
  • Posts: 290
    • Control Pascal
Re: Maps in App
« Reply #6 on: August 24, 2010, 07:02:04 am »
Sorry I didn't respond sooner...

I have done something similar using Delphi.  Since any install will be viewing a limited area I would recommend using OpenStreetMap.  That way you can download several zoom levels upon installation and after that your app doesn't require Internet access.

For more tips see my responses here:
http://stackoverflow.com/questions/2152860/delphiopenstreetmap
Regards,
Paul Breneman
www.ControlPascal.com

Maciej Kaczkowski

  • New Member
  • *
  • Posts: 31
    • Password Recovery Software
Re: Maps in App
« Reply #7 on: February 20, 2011, 07:45:18 pm »
Soon I will release new component written in FPC/Lazarus, native MapViewer. Currently I am finishing testing.

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: Maps in App
« Reply #8 on: March 18, 2011, 11:02:37 pm »
That looks great, if you need some help,  tell me, maybe i can do something.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Maps in App
« Reply #9 on: March 19, 2011, 12:27:43 am »
Very interesting. Looks great too...
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018