Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 850143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:12:56+00:00 2026-05-15T07:12:56+00:00

I want to pass several parameters to this url and generate the map from

  • 0

I want to pass several parameters to this url and generate the map from it and show it in my java application. I know the code to download the image and show it in the java application. I want to know how to pass parameters to this address:

http://maps.google.com/maps/api/staticmap?center=Nugegoda&zoom=14&size=1000×312&maptype=roadmap&markers=color:blue|label:S|size=tiny|Mirihana&markers=size:mid|color:0xFFFF00|label:C|Udahamulla&sensor=false

In this link Nugegoda and Mirihana and Udahamulla is the one that i should pass from the application. And then it will generate a image and i do need to show it. Even if u check this link. It’s a image.

Can someone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:12:57+00:00Added an answer on May 15, 2026 at 7:12 am

    The Static Maps API can do geocoding for you if you pass a valid address to the center parameter:

    https://maps.google.com/maps/api/staticmap?center=Nugegoda&zoom=14&size=400×400&sensor=false

    Nugegoda

    The parameters that you can pass are all listed here. As is standard in URLs, all parameters are separated using the ampersand & character. Therefore if you want to add the maptype parameter and set it to hybrid for example, you can simply add &maptype=hybrid to the above URL:

    https://maps.google.com/maps/api/staticmap?center=Nugegoda&zoom=14&size=400×400&sensor=false&maptype=hybrid

    Nugegoda

    Then if you want to show the Udahamulla map, simply replace Nugegoda with Udahamulla for the center parameter:

    https://maps.google.com/maps/api/staticmap?center=Udahamulla&zoom=14&size=400×400&sensor=false

    Udahamulla


    UPDATE:

    Further to the comments below, you can add a polyline on a static map by using the path parameter, as follows:

    https://maps.google.com/maps/api/staticmap?center=Udahamulla&zoom=13&size=400×400&path=color:0xff0000ff|weight:5|Maharagama|Nugegoda&sensor=false

    Maharagama to Nugegoda

    Note how the API geocodes the addresses “Maharagama” and “Nugegoda”, so you do not need to pass the latitude and longitude coordinates of the localities.

    Currently the Static Maps API does not do driving directions. However if you have the points of a complex route, you could plot the path as an encoded polyline.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to pass parameters from PHP Command Line Interface, and then read in
I want to pass several parameters, one of which is optional, to a function.
I found this link... Java:how to pass value from class/bean to servlet I tried
when i create a thread, i want to pass several arguments. So i define
My data is just number, I want pass it from VC1 to VC2 for
I want to pass an ImageIcon instance by value as we know that by
I want to pass these parameters with a HTTP request to a WebApp hosted
I want to pass some arguments to the my Javascript template in Rails3 application
I was wondering how to pass several (two) values through url as a clean
In short: I want to monitor selected calls from an application to a DLL.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.