Geo coding via OSM and Google Maps without APIKey

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Geo coding via OSM and Google Maps without APIKey

Post by Kurzer »

Thank you for your contribution JHPJHP.
But by "API free version" I meant that I can do "now" geo coding without applying for a free API key and without registering a Google account.

The example from your link does need a Google Maps API key.

Code: Select all

InitNetwork()
Debug PeekS(ReceiveHTTPMemory("https://maps.google.com/maps/api/geocode/xml?sensor=false&address=Toronto+ON+CA&key=XXXXXXXXXX"), -1, #PB_UTF8)
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Geo coding via OSM and Google Maps without APIKey

Post by JHPJHP »

Hi kurzer,

Thank you for clarifying. Either way, the code you posted will be useful for those interested in accessing geolocation data.

Cheers!
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Geo coding via OSM and Google Maps without APIKey

Post by PureLust »

Hi there, ... I have a little off-topic question about Google Maps and how to add locations on a private map.

I have a little community-Service, where user can contact me to get their address registered in a private Google Map (as an overview-map for all users).
So far I insert their Location and Details by hand, which is somewhat time consuming.

I'm looking for a way to automate this. Either by using the maps-API or by any other way.

Do you have any Idea or advise how this could be done best?

Thank you in advance,
PL
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Post Reply